Skip to content

Instantly share code, notes, and snippets.

@boozeman
Last active October 13, 2023 18:19
Show Gist options
  • Save boozeman/4f1d243097ca36e6b59f2afd11b27a27 to your computer and use it in GitHub Desktop.
Save boozeman/4f1d243097ca36e6b59f2afd11b27a27 to your computer and use it in GitHub Desktop.
Sensors for FMIWeather.py iteration3 (You can choose Station and measurement)
command_line:
- sensor:
name: "Wind Direction 10min Avg"
unique_id: file_fmi_wind_direction
unit_of_measurement: "°"
scan_interval: 300
command: "python3 /config/FMIWeather.py Tampere winddirection"
value_template: "{{ value_json.result[-1].value |int }}"
json_attributes:
- time
- value
- sensor:
name: "Wind Speed 10min Avg"
unique_id: file_fmi_wind_speed
unit_of_measurement: "m/s"
scan_interval: 300
command: "python3 /config/FMIWeather.py Tampere windspeed"
value_template: "{{ value_json.result[-1].value |float }}"
json_attributes:
- time
- value
- sensor:
name: "Wind Gusts 10min Avg"
unique_id: file_fmi_wind_gusts
unit_of_measurement: "m/s"
scan_interval: 300
command: "python3 /config/FMIWeather.py Tampere windgusts"
value_template: "{{ value_json.result[-1].value |float }}"
json_attributes:
- time
- value
- sensor:
name: "Temperature"
unique_id: file_fmi_temperature
unit_of_measurement: "°C"
scan_interval: 300
command: "python3 /config/FMIWeather.py Tampere temperature"
value_template: "{{ value_json.result[-1].value |float }}"
json_attributes:
- time
- value
- sensor:
name: "Humidity"
unique_id: file_fmi_humidity
unit_of_measurement: "%"
scan_interval: 300
command: "python3 /config/FMIWeather.py Tampere humidity"
value_template: "{{ value_json.result[-1].value |float }}"
json_attributes:
- time
- value
- sensor:
name: "Air Pressure"
unique_id: file_fmi_pressure
unit_of_measurement: "hPa"
scan_interval: 300
command: "python3 /config/FMIWeather.py Tampere pressure"
value_template: "{{ value_json.result[-1].value |float }}"
json_attributes:
- time
- value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment