This is a VERY simple plugin, it works like this:
The plugin has built in code to automatically calculate your sunrise & sunset times ( +/- 3 Minutes or so, so it is quite acurate!), based on your Latitude and Longitude.
It gets this information like this:
First, if GPS is detected, it uses the Lat and Lon To calculate Sunrise and set times (Recalculates once every hour, so if you are on a long East to West trip, it will remain acurate! (As long as you change the time zones on the system that is
).
Second if GPS is not found, it uses a Lat and Lon from the ini and calculates from that.
Lastly, if no lat or lon are available, it gets the DayEventTime & NightEventTime from the ini.
As an example:
I have this in my Exectbl.ini for my skin:
Code:
"DayTimeEvent","GetDaySettings"
"NightTimeEvent","GetNightSettings"
"GetDaySettings","RUNQ;$SKINPATH$Scripts\Time Switch\SwitchDayNight.exe|day"
"GetNightSettings","RUNQ;$SKINPATH$Scripts\Time Switch\SwitchDayNight.exe|night"
So, if it is daytime, you are driving, and you pass the sunset time, "NightTimeEvent" is fired. The great thing is, if you shut the car off in the day, and then start it at night, it will fire the "NightTimeEvent" when RR starts / resumes.
Road Runner's Day and night skin switching, does not do this, Road Runner would have to be running at the time it goes from day to night to switch. I never understood this, and it really annoyed me 
Now, with the "NightTimeEvent" event firing in my skin, it fires a script as you can see in the example above. The script changes the skin background, the font color, and a couple of other things.
This plugin works flawlessly actually
When I was setting up and testing, I opened the windows system time clock, it was like 2:30 PM. I changed the PM to AM and hit apply, and the skin switched to night colors, I put it back to PM, and it returned to the Day colors.
Lastly, this plugin compensates for when daylight savings time switches. This means it will not be off an hour when the clocks change. (Even if you are driving through the night, when the clocks change, it will switch accurately with the correct sunrise time when the sun comes up
).
Bookmarks