0
Discuss & Vote

Time Zone offset needed for MTG weather (behind by one day)

Ned 2 years ago in Media Tiles / Media Tile Generator (MTG by JGG) updated by Terry (ActionTiles) (Co-Founder) 10 months ago 4

First, I love this app.  But, the mtg weather tile is always a day behind.  Today, is April 9 and the tile starts on April 8.  Is there something I missed in the config.

https://mtg.actiontiles.com/weather.php?country=us&loc=West%20Jordan,UT&static=false&layout=3x2&bodyColor=00ff00

Answer

Answer
Discuss & Vote

I've changed this into a Feature Request.


The MTG module is distinct from the rest of ActionTiles because it is a set of PHP scripts (vs Javascript, etc. for the app)We'll have to experiment to see if just adding a parameter and a few calculations has the desired effect. We'll keep this post updated with any progress.


Thanks,

...Terry.

Researching

Hi Ned,


What timezone are you in? I believe the bug is that MTG bases the "first day" on a certain timezone (likely UTC or maybe PST where the cloud center is), and will include that day as the "first day" even until 2359h UTC or PST.

 

I would prefer not to try to infer timezone based on the Location; so if we enhance the script, we would consider offering a timezone offset parameter so that we could attempt to shift the data scrape accordingly.

+1

Timezone settings would be great.


I know now what is causing this, so I'm good.


Thanks

Hello there any chance to get TZ offset? 

Answer
Discuss & Vote

I've changed this into a Feature Request.


The MTG module is distinct from the rest of ActionTiles because it is a set of PHP scripts (vs Javascript, etc. for the app)We'll have to experiment to see if just adding a parameter and a few calculations has the desired effect. We'll keep this post updated with any progress.


Thanks,

...Terry.