Weather based on current location (while traveling)
We are currently traveling around the US. I need for the current weather and weather forecast to change every time we change locations. Currently this would involve manually changing the station ID and name in four different places in config.js.
Any ideas on how to automate this?
@donblanco you could create 4 variables at the top of config.js
var key1= ‘… ’
var key2=’… ’
var location_name=’… ’
var our_location_id=’… ’
then use those variable names in the module definitions
so u only have to change it once, in one isolated place
but that’s not automated. I guess I was hoping for something like when you go to a weather web site and it automatically uses your location for the current obs and forecast…
@donblanco none of these apps consider that you move. so they all take fixed locations
@sdetweil yeah, guess I’ll have to find something else or roll my own, maybe w/ an iframe solution? shrug
@donblanco you could write some script that could figure it out, and update the config as mm starts
like this for lat/long
@sdetweil I’m still going through various widgets. As it turns out, my location based on IP is highly inaccurate. My AT&T cell signal shows up as an IP out of Seattle. So I’ll need GPS info, but I don’t think my wireless device has that built in, just my phones.
Oh well, something to work on, better than being bored lol