This time it's the National Weather Service being unreliable... #89
This commit is contained in:
@ -26,8 +26,8 @@
|
||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
|
||||
{% endif %}
|
||||
{% if states('sensor.kdfi_visibility') | int < 3 %}
|
||||
Caution: Current outdoor visibility is {{ states('sensor.kdfi_visibility') }} miles.
|
||||
{% if states('sensor.pirateweather_visibility') | int < 3 %}
|
||||
Caution: Current outdoor visibility is {{ states('sensor.pirateweather_visibility') }} miles.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% elif method == 'tts' %}
|
||||
@ -56,7 +56,7 @@
|
||||
] | random }}
|
||||
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
||||
{% endif %}
|
||||
{% if (states('sensor.kdfi_visibility') | int ) < 3 %}
|
||||
{% if (states('sensor.pirateweather_visibility') | int ) < 3 %}
|
||||
{{ [
|
||||
"It is foggy outside, please exercise caution when driving. ",
|
||||
"The visibility outside is quite low. If you will be driving soon, please be cautious. ",
|
||||
|
@ -15,12 +15,22 @@ weather:
|
||||
{% else %}
|
||||
{{ state_attr('weather.weatherapi_stratton_ave','forecast') }}
|
||||
{% endif %}
|
||||
pressure_template: "{{ states('sensor.kdfi_barometric_pressure') | float }}"
|
||||
pressure_template: >
|
||||
{% if states('sensor.kdfi_barometric_pressure') %}
|
||||
{{ states('sensor.kdfi_barometric_pressure') }}
|
||||
{% else %}
|
||||
{{ states('sensor.myradar_pressure') | float }}
|
||||
{% endif %}
|
||||
pressure_unit: inHg
|
||||
wind_speed_template: "{{ states('sensor.pirateweather_wind_speed') | float }}"
|
||||
wind_speed_unit: mph
|
||||
wind_bearing_template: "{{ states('sensor.pirateweather_wind_bearing') | float }}"
|
||||
visibility_template: "{{ states('sensor.kdfi_visibility') | float }}"
|
||||
visibility_template: >
|
||||
{% if states('sensor.kdfi_visibility') %}
|
||||
{{ states('sensor.kdfi_visibility') | float }}
|
||||
{% else %}
|
||||
{{ states('sensor.pirateweather_visibility') }}
|
||||
{% endif %}
|
||||
visibility_unit: mi
|
||||
attribution_template: "Daily weather data from Iron Nerd's custom weather station template"
|
||||
ozone_template: "{{ states('sensor.pirateweather_ozone') | float }}"
|
||||
@ -38,12 +48,22 @@ weather:
|
||||
{% else %}
|
||||
{{ state_attr('weather.iron_nerd_studios_hourly','forecast') }}
|
||||
{% endif %}
|
||||
pressure_template: "{{ states('sensor.kdfi_barometric_pressure') | float }}"
|
||||
pressure_template: >
|
||||
{% if states('sensor.kdfi_barometric_pressure') %}
|
||||
{{ states('sensor.kdfi_barometric_pressure') }}
|
||||
{% else %}
|
||||
{{ states('sensor.myradar_pressure') | float }}
|
||||
{% endif %}
|
||||
pressure_unit: inHg
|
||||
wind_speed_template: "{{ states('sensor.pirateweather_wind_speed') | float }}"
|
||||
wind_speed_unit: mph
|
||||
wind_bearing_template: "{{ states('sensor.pirateweather_wind_bearing') | float }}"
|
||||
visibility_template: "{{ states('sensor.kdfi_visibility') | float }}"
|
||||
visibility_template: >
|
||||
{% if states('sensor.kdfi_visibility') %}
|
||||
{{ states('sensor.kdfi_visibility') | float }}
|
||||
{% else %}
|
||||
{{ states('sensor.pirateweather_visibility') }}
|
||||
{% endif %}
|
||||
visibility_unit: mi
|
||||
attribution_template: "Hourly weather data from Iron Nerd's custom weather station template"
|
||||
ozone_template: "{{ states('sensor.pirateweather_ozone') | float }}"
|
||||
|
@ -41,7 +41,7 @@
|
||||
"Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weather_alerts_active_corrected') }}. They are as follows. "
|
||||
{{ states('sensor.weather_alert_string') }}.
|
||||
{% endif %}
|
||||
{% if (states('sensor.kdfi_visibility') | int ) < 3 %}
|
||||
{% if (states('sensor.pirateweather_visibility') | int ) < 3 %}
|
||||
{{ [
|
||||
"It is foggy outside, please exercise caution when driving. ",
|
||||
"The visibility outside is quite low. If you will be driving soon, please be cautious. ",
|
||||
|
@ -86,7 +86,7 @@
|
||||
"Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weather_alerts_active_corrected') }}. They are as follows. "
|
||||
{{ states('sensor.weather_alert_string') }}.
|
||||
{% endif %}
|
||||
{% if (states('sensor.kdfi_visibility') | int ) < 3 %}
|
||||
{% if (states('sensor.pirateweather_visibility') | int ) < 3 %}
|
||||
"In case you are planning to go back out, "
|
||||
{{ [
|
||||
"It is foggy outside, please exercise caution when driving. ",
|
||||
|
Reference in New Issue
Block a user