Skip to content

Showing weather information for air and road provided by Trafikverket in Sweden.

Notifications You must be signed in to change notification settings

tubalainen/trafikverket_weatherstations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Trafikverket WeatherStations

Showing weather information for air and road temperature provided by Trafikverket in Sweden. This Python file should be used as a custom component in Home Assistant.

Configuration

To enable this sensor, add the following lines to your configuration.yaml.

sensor:
  - platform: trafikverket_weatherstations
    name: Trafikverket Road WeatherStation Kungälv
    api: eXXcbXXXacXXXXc39XX3aXXX4aXX46XX
    station: Kungälv
    type: road

Configuration variables:

  • name (Required): Unique name of the device in the frontend.
  • api (Required): API key from Trafikverket
  • station (Required): Name of the weather station
  • type (Required): Defines which temperature you want (air or road)
Getting API key:

https://api.trafikinfo.trafikverket.se/

See Trafikverket weather stations

https://www.trafikverket.se/trafikinformation/vag/?TrafficType=personalTraffic&map=1/606442.17/6886316.22/&Layers=RoadWeather%2b

Example
sensor:
  - platform: trafikverket_weatherstations
    name: Trafikverket Road WeatherStation Kungälv
    api: eXXcbXXXacXXXXc39XX3aXXX4aXX46XX
    station: Kungälv
    type: road
  - platform: trafikverket_weatherstations
    name: Trafikverket Air WeatherStation Lanna
    api: eXXcbXXXacXXXXc39XX3aXXX4aXX46XX
    station: Lanna
    type: air

About

Showing weather information for air and road provided by Trafikverket in Sweden.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%