http://192.168.1.99:5010/command/1/set_charge_limit?50
http://192.168.1.99:5010/command/1/charge_start yes
charge_limit:60,70,80 http://192.168.1.99:5010/command/1/set_charge_limit? $EVTPART1
set Kodi01 open plugin://plugin.audio.radio_de/station/1904
die Radio Station mit der Radio.de Kennung 1904 auf gerufen.set Kodi01 open plugin://plugin.audio.radio_de/station/1904
die Radio Station mit der Radio.de Kennung 1904 auf gerufen.Zitat<flag> Options flag:
- 0 - counter without pullup
- 1 - counter with pullup
- 16 - enable median filter for that meter. Can help with sporadic dropouts, reading errors (not available for counters). this option is enabled by default #define USE_SML_MEDIAN_FILTER, if you are low on memory and dont use this feature you may outcomment this define in the driver
defmod doif_Abfall DOIF ##
attr doif_Abfall room KALENDER
attr doif_Abfall uiTable {\
package ui_Table;;\
\
$SHOWNOSTATE=1;;\
\
sub ic\
{\
my ($icon, $days, $days2) = @_;;\
\
icon_label2($icon, $days, $days2, 'white', (1 == $days ? 'red' : 2 == $days ? 'darkorange' : 'green'));;\
}\
\
sub icon_label2\
{\
my ($icon, $text, $text2, $color, $color_bg, $pos_left, $pos_top) = @_;;\
my $pad = ((length($text) > 1) ? 2 : 5);;\
my $pad2 = ((length($text2) > 1) ? 2 : 5);;\
\
$color = "" if (!defined ($color));;\
$color_bg = "" if (!defined ($color_bg));;\
$pos_left = -5 if (!defined ($pos_left));;\
$pos_top = -10 if (!defined ($pos_top));;\
\
return '<div style="display:inline-table;;">'.::FW_makeImage($icon).\
'<div style="display:inline;;width:16px;;height:14px;;border-radius:14px;;color:'.$color.';;background-color:'.$color_bg.\
';;font-size:10px;;font-weight:700;;text-align:center;;position:relative;;padding-top:1px;;padding-left:'.$pad.'px;;padding-right:'.$pad.'px;;padding-bottom:1px;;'.\
'left:'.$pos_left.'px;;top:'.$pos_top.'px;;">'.$text.'</div>'.\
'<div style="display:inline;;width:16px;;height:14px;;border-radius:14px;;color:'.$color.';;border:1px solid white;;'.\
'font-size:10px;;font-weight:700;;text-align:center;;position:relative;;padding-top:1px;;padding-left:'.$pad2.'px;;padding-right:'.$pad2.'px;;padding-bottom:1px;;'.\
'left:'.$pos_left.'px;;top:'.$pos_top.'px;;">'.$text2.'</div></div>';;\
}\
\
sub convDate\
{\
my ($date, $days) = @_;;\
\
return 'Heute' if (0 == $days);;\
return 'Morgen' if (1 == $days);;\
return 'Übermorgen' if (2 == $days);;\
\
# the following line strips the year of the date (remove it if needed)\
#return substr($date, 0, 5);;\
return $date;;\
}\
\
sub textColor\
{\
my $days = shift;;\
\
return (1 == $days ? 'red' : 2 == $days ? 'darkorange' : 'white');;\
}\
}\
\
DEF TPL_Abfall (style([ABFALL_LEERUNG:$1_weekday], textColor([ABFALL_LEERUNG:$1_days]))|\
style(convDate([ABFALL_LEERUNG:$1_date], [ABFALL_LEERUNG:$1_days]), textColor([ABFALL_LEERUNG:$1_days]))|\
style([ABFALL_LEERUNG:$1_text], textColor([ABFALL_LEERUNG:$1_days]))|\
ic("dustbin\@$2", [ABFALL_LEERUNG:$1_days], [ABFALL_LEERUNG:$1_daysnext]))\
\
TPL_Abfall (Restmuelltonne,red)\
TPL_Abfall (Gelbe_Tonne,green)\
TPL_Abfall (Papiertonne,limegreen)\
TPL_Abfall (Biotonne,yellow)\
TPL_Abfall (Glas,blue)\