ich teste gerade dieses Script:
Code: Alles auswählen
! UVR 1611 - Temperaturdaten aus Bl-Net auslesen by Alchy
string IP ="192.168.XXX.XXX:51";
string KNOTEN = "AA200101\t8D200101\t8D200201\t8D200301\t8D200401\t8D200501\t8D200601\t8D200701\t8D200801\t8D200901\t8D200A01\t8D200B01\t8D200C01\t8D200F01"; ! abzufragende Knotenpunkte mit \t getrennt
!++++++++++++ DONT TOUCH BEHIND THIS LINE ++++++++++
string index;
string slist = "";
foreach (index, KNOTEN) {
var url = "http://"#IP#"/c_index.htm?C="#index#"";
dom.GetObject("CUxD.CUX2801001:1.CMD_SETS").State("wget -q -O - '"#url#"'");
dom.GetObject("CUxD.CUX2801001:1.CMD_QUERY_RET").State(1);
string srueck = dom.GetObject("CUxD.CUX2801001:1.CMD_RETS").State();
string s1tmp = srueck.StrValueByIndex(";",1);
string saus = s1tmp.Substr(0, s1tmp.Length()-5);
! Hier kann man optional Namen vergeben, wird bestimmt noch benoetigt, da bestimmt auch noch gespeichert werden soll
string name = "unbekannt";
if (index == "AA200101") {name = "A1";}
if (index == "8D200101") {name = "E1";}
if (index == "8D200201") {name = "E2";}
if (index == "8D200301") {name = "E3";}
if (index == "8D200401") {name = "E4";}
if (index == "8D200501") {name = "E5";}
if (index == "8D200601") {name = "E6";}
if (index == "8D200701") {name = "E7";}
if (index == "8D200801") {name = "E8";}
if (index == "8D200901") {name = "E9";}
if (index == "8D200A01") {name = "E10";}
if (index == "8D200B01") {name = "E11";}
if (index == "8D200C01") {name = "E12";}
if (index == "8D200F01") {name = "E15";}
slist = slist #name #" = " #saus #"\n";
}
WriteLine(slist);
Code: Alles auswählen
A1 =
E1 = 13,9
E2 = 61,8
E3 = 44,6
E4 = 55,5
E5 = 29,8
E6 = 33,1
E7 = 26,0
E8 = 50,7
E9 = 50,0
E10 = 55,9
E11 = 27,7
E12 = 15,8
E15 = 20,5
G.V.