#!/usr/bin/env perl use warnings; use diagnostics; use lib "../../lib"; use HotSaNICparser; # read global settings # $MODNAME=lc HotSaNICparser::get_module_name(); %CONFIG=HotSaNICparser::get_config("../.."); $IMAGEFORMAT=$CONFIG{"IMAGEFORMAT"}; $REFRESH=$CONFIG{"REFRESH"}; $REFRESH=0 if !defined $REFRESH; $DESCR{loadpct}="USV load"; $DESCR{timeleft}="uptime left"; $DESCR{battpct}="battery charge"; $DESCR{battv}="battery voltage"; $DESCR{outv}="output voltage"; $DESCR{temp}="temperature"; # read module-specific settings # close FILE; @DIAGRAMS=("hour","6h","day","week","month","year"); @TIMES=("6h","week"); # build time-based .html files # foreach $time (@TIMES) { open (FILE,">index/$time.html"); print FILE "\n"; if ($REFRESH > 0) { print FILE " \n"; } print FILE "
\n$dev$descr |
hotsanic |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|