I have updated the SunTracker plug-in with a new feature and also made a small modification to how the threads are executed
The new feature is a weather condition compensation factor that is used to adjust the firing of ON and OFF events. The reason behind is that a clear day, lights could go ON a bit later than a day with clouds or rain
As source for weather information, Google is used so you need a permanent Internet connection for this to work
You can define the total amount of additional time to calculate with. Lets say you enter 45 minutes. The script will then, depending on actual weather conditions, calculate if time should be added or subtracted according to the built in rules.
The rules are as follows
Will give full prior compensation, means ON events will be fired specified time EARLIER and OFF events LATER
Will give half prior compensation, means ON events will be fired half of the specified time earlier and OFF events later
Will give full latter compensation, means ON events will be fired specified time LATER and OFF events EARLIER
I hope this was understandable
In the picture below I have inserted 45 minutes.
This value will also be used in combination with eventually defined offset value to calculate the total time compensation
After running this in test for the last 3 weeks, I feel that it works really fine and it is ready to be shared with you
The modification to the thread execution was made because I often had problems when multiple threads was hitting the same hardware device (in this case the USB-UIRT)
I therefore introduced a random delay between the thread executions. This did not solve the problem completely but it improved (in a separate thread I have also made a proposal to change the plug-in for the USB-UIRT to handle retries)
To install, close EG, just copy the two files from the zip to the SunTracker folder. When you start EG again you will get error messages because the actions need to be re-configured. Double click on them, change or leave the default value for weather compensation and save again.
Once done for all SunTracker actions, save the EG configuration and restart EG again. This time you should not get any errors
It is also possible to edit the xml-file directly if preferred
Best regards & good luck,