1 ##############################################
2 # $Id: myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig $
4 # Save this file as 99_myUtils.pm, and create your own functions in the new
5 # file. They are then available in every Perl expression.
14 myUtils_Initialize($$)
19 # Enter you functions below _this_ line.
22 my $temp = ReadingsVal("Aussentemperatur","temperature",10);
27 $m = ~int($temp * (-100) / 16);
30 $m = int($temp * 100 / 16);
33 my $b1 = substr(sprintf("%X", $m), -2);
34 my $cmd = "groupwrite ip:127.0.0.1 3/0/1 $b0 $b1";