Skip to content

Commit

Permalink
bugfix timestamp with date
Browse files Browse the repository at this point in the history
  • Loading branch information
MiOrt committed Mar 7, 2020
1 parent 35fda52 commit b81dca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if (( graphtimer == 1 )); then
livegraphtime="720"
fi
longlivetime=$((livegraphtime*2))
echo $(date +%Y/%m/%d +%H:%M:%S),$wattbezugint,$ladeleistung,$pvgraph,$ladeleistunglp1,$ladeleistunglp2,$ladeleistunglp3,$ladeleistunglp4,$ladeleistunglp5,$ladeleistunglp6,$ladeleistunglp7,$ladeleistunglp8,$speicherleistung,$speichersoc,$soc,$soc1,$hausverbrauch,$verbraucher1_watt,$verbraucher2_watt >> /var/www/html/openWB/ramdisk/all.graph
echo $(date '+%Y/%m/%d %H:%M:%S'),$wattbezugint,$ladeleistung,$pvgraph,$ladeleistunglp1,$ladeleistunglp2,$ladeleistunglp3,$ladeleistunglp4,$ladeleistunglp5,$ladeleistunglp6,$ladeleistunglp7,$ladeleistunglp8,$speicherleistung,$speichersoc,$soc,$soc1,$hausverbrauch,$verbraucher1_watt,$verbraucher2_watt >> /var/www/html/openWB/ramdisk/all.graph
echo "$(tail -$longlivetime /var/www/html/openWB/ramdisk/all.graph)" > /var/www/html/openWB/ramdisk/all.graph


Expand Down

0 comments on commit b81dca3

Please sign in to comment.