Skip to content

Instantly share code, notes, and snippets.

@hExPY
Created January 20, 2017 07:40
Show Gist options
  • Save hExPY/555300618681f53250f49b4ea5c51cad to your computer and use it in GitHub Desktop.
Save hExPY/555300618681f53250f49b4ea5c51cad to your computer and use it in GitHub Desktop.
Openhab 2 German Weather Dashboard
Number Weather_Temperature "Temperatur [%.2f °C]" <temperature> (groupDashboardWeather) {weather="locationId=home, type=temperature, property=current"}
Number Weather_Temperature_Feel "gefühlte Temperatur [%.2f °C]" <temperature_cold> (groupDashboardWeather) {weather="locationId=home, type=temperature, property=feel"}
DateTime Sunrise_Time "Sonnen Aufgang [%1$tH:%1$tM]" <sunrise> (groupDashboardWeather) {channel="astro:sun:hamburg:rise#start" }
DateTime Sunset_Time "Sonnen Untergang [%1$tH:%1$tM]" <sunset> (groupDashboardWeather) {channel="astro:sun:hamburg:set#start" }
Number Weather_Humidity "Luftfeuchtigkeit [%d %%]" <humidity> (groupDashboardWeather) {weather="locationId=home, type=atmosphere, property=humidity"}
Number Weather_Pressure "Luftdruck [%.2f mb]" <fan> (groupDashboardWeather) {weather="locationId=home, type=atmosphere, property=pressure"}
Number Weather_Rain "Regen [%.2f mm/h]" <rain> (groupDashboardWeather) {weather="locationId=home, type=precipitation, property=rain"}
Number Weather_Snow "Schnee [%.2f mm/h]" <climate-on> (groupDashboardWeather) {weather="locationId=home, type=precipitation, property=snow"}
Number Weather_Precip_Probability "Niederschlag Wahrscheinlichkeit [%d %%]" <pie> {weather="locationId=home, type=precipitation, property=probability"}
String Weather_Condition "Wetterlage [%s]" <recorder> {weather="locationId=home, type=condition, property=text"}
DateTime Weather_LastUpdate "Zuletzt aktualisiert [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <clock> {weather="locationId=home, type=condition, property=lastUpdate"}
Group item=groupDashboardWeather {
Frame label="Aktuelles Wetter"{
Text item=Weather_Temperature
Text item=Weather_Temperature_Feel
Text item=Weather_Humidity
Text item=Weather_Pressure
Text item=Weather_Condition
}
Frame label="Niederschlag"{
Text item=Weather_Rain
Text item=Weather_Snow
Text item=Weather_Precip_Probability
}
Frame label="Informationen"{
Text item=Sunrise_Time
Text item=Sunset_Time
Text item=Weather_LastUpdate
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment