Seite 5 von 5

Re: Darksky.net

Verfasst: 27. Apr 2020 15:01
von PeterA
Und noch die Sitemap hinterher:

Code: Alles auswählen

Frame label="Wetter" icon="sun_clouds" {
        Text   item=OWMInfo {
        //Text   item=LocalWeatherAndForecast_Current_OutdoorTemperature label="Aktuell in Höchst:" icon="sun_clouds" valuecolor=[>27="red",>20="orange",>10="purple",>5="green",<=5="blue"]{
        Text   item=LocalWeatherAndForecast_Current_ObservationTime               label="Beobachtungszeit [%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM Uhr]"
        Image  item=LocalWeatherAndForecast_Current_Icon                          label="Wetterbild"
        Text   item=LocalWeatherAndForecast_Current_WeatherCondition              label="Wetterlage"
        Text   item=LocalWeatherAndForecast_Current_OutdoorTemperature            label="Temperatur Aktuell"              valuecolor=[>27="red",>20="orange",>10="purple",>5="green",<=5="blue"]
        Text   item=LocalWeatherAndForecast_ForecastHours03_ForecastedTemperature label="Temperatur Vorhersage 3h"        valuecolor=[>27="red",>20="orange",>10="purple",>5="green",<=5="blue"]
//      Text item=Durchschnitt_Temperatur_OWM label="Durchschnitt Temperatur" valuecolor=[>27="red",>20="orange",>10="purple",>5="green",<=5="blue"]
        Text   item=owm_localCurrentWindchill                                     valuecolor=[>25="red",>20="orange",>15="green",<=12="blue"]
        Text   item=LocalWeatherAndForecast_Current_BarometricPressure            label="Luftdruck"
        Text   item=LocalWeatherAndForecast_Current_AtmosphericHumidity           label="Luftfeuchtigkeit"                valuecolor=[>70="red",>60="orange",>50="purple",>35="green",<=25="blue"]
        Text   item=LocalWeatherAndForecast_Current_WindSpeed                     label="Windgeschwindigkeit [%.1f km/h]" valuecolor=[>100="red",>=80="orange",>50="green",<=20="blue"]
        Text   item=LocalWeatherAndForecast_Current_WindSpeed                     label="Windstärke [SCALE(bft_ms_de.scale):%s]"
        Text   item=LocalWeatherAndForecast_Current_WindDirection icon="compass"  label="Windrichtung [SCALE(wind.scale):%s]"
        Text   item=LocalWeatherAndForecast_Current_Cloudiness                    label="Bewölkung Aktuell [%.0f %%]"     valuecolor=[>100="red",>=80="orange",>50="green",<=20="blue"]
        Text   item=LocalWeatherAndForecast_ForecastHours03_ForecastedCloudiness  label="Bewölkung Vorhersage 3h"         valuecolor=[>100="red",>=80="orange",>50="green",<=20="blue"]
        Text   item=Cloudiness_current_forecast3h_avg                                                                     valuecolor=[>100="red",>=80="orange",>50="green",<=20="blue"]
        Text   item=LocalWeatherAndForecast_Current_Cloudiness_Avrg                                                       valuecolor=[>100="red",>=80="orange",>50="green",<=20="blue"]
        Text   item=LocalWeatherAndForecast_Current_Rain                          label="Niederschlag Aktuell"            valuecolor=[>10="red",>=5="orange",>2="blue",<=1="green"]
        Text   item=LocalWeatherAndForecast_ForecastHours03_ForecastedRain        label="Niederschlag Vorhersage 3h"      valuecolor=[>10="red",>=5="orange",>2="blue",<=1="green"]
        Switch item=Pushmessage  mappings=[ON="Senden"]    icon="network" visibility=[Pushmessage!=ON]
        Switch item=Pushmessage  mappings=[OFF="Gesendet"] icon="network" visibility=[Pushmessage==ON]
        Text   label="Außen Temp zu OWM Temp Verlauf:" icon="chart"
        Switch item=CHART_PERIOD21 label="Außen Temp zu OWM Temp Verlauf" icon="temperature" mappings=[0="h", 1="1D", 2="3D", 3="W", 4="Y"]
        Chart item=Aussen_Temp_Chart period=h refresh=300 visibility=[CHART_PERIOD21==0, CHART_PERIOD21=="Uninitialized"]
        Chart item=Aussen_Temp_Chart period=D refresh=1800 visibility=[CHART_PERIOD21==1]
        Chart item=Aussen_Temp_Chart period=3D refresh=1800 visibility=[CHART_PERIOD21==2]
        Chart item=Aussen_Temp_Chart period=W refresh=3600 visibility=[CHART_PERIOD21==3]
        Chart item=Aussen_Temp_Chart period=Y refresh=3600 visibility=[CHART_PERIOD21==4]
        }
      Text label="Vorhersagen für 3,6,9,18,21,24h" icon="sun_clouds"{
        Text label="Vorhersagen für 3 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours03TimeStamp
        Default item=LocalWeatherAndForecastForecastHours03Condition
        Text    item=LocalWeatherAndForecast_ForecastHours03_ForecastedTemperature label="Temperatur" valuecolor=[>27="red",>20="orange",>10="purple",>5="green",<=5="blue"]
        Default item=LocalWeatherAndForecastForecastHours03Pressure
        Default item=LocalWeatherAndForecastForecastHours03Humidity
        Text    item=LocalWeatherAndForecast_ForecastHours03_ForecastedWindSpeed label="Windgeschwindigkeit [%.1f km/h]"
        Default item=LocalWeatherAndForecastForecastHours03WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours03WindDirection
        Text    item=LocalWeatherAndForecast_ForecastHours03_ForecastedCloudiness label="Bewölkung"
        Text    item=LocalWeatherAndForecast_ForecastHours03_ForecastedRain label="Niederschlag"
        //6h
        Text label="Vorhersagen für 6 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours06TimeStamp
        Default item=LocalWeatherAndForecastForecastHours06Condition
        Default item=LocalWeatherAndForecastForecastHours06Temperature
        Default item=LocalWeatherAndForecastForecastHours06Pressure
        Default item=LocalWeatherAndForecastForecastHours06Humidity
        Default item=LocalWeatherAndForecastForecastHours06WindSpeed
        Default item=LocalWeatherAndForecastForecastHours06WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours06WindDirection
        Default item=LocalWeatherAndForecastForecastHours06Cloudiness
        Default item=LocalWeatherAndForecastForecastHours06Rain
        //9h
        Text label="Vorhersagen für 9 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours09TimeStamp
        Default item=LocalWeatherAndForecastForecastHours09Condition
        Default item=LocalWeatherAndForecastForecastHours09Temperature
        Default item=LocalWeatherAndForecastForecastHours09Pressure
        Default item=LocalWeatherAndForecastForecastHours09Humidity
        Default item=LocalWeatherAndForecastForecastHours09WindSpeed
        Default item=LocalWeatherAndForecastForecastHours09WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours09WindDirection
        Default item=LocalWeatherAndForecastForecastHours09Cloudiness
        Default item=LocalWeatherAndForecastForecastHours09Rain
        //12h
        Text label="Vorhersagen für 12 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours12TimeStamp
        Default item=LocalWeatherAndForecastForecastHours12Condition
        Default item=LocalWeatherAndForecastForecastHours12Temperature
        Default item=LocalWeatherAndForecastForecastHours12Pressure
        Default item=LocalWeatherAndForecastForecastHours12Humidity
        Default item=LocalWeatherAndForecastForecastHours12WindSpeed
        Default item=LocalWeatherAndForecastForecastHours12WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours12WindDirection
        Default item=LocalWeatherAndForecastForecastHours12Cloudiness
        Default item=LocalWeatherAndForecastForecastHours12Rain
        //15h
        Text label="Vorhersagen für 15 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours15TimeStamp
        Default item=LocalWeatherAndForecastForecastHours15Condition
        Default item=LocalWeatherAndForecastForecastHours15Temperature
        Default item=LocalWeatherAndForecastForecastHours15Pressure
        Default item=LocalWeatherAndForecastForecastHours15Humidity
        Default item=LocalWeatherAndForecastForecastHours15WindSpeed
        Default item=LocalWeatherAndForecastForecastHours15WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours15WindDirection
        Default item=LocalWeatherAndForecastForecastHours15Cloudiness
        Default item=LocalWeatherAndForecastForecastHours15Rain
        //18h
        Text label="Vorhersagen für 18 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours18TimeStamp
        Default item=LocalWeatherAndForecastForecastHours18Condition
        Default item=LocalWeatherAndForecastForecastHours18Temperature
        Default item=LocalWeatherAndForecastForecastHours18Pressure
        Default item=LocalWeatherAndForecastForecastHours18Humidity
        Default item=LocalWeatherAndForecastForecastHours18WindSpeed
        Default item=LocalWeatherAndForecastForecastHours18WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours18WindDirection
        Default item=LocalWeatherAndForecastForecastHours18Cloudiness
        Default item=LocalWeatherAndForecastForecastHours18Rain
        //21h
        Text label="Vorhersagen für 21 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours21TimeStamp
        Default item=LocalWeatherAndForecastForecastHours21Condition
        Default item=LocalWeatherAndForecastForecastHours21Temperature
        Default item=LocalWeatherAndForecastForecastHours21Pressure
        Default item=LocalWeatherAndForecastForecastHours21Humidity
        Default item=LocalWeatherAndForecastForecastHours21WindSpeed
        Default item=LocalWeatherAndForecastForecastHours21WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours21WindDirection
        Default item=LocalWeatherAndForecastForecastHours21Cloudiness
        Default item=LocalWeatherAndForecastForecastHours21Rain
        //24h
        Text label="Vorhersagen für 24 Stunden:" labelcolor=["green"]
        Default item=LocalWeatherAndForecastForecastHours24TimeStamp
        Default item=LocalWeatherAndForecastForecastHours24Condition
        Default item=LocalWeatherAndForecastForecastHours24Temperature
        Default item=LocalWeatherAndForecastForecastHours24Pressure
        Default item=LocalWeatherAndForecastForecastHours24Humidity
        Default item=LocalWeatherAndForecastForecastHours24WindSpeed
        Default item=LocalWeatherAndForecastForecastHours24WindSpeedBft
        Default item=LocalWeatherAndForecastForecastHours24WindDirection
        Default item=LocalWeatherAndForecastForecastHours24Cloudiness
        Default item=LocalWeatherAndForecastForecastHours24Rain
        }
      }

