Hi,

With the heat and UV issues for health, I've added this on my page ...
I've added some lines with Bootstrap 4.0 for the UV sensor, here are the 
lines :

file /etc/weewx/skins/Boutstrap/livegauge.html.inc

(...)

            <tr>
                <td>$gettext("RecommendationsUV")</td>
                        #if $current.UV.raw > 11
                         <td>$gettext("RiskUV5")</td>
                        #elif $current.UV.raw >= 8
                         <td>$gettext("RiskUV4")</td>
                        #elif $current.UV.raw >= 6
                         <td>$gettext("RiskUV3")</td>
                        #elif $current.UV.raw >= 3
                         <td>$gettext("RiskUV2")</td>
                        #elif $current.UV.raw >= 1
                         <td>$gettext("RiskUV1")</td>
                        #else:
                         <td>$gettext("RiskUV0")</td>
                        #end if
            </tr>

(...)

And the languages 

/etc/weewx/skins/Boutstrap/lang/fr.conf

    "UV" = "Indice UV"
    "RecommendationsUV" = "Recommandations (UV)"
    "RiskUV5" = "Risque extrême et dangereux"
    "RiskUV4" = "Risque très élevé (Indice 50+)"
    "RiskUV3" = "Risque élevé (Indice 30 à 50)"
    "RiskUV2" = "Risque modéré (Indice 15 à 29)"
    "RiskUV1" = "Risque faible"
    "RiskUV0" = "Risque nul"
    "Cumulative rain" = "Cumul de pluie"
    "Equinox" = "Équinoxe"
    "Solstice" = "Solstice"

/etc/weewx/skins/Boutstrap/lang/en.conf

    "UV" = "UV Indice"
    "RecommendationsUV" = "Recommendations (UV)"
    "RiskUV5" = "Extreme and dangerous risk"
    "RiskUV4" = "Very high risk (Index 50+)"
    "RiskUV3" = "High risk (Index 30 to 50)"
    "RiskUV2" = "Moderate risk (Index 15 to 29)"
    "RiskUV1" = "Low risk"
    "RiskUV0" = "Zero risk"
    "Cumulative rain" = "Cumulative Rain"
    "Equinox" = "Equinox"
    "Solstice" = "Solstice"

(...)

Have fun

Yves,
YMartin.com/meteo

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/dca12e41-fd50-4c78-b257-7d3251dada55n%40googlegroups.com.

Reply via email to