This actually came from John wanting a cmd fired on a day/night change so to do it correctly and with most flexibility I did it this way.
Printable View
This actually came from John wanting a cmd fired on a day/night change so to do it correctly and with most flexibility I did it this way.
ok i do agree so how about re-building the timerexec instead , its an extension plug so it goes inline with the way things are going with rr, which i do agree is needed .
as most skins are going down this route it just makes more sense, to have an extenstion plugin for it instead , and all functions that may get suggested can be added before the release of it, if its a no go then i acept that as i'm no coder i jjust suggest an idea.
thanks blue
Someone sometime ago did ask if I would add to/change that plugin, forget who, but I was way to busy working on my RRMedia at that time and didn't want to get sidetracked..hehehe
If i remember correctly, it was to add by date as well as time. Which probably shouldn't be to hard now as I getting better & faster to getting code in VB to work w/o syntax errors or type Mismatch...<-- hate those! :D
Maybe start a new thread being a Request and list what you'd like to see changed / added and I'll see if it can be added/modded in a timely fashion...(nice pun) :)
what are some common examples in your minds of potential uses for this plugin? just curious.
well thanks for the advise blue
@overlander new thread to discuss this feature as blue mentioned , so really the sky is the limt as long as we keep the main function clean eg timer part , i think lots of people would come up with other uses chuck use timer for other functions so have to keep this in mind look at the new thread in the plugins section
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:
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.Code:"DayTimeEvent","GetDaySettings"
"NightTimeEvent","GetNightSettings"
"GetDaySettings","RUNQ;$SKINPATH$Scripts\Time Switch\SwitchDayNight.exe|day"
"GetNightSettings","RUNQ;$SKINPATH$Scripts\Time Switch\SwitchDayNight.exe|night"
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 :) ).
This looks like a great plugin. I was just curious whether you can force the change to night by use of the day/night button for the dark, glummy UK winter evenings :D.
Thanks for the hard graft you guys invest into these plugins!
Cheers,
Dave
FYI.
This Plugin has now been added to my RRExtended plugin. See Here