Check Nordpool energy prices and set IFTTT triggers based on your limits
npm install nordpool-iftttarea: Set the area where you want to follow the prices. You can seecurrency: Choose either DKK, EUR, NOK or SEKcurrencySubUnit: Name of 1/100 of your currency, e.g. cents for 'EUR'öre for 'SEK'highTreshold: Set the price limit above which you want the high pricecurrency. For example the value 6 means 6 cents/kWh if yourcurrency is EUR.)lowTreshold: Set the price limit above which you want the low pricemaxHighHours: If you use IFTTT to turn off heating when the energy pricemaxHighHours to 3 and the energy price will be above your highTresholdmaxLowHours: Same as maxHighHours but for hours below lowTreshold.maxLowHours to 2 willlowTreshold). Set to 24 if you don't need limits.iftttKey: Activate your IFTTT maker channel and get the key fromdebugLevel: Set to 0 to silence all console output. Increase to up to4 in order to get more debugging information to the logs.node_modules/pm2/bin/pm2 logs "Nordpool IFTTT trigger" to see theStart script will run PM2 to keep the script running.
npm start
- Go to https://ifttt.com/create/
- Select +this
- Type webhook into the "Search services" search field
- Select the Webhooks icon
- Select Receive a web request
- Enter nordpool_price_high into Event name field (or nordpool_price_lowor nordpool_price_normal)
- Select Create trigger
- Select +that
- Search for the service that should react to the energy price event, e.g. Telldus Live!
- Choose the action for the service you selected, e.g. Turn off a device
- Configure the action if needed, e.g. select the device
- Choose Create action
Enjoy!