Temat: problem z zapisem do rrd i generowaniem *.png
Witam
Mam zainstalowane
#digitemp_DS9097U -a
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - [url]http://www.digitemp.com[/url]
Mar 07 20:56:01 Sensor 0 C: 27.00 F: 80.60czyli działa
crontabs
#
#m h d month d-week
#
# robimy kopie 1x dziennie (o 4:09)
9 4 * * * /usr/bin/rrd_backup.sh
#
*/1 * * * * * /usr/bin/rrd.sh >/dev/null 2>/dev/null
#
#<EOF>
#*/1 * * * * mnt/sda1/1wire/gettemp.sh
*/1 * * * * /1wire/gettemp.sh
0 0,4,8,12,16,20 * * * date -u +"%Y.%m.%d-%H:%M:%S" >/usr/data/time_backup
0,1,11,21,31,41,51 * * * * /usr/bin/set_kernel_timezone >/dev/null 2>&1
0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.shgettemp.sh wyglada tak
echo `digitemp_DS9097U -t 0 -q -o "%Y-%m-%d %H:%M:%S %.2C" | grep -v Found` >> /1wire/temperature.tx
#!/bin/sh
#timestamp-y
echo -n `date +%s:` >>/1wire/temptmp0.txt
#echo -n `date +%s:` >>/1wire/temptmp1.txt
#echo -n `date +%s:` >>/1wire/temptmp2.txt
#echo -n `date +%s:` >>/1wire/temptmp3.txt
#echo -n `date +%s:` >>/1wire/temptmp4.txt
# czujnik 0
echo `digitemp_DS9097U -s /dev/ttyUSB0 -q -o "%Y-%m-%d %H:%M:%S %.2C" -c /1wire/.digitemprc -t 0`
echo -n `digitemp_DS9097U -s /dev/ttyUSB0 -q -o "%.2C" -c /1wire/.digitemprc -t 0` >> /1wire/temp
echo " " >> /1wire/temptmp0.txt
temp0=`cat /1wire/temptmp0.txt`
rrdtool update /1wire/baza0.rrd $temp0
rm /1wire/temptmp0.txtI o dziwo plik temperature.txt dziala prawidło i się nadpisuje
templog0.txt tez się nadpisuje i nawet baza0.rrd sie cos tam pisze
to za pomoca
#!/bin/bash
#plik nazwac graph.sh
rrdtool graph /1wire/temp10.png --imgformat PNG \
--title="Tutul wykresuuuuu" \
--width 800 --height 300 \
--vertical-label="Stopnie Celsjusza .C" \
--end now --start end-2d \
DEF:temp1=/1wire/baza0.rrd:temp1:AVERAGE \
GPRINT:temp1:LAST:"aktualna %2.2lf .C" GPRINT:temp1:MIN:"minimalna %2.2lf .C"
AREA:temp1#6060ef \
LINE1:temp1#0000ffMam pusty wykres bez danych czy wykresu.
wykres odpalam bezpośrednio wpisujac adres w wysykiwarce do pliku png