I have modified the weather.php file to pull data from weather.com. The cmd.php poller is collecting the right information but I get an error "unknown DS name ''. I must have missed something in the datasource but I can't find it. I'd tried the weatherbug script but it has no data for Canada that I can access.
Thanks
Data Source Debug
/usr/local/rrdtool/bin/rrdtool create \
/usr/local/apache2/htdocs/rra/wspeed_25.rrd \
--step 300 \
DS:wspeed:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Code: Select all
MULTI command: /usr/local/php/bin/php
/usr/local/apache2/htdocs/scripts/fetchweather.php CAXX0345, output: curtemp:5 feelstemp:5 windchill:0 heatind:0 windspeed:0 dewpoint:-5 humidity:54 visibility:150 pressure:30.35 wdirection:0 uvindex:2
MULTI expansion: found fieldid: 37, found rrdname: , value: 5
MULTI expansion: found fieldid: 38, found rrdname: , value: 5
MULTI expansion: found fieldid: 39, found rrdname: , value: 0
MULTI expansion: found fieldid: 40, found rrdname: , value: 0
MULTI expansion: found fieldid: 41, found rrdname: wspeed, value: 0
MULTI expansion: found fieldid: 42, found rrdname: , value: -5
MULTI expansion: found fieldid: 43, found rrdname: , value: 54
MULTI expansion: found fieldid: 44, found rrdname: , value: 150
MULTI expansion: found fieldid: 45, found rrdname: , value: 30.35
MULTI expansion: found fieldid: 47, found rrdname: , value: 0
MULTI expansion: found fieldid: 48, found rrdname: , value: 2
update /usr/local/apache2/htdocs/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:252564
update /usr/local/apache2/htdocs/rra/localhost_mem_swap_4.rrd --template mem_swap N:1044184
update /usr/local/apache2/htdocs/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.04:0.02:0.00
update /usr/local/apache2/htdocs/rra/windspeed_24.rrd --template :wspeed N:2:0
ERROR: unknown DS name ''
time: 3