On an unrelated note:
For those mathematically challenged, or who may have resisted this piston because of it’s complexity, I have good news… I somehow got all that ‘mumbo-jumbo’ into a piston that I can finally share with the public!
For this piston to work for your location, you must change the variables on line 23 & 25.
(instructions are at the very top of the piston)
It runs once a day, and updates the piston state as well as leaves a nice data trail in the logs.
(Also, this piston uses webCoRE’s maximum of 21 decimals for accuracy)
(The percentage changes color throughout the year to reflect the amount of sunlight)
If you want one of the gauges as seen above, it should be easy to add the code from one of my earlier posts to the bottom of this piston.
I actually use a different piston to draw my gauges, and simply refer to the percentage created by this piston. If you go this route, you will want to enable the global variable currently disabled & hidden in this picture.
(you will see it if you import vz08)
For those curious, I chose 3:04 am because:
- It has to run after midnight
- It has to run before sunrise
- I wanted it after 3am in case the time changed
- I added 4 minutes to give ST time to sync with the new time