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 %}
|
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||||
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
|
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if states('sensor.kdfi_visibility') | int < 3 %}
|
{% if states('sensor.pirateweather_visibility') | int < 3 %}
|
||||||
Caution: Current outdoor visibility is {{ states('sensor.kdfi_visibility') }} miles.
|
Caution: Current outdoor visibility is {{ states('sensor.pirateweather_visibility') }} miles.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif method == 'tts' %}
|
{% elif method == 'tts' %}
|
||||||
@ -56,7 +56,7 @@
|
|||||||
] | random }}
|
] | random }}
|
||||||
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if (states('sensor.kdfi_visibility') | int ) < 3 %}
|
{% if (states('sensor.pirateweather_visibility') | int ) < 3 %}
|
||||||
{{ [
|
{{ [
|
||||||
"It is foggy outside, please exercise caution when driving. ",
|
"It is foggy outside, please exercise caution when driving. ",
|
||||||
"The visibility outside is quite low. If you will be driving soon, please be cautious. ",
|
"The visibility outside is quite low. If you will be driving soon, please be cautious. ",
|
||||||
|
@ -15,12 +15,22 @@ weather:
|
|||||||
{% else %}
|
{% else %}
|
||||||
{{ state_attr('weather.weatherapi_stratton_ave','forecast') }}
|
{{ state_attr('weather.weatherapi_stratton_ave','forecast') }}
|
||||||
{% endif %}
|
{% 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
|
pressure_unit: inHg
|
||||||
wind_speed_template: "{{ states('sensor.pirateweather_wind_speed') | float }}"
|
wind_speed_template: "{{ states('sensor.pirateweather_wind_speed') | float }}"
|
||||||
wind_speed_unit: mph
|
wind_speed_unit: mph
|
||||||
wind_bearing_template: "{{ states('sensor.pirateweather_wind_bearing') | float }}"
|
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
|
visibility_unit: mi
|
||||||
attribution_template: "Daily weather data from Iron Nerd's custom weather station template"
|
attribution_template: "Daily weather data from Iron Nerd's custom weather station template"
|
||||||
ozone_template: "{{ states('sensor.pirateweather_ozone') | float }}"
|
ozone_template: "{{ states('sensor.pirateweather_ozone') | float }}"
|
||||||
@ -38,12 +48,22 @@ weather:
|
|||||||
{% else %}
|
{% else %}
|
||||||
{{ state_attr('weather.iron_nerd_studios_hourly','forecast') }}
|
{{ state_attr('weather.iron_nerd_studios_hourly','forecast') }}
|
||||||
{% endif %}
|
{% 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
|
pressure_unit: inHg
|
||||||
wind_speed_template: "{{ states('sensor.pirateweather_wind_speed') | float }}"
|
wind_speed_template: "{{ states('sensor.pirateweather_wind_speed') | float }}"
|
||||||
wind_speed_unit: mph
|
wind_speed_unit: mph
|
||||||
wind_bearing_template: "{{ states('sensor.pirateweather_wind_bearing') | float }}"
|
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
|
visibility_unit: mi
|
||||||
attribution_template: "Hourly weather data from Iron Nerd's custom weather station template"
|
attribution_template: "Hourly weather data from Iron Nerd's custom weather station template"
|
||||||
ozone_template: "{{ states('sensor.pirateweather_ozone') | float }}"
|
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. "
|
"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') }}.
|
{{ states('sensor.weather_alert_string') }}.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if (states('sensor.kdfi_visibility') | int ) < 3 %}
|
{% if (states('sensor.pirateweather_visibility') | int ) < 3 %}
|
||||||
{{ [
|
{{ [
|
||||||
"It is foggy outside, please exercise caution when driving. ",
|
"It is foggy outside, please exercise caution when driving. ",
|
||||||
"The visibility outside is quite low. If you will be driving soon, please be cautious. ",
|
"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. "
|
"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') }}.
|
{{ states('sensor.weather_alert_string') }}.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if (states('sensor.kdfi_visibility') | int ) < 3 %}
|
{% if (states('sensor.pirateweather_visibility') | int ) < 3 %}
|
||||||
"In case you are planning to go back out, "
|
"In case you are planning to go back out, "
|
||||||
{{ [
|
{{ [
|
||||||
"It is foggy outside, please exercise caution when driving. ",
|
"It is foggy outside, please exercise caution when driving. ",
|
||||||
|
Reference in New Issue
Block a user