Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.91 KB

README.md

File metadata and controls

68 lines (49 loc) · 1.91 KB

MMM-ICA

MMM-ICA is a MagicMirror² module for connecting to the Swedish grocery store ICA API.

Warning

update april 2024: ICA made changes to their API. App not working

ko-fi

saldo screenshot

For Authentication you need to use basic authentication, information you can find here https://github.com/svendahlstrand/ica-api.

Sample Configuration

How to install:

cd MagicMirror/modules
git clone https://github.com/PierreGode/MMM-ICA

In MagicMirror/config/config.js

{
  module: "MMM-ICA",
  position: "bottom_right",
  header: "ICA",
  config: {
    username: "",
    password: "",
    apiUrl: "https://handla.api.ica.se/api/",
    storeApiUrl: "https://handla.api.ica.se/api/",
    updateInterval: 900000, // Refresh every 15 minutes.
    retryDelay: 5 * 60 * 1000, // Retry every 5 minutes if an error occurs.
    settings: {
      Saldo: true, //Show Availible balance on the account 
      AccountName: false,
      FavoriteStores: true, //Show the id of your favorite stores
      DisplayStoreID: true //Show the output of offersStoreId in the mirror
      offlineShoppingLists: true, // enable/disable offline shopping lists feature
    },
    offers: true, // Show offers for the specified store ID
    offersStoreId: "15215" // Default store ID for which offers will be displayed
  }
},

API

For more information on the ICA API, see the ica-api repository https://github.com/svendahlstrand/ica-api.

Big thanks to svendahlstrand for the API source.

Api free: yes

Links

Development Status

WIP