Zitat von: satprofi am 30 April 2024, 10:07:56Hallo.Moin,
Habe täglich Liste mit Strompreis. Wie schaffe ich es, die Gesamtanzahl der Stunden, die unter Minimumwert liegen, auszuwerten? Das will ich zur Vorberechnung der Ladezeit verwenden.
LG
defmod adv5m_info HTTPMOD http://192.168.xxx.xxx:8899/command 35
attr adv5m_info enableControlSet 1
attr adv5m_info httpVersion 1.1
attr adv5m_info reading01Name name_original
attr adv5m_info reading01Regex CurrentFile: (.*)
attr adv5m_info reading02Name mode
attr adv5m_info reading02Regex MoveMode: (.*)
attr adv5m_info reading04Name status
attr adv5m_info reading04Regex MachineStatus: (.*)
attr adv5m_info requestData ~M119
attr adv5m_info timeout 35
attr adv5m_info userReadings name { my $js = ReadingsVal($NAME,"name_original",0);; $js=~s/.gcode//;; $js=~s/_/ /g;;$js;;}
defmod adv5m_progress HTTPMOD http://192.168.xxx.xxx:8899/command 35
attr adv5m_progress enableControlSet 1
attr adv5m_progress httpVersion 1.1
attr adv5m_progress reading01Name percent_completion
attr adv5m_progress reading01Regex byte (\d+)
attr adv5m_progress reading02Name layer_progress
attr adv5m_progress reading02Regex Layer: (\d+)
attr adv5m_progress reading03Name layer_target
attr adv5m_progress reading03Regex Layer: \d+\/(\d+)
attr adv5m_progress requestData ~M27
attr adv5m_progress timeout 35
defmod adv5m_temperature HTTPMOD http://192.168.xxx.xxx:8899/command 35
attr adv5m_temperature enableControlSet 1
attr adv5m_temperature httpVersion 1.1
attr adv5m_temperature reading01Name temperature_tool0_actual
attr adv5m_temperature reading01Regex T0:(\d+\.\d+)
attr adv5m_temperature reading02Name temperature_tool0_target
attr adv5m_temperature reading02Regex T0:\d+\.\d+/(\d+)
attr adv5m_temperature reading03Name temperature_bed_actual
attr adv5m_temperature reading03Regex B:(\d+\.\d+)
attr adv5m_temperature reading04Name temperature_bed_target
attr adv5m_temperature reading04Regex B:\d+\.\d+/(\d+)
attr adv5m_temperature requestData ~M105
attr adv5m_temperature timeout 35
defmod rg_ffadv5m readingsGroup adv5m_info :<auftrag: ;>,name\
adv5m_temperature :<düse: ;>,temperature_tool0_actual,<von>,temperature_tool0_target\
adv5m_temperature :<bett: ;>,temperature_bed_actual,<von>,temperature_bed_target\
<hr>\
adv5m_progress :<fertig: ;>,percent_completion\
adv5m_progress :<layer: ;>,layer_progress,<von>,layer_target\
adv5m_progress :<zustand: ;>,status\
adv5m_progress :<aktuell: ;>,mode\
<hr>\
adv5m_info :?!cam
attr rg_ffadv5m cellStyle {\
'r:1,c:1' => 'style="text-align:center;;"',\
'r:1,c:2' => 'style="border:1px solid;; -moz-border-radius:4px;; border-radius:4px;; padding:5px;; margin:5px;; float:center;; color:333333;; width:100%;; height:20px;; vertical-align:middle;; text-align:center;; align:center;;"'\
}
attr rg_ffadv5m commands { \
'state.off' => 'set %DEVICE on',\
'state.on' => 'set %DEVICE off'\
}
attr rg_ffadv5m noheading 1
attr rg_ffadv5m nolinks 1
attr rg_ffadv5m nonames 1
attr rg_ffadv5m nostate 1
attr rg_ffadv5m notime 1
attr rg_ffadv5m valueColumns {\
'name' => 'colspan="3";;',\
'cam' => 'colspan="4";; rowspan="4";;',\
'mode' => 'colspan="3";;',\
'status' => 'colspan="3";;'\
}
attr rg_ffadv5m valueFormat {\
'cam' => '<img src=http://192.168.xxx.xxx:8080/?action=stream" width=100%;>'\
}
attr rg_ffadv5m valueIcon {\
'state.on' => 'control_standby@green',\
'state.off' => 'control_standby@red'\
}
attr rg_ffadv5m valueSuffix {\
'temperature_tool0_actual' => ' ;°c',\
'temperature_tool0_target' => ' ;°c',\
'temperature_bed_actual' => ' ;°c',\
'temperature_bed_target' => ' ;°c',\
'percent_completion' => ' ;%'\
}
ich hoffe, ich hab nix übersehen ...set my_dbrep reduceLog 30:60 average INCLUDE=ht.og.ez.1:desired-temp
next if($w =~ /\b(\d+(:\d+)?)\b/);
erwischt auch das Include aus den Befehl, da der Devicename mit .1 endet.