forked from SBorg2014/WLAN-Wetterstation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wetterstation.js
53 lines (53 loc) · 7.11 KB
/
wetterstation.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//Wetterstation Datenpunkte anlegen V1.3.0
let DP="javascript.0.Wetterstation."
createState(DP+"Innentemperatur" ,"", {name: "Temperatur im Haus", type: "number", role: "state", unit: "°C" });
createState(DP+"Aussentemperatur" ,"", {name: "Temperatur Außen", type: "number", role: "state", unit: "°C" });
createState(DP+"Taupunkt" ,"", {name: "Taupunkt", type: "number", role: "state", unit: "°C" });
createState(DP+"Chillfaktor" ,"", {name: "Chillfaktor", type: "number", role: "state", unit: "°C" });
createState(DP+"Innenfeuchtigkeit" ,"", {name: "Luftfeuchtigkeit Innen", type: "number", role: "state", unit: "%" });
createState(DP+"Aussenfeuchtigkeit" ,"", {name: "Luftfeuchtigkeit Außen", type: "number", role: "state", unit: "%" });
createState(DP+"Wind" ,"", {name: "Windgeschwindigkeit", type: "number", role: "state", unit: "km/h" });
createState(DP+"Wind_max" ,"", {name: "Windgeschwindigkeit maximal", type: "number", role: "state", unit: "km/h" });
createState(DP+"Windrichtung" ,"", {name: "Windrichtung in Grad", type: "number", role: "state", unit: "°" });
createState(DP+"Windrichtung_Text" ,"", {name: "Windrichtung als Text", type: "string", role: "state" });
createState(DP+"Druck_absolut" ,"", {name: "Luftdruck absolut", type: "number", role: "state", unit: "hPa" });
createState(DP+"Druck_relativ" ,"", {name: "Luftdruck relativ", type: "number", role: "state", unit: "hPa" });
createState(DP+"Druck_Tendenz" ,"", {name: "Luftdrucktendenz", type: "number", role: "state" });
createState(DP+"Wetter_Trend" ,"", {name: "Wettertrend", type: "string", role: "state" });
createState(DP+"Wetter_aktuell" ,"", {name: "aktuelles Wetter", type: "string", role: "state" });
createState(DP+"Regenrate" ,"", {name: "Regenrate", type: "number", role: "state", unit: "mm/h" });
createState(DP+"Regenstatus" ,"--", {name: "aktueller Regenstatus", type: "string", role: "state" });
createState(DP+"Regen_Tag" ,"", {name: "Regenmenge Heute", type: "number", role: "state", unit: "mm" });
createState(DP+"Regen_Woche" ,"", {name: "Regenmenge Woche", type: "number", role: "state", unit: "mm" });
createState(DP+"Regen_Monat" ,"", {name: "Regenmenge Monat", type: "number", role: "state", unit: "mm" });
createState(DP+"Regen_Jahr" ,"", {name: "Regenmenge Jahr aus Station", type: "number", role: "state", unit: "mm" });
createState(DP+"Regen_Jahr_kumuliert" , 0, {name: "Regenmenge Jahr berechnet", type: "number", role: "state", unit: "mm" });
createState(DP+"Sonnenstrahlung" ,"", {name: "Sonnenstrahlung", type: "number", role: "state", unit: "W/m²" });
createState(DP+"UV_Index" ,"", {name: "UV Index", type: "number", role: "state" });
createState(DP+"UV_Belastung" ,"", {name: "UV-Belastung", type: "string", role: "state" });
createState(DP+"Zeitstempel" ,"", {name: "von wann ist die Messung", type: "string", role: "state" });
createState(DP+"_Kommunikationsfehler" ,"", {name: "liegt ein Problem vor", type: "boolean",role: "state" });
createState(DP+"tempData.Wetterdaten" ,"", {name: "temporär gespeicherte Wetterdaten", type: "string" ,role: "state" });
createState(DP+"tempData.Sonnenschein" ,"", {name: "temporäre Daten Tag, Woche, Monat, Jahr",type: "string",role: "state" });
createState(DP+"tempData.Solarenergie" ,"0", {name: "temporäre Daten Tag, Woche, Monat, Jahr",type: "string",role: "state" });
createState(DP+"Info.FW_Upgrade" ,"", {name: "neue Firmware für die Station", type: "boolean",role: "state" });
createState(DP+"Info.FW_Version" ,"", {name: "Firmwareversion der Station", type: "string", role: "state" });
createState(DP+"Info.Sonnenschein_VorTag" , 0, {name: "Sonnenscheindauer Gestern", type: "number", role: "state", unit: "Sek." });
createState(DP+"Info.Sonnenschein_Tag" ,"", {name: "Sonnenscheindauer Heute", type: "number", role: "state", unit: "Sek." });
createState(DP+"Info.Sonnenschein_Woche" ,"", {name: "Sonnenscheindauer diese Woche", type: "number", role: "state", unit: "Sek." });
createState(DP+"Info.Sonnenschein_Monat" ,"", {name: "Sonnenscheindauer diesen Monat", type: "number", role: "state", unit: "Sek." });
createState(DP+"Info.Sonnenschein_Jahr" ,"", {name: "Sonnenscheindauer dieses Jahr", type: "number", role: "state", unit: "Sek." });
createState(DP+"Info.Sonnenschein_Tag_Text" ,"", {name: "Sonnenscheindauer Heute als Text", type: "string", role: "state" });
createState(DP+"Info.Sonnenschein_Woche_Text","", {name: "Sonnenscheindauer diese Woche als Text", type: "string", role: "state" });
createState(DP+"Info.Sonnenschein_Monat_Text","", {name: "Sonnenscheindauer diesen Monat als Text",type: "string", role: "state" });
createState(DP+"Info.Sonnenschein_Jahr_Text" ,"", {name: "Sonnenscheindauer dieses Jahr als Text", type: "string", role: "state" });
createState(DP+"Info.Sonnenschein_VorJahr" , 0, {name: "Sonnenscheindauer letztes Jahr", type: "number", role: "state", unit: "Sek." });
createState(DP+"Info.Regenmenge_VorJahr" , 0, {name: "Regenmenge letztes Jahr", type: "number", role: "state", unit: "mm" });
createState(DP+"Info.Solarenergie_VorTag" , 0, {name: "Solarenergie Gestern", type: "number", role: "state", unit: "Wh/m²" });
createState(DP+"Info.Solarenergie_Tag" , 0, {name: "Solarenergie Heute", type: "number", role: "state", unit: "Wh/m²" });
createState(DP+"Info.Solarenergie_Woche" , 0, {name: "Solarenergie diese Woche", type: "number", role: "state", unit: "kWh/m²" });
createState(DP+"Info.Solarenergie_Monat" , 0, {name: "Solarenergie diesen Monat", type: "number", role: "state", unit: "kWh/m²" });
createState(DP+"Info.Solarenergie_Jahr" , 0, {name: "Solarenergie dieses Jahr", type: "number", role: "state", unit: "kWh/m²" });
createState(DP+"Info.Solarenergie_VorJahr" , 0, {name: "Solarenergie letztes Jahr", type: "number", role: "state", unit: "kWh/m²" });
createState(DP+"Info.Letzter_Regen" ,"", {name: "letztes Regenereignis", type: "string", role: "state" });
createState(DP+"Info.Letzte_Regenmenge" , 0, {name: "letzte Regenmenge", type: "number", role: "state", unit: "mm" });