Re: Darksky.net

Verfasst: 27. Apr 2020 22:17
von int5749
(back to topic) Ich installiere mal parallel das Dark Sky Binding, damit ich einen Vergleich habe ;-)

Re: Darksky.net

Verfasst: 27. Apr 2020 22:35
von int5749
int5749 hat geschrieben: 27. Apr 2020 22:17 (back to topic) Ich installiere mal parallel das Dark Sky Binding, damit ich einen Vergleich habe ;-)
Hmm, das will "natürlich" nicht :-/

Ich habe die Bridge leicht angepasst, damit es von der Konfig des Open Weather Map Binding abweicht, aber so bleibt die Bridge offline.

Code: Alles auswählen

Bridge darksky:weather-api:api "Dark Sky Account" [apikey="meinAPIkey", refreshInterval=30, language="de"] {
    Thing ds-weather-and-forecast dslocal "Local Weather And Forecast" [location="41.11,8.15", forecastHours=0, forecastDays=8, numberOfAlerts=1] {
   }
}
Wenn ich die Konfig unverändert lasse

Code: Alles auswählen

Bridge darksky:weather-api:api "Dark Sky Account" [apikey="meinAPIkey", refreshInterval=30, language="de"] {
    Thing weather-and-forecast local "Local Weather And Forecast" [location="41.11,8.15", forecastHours=0, forecastDays=8, numberOfAlerts=1] {
   }
}
startet die Bridge, aber natürlich geht die Open Weather Map offline :-/

