da ich jetzt mal etwas Zeit habe, möchte ich mein Problem beim Speichern des Duty Cycles in einer Systemvariable angehen. Weil es keinen Bereich für debmatic gibt, erstelle ich den Thread im piVCCU Bereich. Eins noch vorweg: Ich bin Linux Laie.
debmatic läuft bei mir in einer 64bit Debian Proxmox VM grundsätzlich ohne Probleme. CUxD ist installiert un funktioniert soweit auch. Ich nutze die HB-RF-USB Platine. Lediglich das Speichern des DC in einer Systemvariable funktioniert nicht.
Mit folgendem Script versuche ich den DC in eine Variable zu schreiben, was aber nicht funktioniert.
Code: Alles auswählen
! HomeMatic-Script
! DUTY CYCLE ABFRAGEN
! http://www.christian-luetgens.de/homematic/cuxd/dutycycle/Duty_Cycle.htm
dom.GetObject ("CUxD.CUX2801001:1.CMD_SETS").State("echo 'load tclrpc.so; puts [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces ]'|tclsh | awk '// { printf $10 }'");
dom.GetObject ("CUxD.CUX2801001:1.CMD_QUERY_RET").State(1);
string s_reply = dom.GetObject("CUxD.CUX2801001:1.CMD_RETS").State();
dom.GetObject ("CCU.DutyCycle").State (s_reply.ToFloat());
! Ende des Scripts
Code: Alles auswählen
root@debmatic:~# echo 'load tclrpc.so; puts [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces ]'|tclsh | awk '// { printf $11 }'
couldn't load file "tclrpc.so": tclrpc.so: wrong ELF class: ELFCLASS32