Hi Ian,

So I decided to do a new install of both weewx and the very latest 
Weather34 Template (just got tonight) on another raspberry Pi to test 
things. Since I have only one weather station I choose the interceptor 
driver on the new system (did some minor changes to it so it could handle 
2316 weather data) and then wrote a weewx service called post_loop_packet 
to send the loop data to the interceptor driver. All works just fine and 
have two different versions of the weewx running. I also check the 
w34stats.php and the issue with the format function is gone and the 
template does work in some places. But there is a flood of errors in the 
apache error log. I will include part of the log after this. Some of errors 
seems to be not handling data that N/A. Like in the solar section, I do not 
have solar but the php tries to convert N/A to a number. Here are some log 
snippets.
Hope this helps.
Jerry

[Sat May 25 06:25:08.334215 2019] [mpm_prefork:notice] [pid 703] AH00163: 
> Apache/2.4.25 (Raspbian) c[Sat May 25 21:46:52.967308 2019] [:error] [pid 
> 10633] [client 192.168.0.39:61452] PHP Warning:  number_format() expects 
> parameter 1 to be float, string given in /var/www/html/pws/livedata.php on 
> line 92, referer: http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967308 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 92, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967406 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 92, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967545 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967575 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967613 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967617 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967642 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967680 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967700 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967718 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967743 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967763 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967857 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967881 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.969653 2019] [:error] [pid 10589] [client 
> 192.168.0.39:61453] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 92, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.969836 2019] [:error] [pid 10589] [client 
> 192.168.0.39:61453] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.969989 2019] [:error] [pid 10589] [client 
> 192.168.0.39:61453] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.970049 2019] [:error] [pid 10589] [client 
> 192.168.0.39:61453] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.970111 2019] [:error] [pid 10589] [client 
> 192.168.0.39:61453] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.975088 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 279, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.975088 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 279, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.975177 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 279, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.975464 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 284, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.975487 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 284, referer: 
> http://192.168.0.21:88/pws/?units=us
>
Sat May 25 21:46:53.169557 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder1 in 
/var/www/html/pws/advisory.php on line 72, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169594 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder2 in 
/var/www/html/pws/advisory.php on line 74, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169720 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder3 in 
/var/www/html/pws/advisory.php on line 76, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169744 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder4 in 
/var/www/html/pws/advisory.php on line 78, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169773 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder5 in 
/var/www/html/pws/advisory.php on line 80, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169799 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder6 in 
/var/www/html/pws/advisory.php on line 82, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169823 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder7 in 
/var/www/html/pws/advisory.php on line 84, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169846 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder1 in 
/var/www/html/pws/advisory.php on line 87, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169869 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder2 in 
/var/www/html/pws/advisory.php on line 89, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169891 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder3 in 
/var/www/html/pws/advisory.php on line 91, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169917 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder4 in 
/var/www/html/pws/advisory.php on line 93, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169941 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder5 in 
/var/www/html/pws/advisory.php on line 95, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169963 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder6 in 
/var/www/html/pws/advisory.php on line 97, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.169986 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskythunder7 in 
/var/www/html/pws/advisory.php on line 99, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170009 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow1 in 
/var/www/html/pws/advisory.php on line 103, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170035 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow2 in 
/var/www/html/pws/advisory.php on line 105, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170057 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow3 in 
/var/www/html/pws/advisory.php on line 107, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170081 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow4 in 
/var/www/html/pws/advisory.php on line 109, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170104 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow5 in 
/var/www/html/pws/advisory.php on line 111, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170127 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow6 in 
/var/www/html/pws/advisory.php on line 113, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170193 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow7 in 
/var/www/html/pws/advisory.php on line 115, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170217 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow1 in 
/var/www/html/pws/advisory.php on line 119, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170239 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow2 in 
/var/www/html/pws/advisory.php on line 121, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170262 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow3 in 
/var/www/html/pws/advisory.php on line 123, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170285 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow4 in 
/var/www/html/pws/advisory.php on line 125, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170309 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow5 in 
/var/www/html/pws/advisory.php on line 127, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170333 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow6 in 
/var/www/html/pws/advisory.php on line 129, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170356 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskysnow7 in 
/var/www/html/pws/advisory.php on line 131, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170379 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain1 in 
/var/www/html/pws/advisory.php on line 135, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170402 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain2 in 
/var/www/html/pws/advisory.php on line 138, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170425 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain3 in 
/var/www/html/pws/advisory.php on line 140, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170448 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain4 in 
/var/www/html/pws/advisory.php on line 142, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170470 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain5 in 
/var/www/html/pws/advisory.php on line 144, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170493 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain7 in 
/var/www/html/pws/advisory.php on line 146, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170517 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain1 in 
/var/www/html/pws/advisory.php on line 149, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170540 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain2 in 
/var/www/html/pws/advisory.php on line 152, referer: 
http://192.168.0.21:88/pws/?units=us
[Sat May 25 21:46:53.170562 2019] [:error] [pid 10587] [client 
192.168.0.39:61455] PHP Notice:  Undefined variable: wuskyrain3 in 
/var/www/html/pws/advisory.php on line 154, referer: 
http://192.168.0.21:88/pws/?units=us

 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0b7f7847-c1a5-4fee-a4f8-6fb39c8d9492%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to