Muss ich denn noch mehr anpassen??

Re: Darksky.net

Verfasst: 28. Apr 2020 17:13
von udo1toni
Ich verstehe nicht so ganz, was Du vorhast, aber wenn es sich um zwei Anbieter handelt, musst Du auch zwei Bridges anlegen.

Re: Darksky.net

Verfasst: 28. Apr 2020 18:46
von int5749
udo1toni hat geschrieben: 28. Apr 2020 17:13 Ich verstehen nicht so ganz, was Du vorhast, aber wenn es sich um zwei Anbieter handelt, musst Du auch zwei Bridges anlegen.
Hatte ich ja, aber da die beiden Things aus dem Sample gleich benannt waren habe ich diese angepasst, damit die parallel laufen könnten. Aber ich habe wohl eine Stelle vergessen? Denn so lief es nicht.

Code: Alles auswählen

/* OpenWeather Binding */
Bridge openweathermap:weather-api:api "OpenWeatherMap Account" [apikey="meinOWMAPIkey", refreshInterval=10, language="de"] {
	Thing weather-and-forecast local "Local Weather And Forecast" [location="47.11,8.15", forecastHours=120, forecastDays=0]
	Thing uvindex local "Local UV Index" [location="51.2664,6.9418", forecastDays=7]
}

/* Dark Sky Binding */
Bridge darksky:weather-api:api "Dark Sky Account" [apikey="meinDSAPIkey", refreshInterval=30, language="de"] {
    Thing ds-weather-and-forecast dslocal "Local Weather And Forecast" [location="47.11,8.15", forecastHours=0, forecastDays=8, numberOfAlerts=1] {
   }
}

Re: Darksky.net

Verfasst: 28. Apr 2020 18:53
von udo1toni
Nein, die Things können jeweils identisch benannt sein, da sie zu unterschiedlichen Bridges gehören.
weather-and-forecast ist ein Schlüsselwort, das ist nicht beliebig :)