GPS Location for weather? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155) +---- Thread: GPS Location for weather? (/showthread.php?tid=141974) |
GPS Location for weather? - AutoJunkie95 - 2012-10-04 I'm interested in getting the weather add-on to update the location based on GPS instead of ip address. is this possible? I can put in hard work to make it happen of someone points me in the right direction. Thanks! RE: GPS Location for weather? - AutoJunkie95 - 2012-10-04 Ok, so I can take GPS Longitude and Latitude data and get the closest city name, zipcode, state abbreviation, and state name. I don't know python all that well, but what I could do is write up a quick VB program to edit the location settings for the weather add-on, say every 15-30 minutes, if I knew where the locations were stored. I see " __addon__.setSettings('Location1', Data['location'] ['city'])" but I don't know where it stores that information...yet. Can anyone point me in the right direction? RE: GPS Location for weather? - ronie - 2012-10-05 the latest test version of the weather addon accepts long/lat coordinates, so that might make it a bit easier for you. the location settings are stored in: ../userdata/addon_data/weather.wunderground/settings.xml the two fields you need to change: <setting id="Location1" value="LocationName" /> <setting id="Location1id" value="37.8,-122.4" /> the 'Location1' value is only used for displaying a location name on screen the 'Location1id' value is the actual value used to fetch the weather info. here are some examples of formats which be used in the Location1id field Quote:The location for which you want weather information. Examples: you can get the latest version here: http://forum.xbmc.org/showthread.php?tid=116668 RE: GPS Location for weather? - AutoJunkie95 - 2012-10-05 I figured that out only a few minutes before you posted! and that does make my life simpler. I'm going to code the app in vb.net first for simplicity, then I'll figure out how to do it in python and add settings for com port and gps type Thanks for your help! |