Weather Location Error
This error occurs when the TVS Weather content engine is unable to determine the location for which to fetch weather data.
Why does this error occur?
Section titled “Why does this error occur?”This error typically occurs due to one of the following reasons:
- GPS / location permissions are disabled in the browser
- You’re outside of the United States
- You’re running TVS over HTTP (instead of HTTPS) and not using
localhost; browsers block location requests on non-secure connections - If using a manually set location inside
config.tvs.yml, the GPS coordinates are invalid or not recognized by the NWS API
Troubleshooting Steps
Section titled “Troubleshooting Steps”-
If you’re outside the United States, the built-in weather engine currently don’t support any other countries. Check out some other simulators that can be embedded inside TVS as IFrames that better support your region. For instance the simulators from our friends at Mist Streaming
-
Enable location permissions: Ensure that your browser has permission to access your location. You may need to check your browser settings or the site permissions for TVS.
-
Use HTTPS or localhost: If you’re accessing TVS over a network, make sure to use HTTPS. If you’re running it locally, access it via
http://localhostorhttps://your-hostname -
Set a manual location: If automatic location detection isn’t working, you can manually set the location in your
config.tvs.ymlfile using GPS coordinates.Example:
config.tvs.yml channels:- number: 1weather:provider: usaunits: imperial # The units to use; either imperial or metriclatitude: your_latitude_valuelongitude: your_longitude_valueReplace the latitude and longitude values with the desired coordinates.