8 '__default' => '100x1',
14 system "killall mosquitto_sub trend";
16 system "killall mosquitto_sub trend";
17 system "i3-msg layout splitv";
18 #system "i3-msg border none";
23 $topic = $ARGV[0] if $ARGV[0];
25 open(my $in, '-|', "mosquitto_sub -h rpi2 -t '$topic' -v");
29 my ($t,$v) = split(/\s/,$_,2);
30 print STDERR "$t=$v ";
32 if ( ! exists $trend->{$t} && $v =~ m/^\d+/ ) {
33 my $hist = $trend->{hist_spec}->{$t} || $trend->{hist_spec}->{__default};
36 open($trend->{$t}, '|-', "trend -L $label -v - $hist");
48 system "i3-msg border 1pixel" if $border-- > 0;