I wrote a script to get the production data of my Solar Panels, including day, month and year prognosis. The production of your solar panels will be updated with some better logic variables.The output will in this example be automatically forwarded tot your mobile. I use a picture from the Gallery app. But the output can also be emailed.
I am aware that I am certainly no programmer, therefore I tried to make the best of it. Hope you appreciate it.
Install Homeyscript and Better Logic. Read the remarks at the top of the script and make the variables as stated also at the top of the script. Copy the script from a computer(not mobile or tablet because of false copying of the quotation marks) and make a new script called Solar Panels. Paste the script and save.
Make three flows:
The first flow will give you the prognosis when your solar panels have stopped producing
The second flow is the actual flow to get the prognosis. I have made this flow a favorit in Homey. That way I can run the flow from a widget on Iphone.
The third flow is a flow to update the better logic variables
Because i have some issues with Homeyscript and memory I restart the Homeyscript app in every flow.
Example of the output:
Below you will find the download for my script. I have added the option to use two languages;
English and Dutch. Feel free to adjust the script, rewrite it and improve it. Would be nice if you post it in this topic. I wish you many sunny hours .