Skip to content

Weather Location Error

This error occurs when the TVS Weather content engine is unable to determine the location for which to fetch weather data.

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
  1. 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

  2. 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.

  3. 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://localhost or https://your-hostname

  4. Set a manual location: If automatic location detection isn’t working, you can manually set the location in your config.tvs.yml file using GPS coordinates.

    Example:

    config.tvs.yml
    channels:
    - number: 1
    weather:
    provider: usa
    units: imperial # The units to use; either imperial or metric
    latitude: your_latitude_value
    longitude: your_longitude_value

    Replace the latitude and longitude values with the desired coordinates.