Skip to content

A Hemtjänst sensor using the Trafikinfo API to retrieve weather data

License

Notifications You must be signed in to change notification settings

hemtjanst/trafikvader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚦 Trafikväder ☀️

A Hemtjänst sensor using the Trafikinfo API to retrieve weather data

Release License: Apache-2

The trafikväder daemon exposes air temperature, relative humidity and precipitation from a weather station as Hemtjänst sensors.

Usage

In order to get station names, go to https://www.trafikverket.se/trafikinformation/vag. Enable Vägväder in the sidebar and click on your station. A card will pop up with information and in its header you'll find the name. Copy that value and pass it verbatim to -name.

Usage of trafikvader:

Parameters:

  -name value
    	station name to query for, needs to be passed at least 1 time
[..]
  -token string
    	Trafikinfo API token (default "REQUIRED")
[..]