I am trying to avoid using the built in date/time function because when I travel it adjusts to where I’m currently located, not the hub location so it throws off routines for people still at home. It’s really bad when I’m in other countries where there’s a 10 hour difference or frequently switching time zones
That is not my experience. I had to change all my time/date/sunrise/sunset triggers/preconditions to use your virtual calendar because they would fire at the time of where my phone was located not the hub.
What happens if you have SmartThings on 2 phones and you leave one at home and travel with other phone. Do routines fire twice?
I have ST on phone and tablet and never had routines fire at their local times, only once at hub’s local time
I have no idea what would happen, I haven’t tried that. But when I was gone for several months things were happening at the house at all the wrong times of day. I got phone calls constantly. I’m assuming it’s because my phone is the main account or maybe because I was away for so long?
Now that we are approaching the summer solstice in the northern hemisphere, I have been monitoring the virtual calendar data for Reykjavik with data from meteorological pages and I have seen an error in the sunset and sunrise data, which I have already corrected.
At this time for Latitude: 64.2° and Longitude: -21.9° the sunset occurs at 00:01 and the sunrise at 02:55.
That is, within the same day the sunset occurs before the sunrise.
I have corrected the calculations of sunset offset, sunrise offset and day length in these conditions
I don’t quite understand what the specific problem is.
In preference settings you have to enter the latitude and longitude that you want to use, rounded to 1 decimal, since the preferences only allow 1 decimal.
Latitude: North is positive, South is negative
Longitude: East is positive, West is negative
You can get the coordinates with google maps for example
Then they have to enter the official offset of your local time from GMT in the details view.
Mariano, could you add week number to the virtual calendar? I have events that happen every other Friday and would like to create some automation. It would also be great if I could check for even vs odd week numbers.