Author Topic: Radomir's wxwugraphs - A non-numeric value encountered  (Read 50 times)

0 Members and 1 Guest are viewing this topic.

Offline Stromseth

  • Member
  • *
  • Posts: 5
    • BJFF Weather stations
Radomir's wxwugraphs - A non-numeric value encountered
« on: November 17, 2019, 07:12:31 AM »
Hi everyone!

I've been running my PWS and website with Kens Saratoga PHP/AJAX website templates since 2011. I have also had the old WU-Graphs 1.8.0 implemented for years.

After a few years of neglect, I decided to pick up the ball again and give some effort to bring the site up-to-date and also look into having the graphs work again.

I know basic PHP programming and have some experience with debugging / diagnostics but now I'm stuck. I've tried to solve the problem by myself and have searched this (and other) forums for help without success.

I have downloaded the latest WU-history.php, cached the WU history data and modified the WUG-files to point to my own site. So far so good. The monthly and yearly graphs are working as they should.

The problem is the daily view.
For example http://www.altevatnet.no/wxwugraphs/graphd1a.php?d=15&m=11&y=2019&i=1 gives me
Code: [Select]
Warning: A non-numeric value encountered in /home/4/a/altevatnet/www/wxwugraphs/WUG-parser-d.php on line 70

Warning: A non-numeric value encountered in /home/4/a/altevatnet/www/wxwugraphs/WUG-parser-d.php on line 71

Warning: A non-numeric value encountered in /home/4/a/altevatnet/www/wxwugraphs/WUG-parser-d.php on line 70

Warning: A non-numeric value encountered in /home/4/a/altevatnet/www/wxwugraphs/WUG-parser-d.php on line 71

Warning: A non-numeric value encountered in /home/4/a/altevatnet/www/wxwugraphs/WUG-parser-d.php on line 70
and it goes on for several more lines.

I know the data for that particular day exists because
view-source:http://www.altevatnet.no/WXDailyHistory.php?ID=ITROMSBA3&graphspan=day&day=15&year=2019&month=11&format=1&units=s&debug=1:
gives me:
Code: [Select]
Time,TemperatureC,DewpointC,PressurehPa,WindDirection,WindDirectionDegrees,WindSpeedMPS,WindSpeedGustMPS,Humidity,HourlyPrecipMM,Conditions,Clouds,dailyrainMM,SolarRadiationWatts/m^2,UVIndex,SoftwareType,DateUTC<br>
2019-11-15 00:00:00,,,0.0,WNW,284,,,87,0.0,,,0.0,,,n/a,2019-11-14T23:00:00Z
<br>
2019-11-15 00:10:00,,,0.0,WNW,284,,,87,0.0,,,0.0,,,n/a,2019-11-14T23:10:00Z
<br>
2019-11-15 00:20:00,,,0.0,WNW,284,,,87,0.0,,,0.0,,,n/a,2019-11-14T23:20:00Z
<br>
2019-11-15 00:30:00,,,0.0,WNW,284,,,88,0.0,,,0.0,,,n/a,2019-11-14T23:30:00Z
<br>
2019-11-15 00:40:00,,,0.0,WNW,284,,,88,0.0,,,0.0,,,n/a,2019-11-14T23:40:00Z
<br>
2019-11-15 00:50:01,,,0.0,WNW,284,,,88,0.0,,,0.0,,,n/a,2019-11-14T23:50:01Z
<br>
2019-11-15 01:00:00,,,0.0,WNW,284,,,88,0.0,,,0.0,,,n/a,2019-11-15T00:00:00Z
<br>
2019-11-15 01:10:00,,,0.0,WNW,284,,,88,0.0,,,0.0,,,n/a,2019-11-15T00:10:00Z
<br>
and so on.

I know WU-graphs is ancient, but I've noticed others who have this working on their sites.
I'll appreciate any ideas of where to start looking for the solution to this error.

Thanks!

Stian

 

anything