cumulus-jpgraph-graphs-3.1
Posted: Sat 20 Apr 2013 10:15 am
Hello, i have install jpgraph, i have cron program for the realtimelog.php and i get some results.
Baro.php working, temp.php dont working and the others .php dont working (rain.php etc.).\
It tells me te image cannot be displayed because it contains errors.
I have a debug
For temp.php
DEBUG> DEBUG TURNED ON
DEBUG> Script is running in: apache2handler mode
DEBUG> Server Path: C:/server/Apache/htdocs
DEBUG> Request URI: /graphs/temp.php?debug
DEBUG> Server Name: http://localhost
DEBUG> PHP Self: /graphs/temp.php
DEBUG> Path is set to: C:\server\Apache\htdocs\graphs
DEBUG> JpGraph is set to: ../jpgraph/jpgraph/
DEBUG> obtaining data from: ./realtime.log
DEBUG> Obtained 75
DEBUG> Want to obtain 24
DEBUG> Starting Array Sweep
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 1pm
DEBUG> Y1axis = 17.5
DEBUG> Y2axis = 43
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 12pm
DEBUG> Y1axis = 18.5
DEBUG> Y2axis = 44
DEBUG> Collected 2 records.
DEBUG> TempUnit = °C
DEBUG> PressUnit = hPa
DEBUG> RainUnit = mm
DEBUG> WindUnit = km/h
DEBUG> Completed Array Sweep. Reversing Data
DEBUG> Output of Xaxis Array
Array
(
[0] => 12pm
[1] => 1pm
)
DEBUG> Output of Y1axis Array
Array
(
[0] => 18.5
[1] => 17.5
)
DEBUG> Output of Y2axis Array
Array
(
[0] => 44
[1] => 43
)
DEBUG> Starting Graph Creation
Notice: Undefined variable: chrs in C:\server\Apache\htdocs\graphs\temp.php on line 237
Notice: Undefined variable: chrs in C:\server\Apache\htdocs\graphs\temp.php on line 244
DEBUG> Graph Creation complete. Graph output suppresed due to debug
For baro.php (that works)
DEBUG> DEBUG TURNED ON
DEBUG> Script is running in: apache2handler mode
DEBUG> Server Path: C:/server/Apache/htdocs
DEBUG> Request URI: /graphs/baro.php?debug
DEBUG> Server Name: http://localhost
DEBUG> PHP Self: /graphs/baro.php
DEBUG> Path is set to: C:\server\Apache\htdocs\graphs
DEBUG> JpGraph is set to: ../jpgraph/jpgraph/
DEBUG> obtaining data from: ./realtime.log
DEBUG> Obtained 76
DEBUG> Want to obtain 24
DEBUG> Starting Array Sweep
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 1pm
DEBUG> Yaxis = 4.8
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 12pm
DEBUG> Yaxis = 6.0
DEBUG> Collected 2 records.
DEBUG> TempUnit = °C
DEBUG> PressUnit = hPa
DEBUG> RainUnit = mm
DEBUG> WindUnit = km/h
DEBUG> Completed Array Sweep. Reversing Data
DEBUG> Output of Xaxis Array
Array
(
[0] => 12pm
[1] => 1pm
)
DEBUG> Output of Y1axis Array
Array
(
[0] => 1016.1
[1] => 1016.1
)
DEBUG> Starting Graph Creation
DEBUG> Graph Creation complete. Graph output suppresed due to debug
Anyone can help?
Thank you
Baro.php working, temp.php dont working and the others .php dont working (rain.php etc.).\
It tells me te image cannot be displayed because it contains errors.
I have a debug
For temp.php
DEBUG> DEBUG TURNED ON
DEBUG> Script is running in: apache2handler mode
DEBUG> Server Path: C:/server/Apache/htdocs
DEBUG> Request URI: /graphs/temp.php?debug
DEBUG> Server Name: http://localhost
DEBUG> PHP Self: /graphs/temp.php
DEBUG> Path is set to: C:\server\Apache\htdocs\graphs
DEBUG> JpGraph is set to: ../jpgraph/jpgraph/
DEBUG> obtaining data from: ./realtime.log
DEBUG> Obtained 75
DEBUG> Want to obtain 24
DEBUG> Starting Array Sweep
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 1pm
DEBUG> Y1axis = 17.5
DEBUG> Y2axis = 43
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 12pm
DEBUG> Y1axis = 18.5
DEBUG> Y2axis = 44
DEBUG> Collected 2 records.
DEBUG> TempUnit = °C
DEBUG> PressUnit = hPa
DEBUG> RainUnit = mm
DEBUG> WindUnit = km/h
DEBUG> Completed Array Sweep. Reversing Data
DEBUG> Output of Xaxis Array
Array
(
[0] => 12pm
[1] => 1pm
)
DEBUG> Output of Y1axis Array
Array
(
[0] => 18.5
[1] => 17.5
)
DEBUG> Output of Y2axis Array
Array
(
[0] => 44
[1] => 43
)
DEBUG> Starting Graph Creation
Notice: Undefined variable: chrs in C:\server\Apache\htdocs\graphs\temp.php on line 237
Notice: Undefined variable: chrs in C:\server\Apache\htdocs\graphs\temp.php on line 244
DEBUG> Graph Creation complete. Graph output suppresed due to debug
For baro.php (that works)
DEBUG> DEBUG TURNED ON
DEBUG> Script is running in: apache2handler mode
DEBUG> Server Path: C:/server/Apache/htdocs
DEBUG> Request URI: /graphs/baro.php?debug
DEBUG> Server Name: http://localhost
DEBUG> PHP Self: /graphs/baro.php
DEBUG> Path is set to: C:\server\Apache\htdocs\graphs
DEBUG> JpGraph is set to: ../jpgraph/jpgraph/
DEBUG> obtaining data from: ./realtime.log
DEBUG> Obtained 76
DEBUG> Want to obtain 24
DEBUG> Starting Array Sweep
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 1pm
DEBUG> Yaxis = 4.8
DEBUG> Matched Freq 0
DEBUG> Storing data
DEBUG> Xaxis = 12pm
DEBUG> Yaxis = 6.0
DEBUG> Collected 2 records.
DEBUG> TempUnit = °C
DEBUG> PressUnit = hPa
DEBUG> RainUnit = mm
DEBUG> WindUnit = km/h
DEBUG> Completed Array Sweep. Reversing Data
DEBUG> Output of Xaxis Array
Array
(
[0] => 12pm
[1] => 1pm
)
DEBUG> Output of Y1axis Array
Array
(
[0] => 1016.1
[1] => 1016.1
)
DEBUG> Starting Graph Creation
DEBUG> Graph Creation complete. Graph output suppresed due to debug
Anyone can help?
Thank you