This widget is not dependent of having a particular energy provider (unlike my iOSTibberWidget).
Data is fetched from a free API, which does not require any registration/user account/API-key/etc.
- Download the "Scriptable" app: https://apps.apple.com/no/app/scriptable/id1405459188
- Start the app, press the "+" in the top right corner
- Press the text "Untitled Scripts" at the very top and change the name to "EnergyPriceWidget".
- Paste the code from EnergyPriceWidget.js into "EnergyPriceWidget" in Scriptable
- In the script, set the correct zone and set the value for øre/kWh your power company charges in addition to the spot price from Nord pool.
- Close the "Scriptable" app and press and hold on the home screen where you want the widget (so the apps start "shaking"), press the "+" on the top left, select "Scriptable". Choose large widget and press "Add widget".
- Widget is now there with "Select script in widget configurator". Tap and hold on it and select "Edit Widget".
- For "Script", select "EnergyPriceWidget"
Widget is now ready to use! :)
Norway, Sweden and Denmark.
This is on the TODO-list. If you're a developer, feel free to code it and create a PR! :)
Feel free to make suggestions for changes or share your own improvements!
Use Github or join the Norwegian home automation community here (english posts also welcome).
If you want to edit and test your scripts on a computer and happen to have a Mac, you can try the Scriptable Beta for Mac.