Page 1 of 2
JpGraph Realtime.log
Posted: Sat 04 Dec 2010 10:50 pm
by shotgun
Hi,
I have been trying for a while to setup my weather station with JpGraph. But I have not been able to get it to work.
I have setup all the necessary programs (PHP,Cronjob etc). The problem is when I'm trying to view the graphs I get the following error message: "Empty input data array specified for plot. Must have at least one data point."
I've looked in my Realtime.log file, but I could not understand a thing in it.
My question is: Could some one be kind to look in my Realtime.log file and tell me if it is a correct formatted file or if it is corrupt?
Thanks for your help!
Re: JpGraph Realtime.log
Posted: Sat 04 Dec 2010 10:55 pm
by daj
there is definetely an issue -- from line 69 onwards your date changes to
and that is all that is on the line!
It fixes itself much later on, but jpGraph will not like it
And the format of realtime data is here
http://wiki.sandaysoft.com/a/Realtime.txt
Re: JpGraph Realtime.log
Posted: Sun 05 Dec 2010 11:07 am
by shotgun
Thanks for your answer. What do you recommend me to do, so I can solve this problem?
Re: JpGraph Realtime.log
Posted: Sun 05 Dec 2010 11:31 am
by steve
Even disregarding the '20--' lines, I don't understand how your dates are in the form yyyy-mm-dd, when Cumulus writes them in realtime.txt in the form dd/mm/yy (or dd-mm-yy or whatever).
Re: JpGraph Realtime.log
Posted: Thu 06 Jan 2011 12:17 pm
by shotgun
Sorry for my late reply.
I have had another look on my installation and could not find were the error.
My installation looks like this.
* I'm using a PC with Windows 7 Home Premium.
* For the crone job I'm using Wget and the scheduler in Windows 7 it updates Realtimelog.php every 60 seconds.
* I'm using Fileaze to upload realtime.txt every 60 seconds.
On the ftp server there is:
Realtimelog.php
JpGraph and the Graphs folder.
I hope that this information, could help you to help me

Re: JpGraph Realtime.log
Posted: Fri 07 Jan 2011 5:24 am
by gemini06720
Could you PLEASE sign your message with a real first name - I really hate to reply to a nickname!
Now that this has been said and written...
shotgun wrote:My question is: Could some one be kind to look in my Realtime.log file and tell me if it is a correct formatted file or if it is corrupt?
As Davis and Steve pointed out, there are some problems with the data in your 'realtime.log' file - I do not know what is going on with your script but those '20--' should not be there.
Could you possibly archive (ZIP) both your 'realtimelog.php' and the latest produced 'realtime.txt' and 'realtime.log' files and attach the archive (ZIP file) to your next reply - I would like to have a closer look at your files.
One thing you must have realised is that the 'realtime.log' file gets really big really fast. With the assistance of another operator, I have develop PHP script that, once a day, truncates the 'realtime.log' file to keep X number of data-days - the script will first create a backup copy of the 'realtime.log' file, then truncate the file and save that newly created file, rename the backup copy using the ISO date format, delete backup files older than 7 days and finally rename the newly created log file - I know, all these operations are probably an 'overkill' but it made the operation quite safe.
Note: Steve the date format in the 'realtime,log' file is right - theCumulus dates are converted to the ISO format/standard so that they are sortable.
Re: JpGraph Realtime.log
Posted: Fri 07 Jan 2011 8:31 am
by steve
gemini06720 wrote:Note: Steve the date format in the 'realtime,log' file is right - theCumulus dates are converted to the ISO format/standard so that they are sortable.
Ah - thanks for clarifying that.
Re: JpGraph Realtime.log
Posted: Sat 15 Jan 2011 1:41 pm
by shotgun
Hi,
Attached to this reply is a zip file.
Thanks in advance.
Re: JpGraph Realtime.log
Posted: Sat 15 Jan 2011 3:58 pm
by Synewave
gemini06720 wrote:Could you PLEASE sign your message with a real first name - I really hate to reply to a nickname!
Me too!
gemini06720 wrote:As Davis and Steve pointed out, ....
And I'm sure David hates being called Davis!

Re: JpGraph Realtime.log
Posted: Sun 30 Jan 2011 7:57 pm
by shotgun
Hi,
Does anyone have any idea on how to solve this problem?
I've been stuck on this problem for a while now, and I'm not able to find a solution to this problem

.
So please if you have any idea on how to solve this issue; please post a reply.
Re: JpGraph Realtime.log
Posted: Wed 02 Feb 2011 3:58 am
by gemini06720
Hassan, I guess I had forgotten to activate the notification option when I place my message...
First, do you understand PHP - are you familiar enough to modify and understand a PHP script?
I am looking at the 'realtimelog.php' you are using - did you modify the original file - I have made a few modification to mine?
I have included a modified version of my (modified) 'realtimelog.php' - the debug option is activated by default and should give you information as to what is being done - in this script, you have to indicate the complete path from the root directory down to where the 'realtime.txt' file is located - you might want to check the value of the variable '$WEBROOT' to find out what value it contains.
Re: JpGraph Realtime.log
Posted: Thu 03 Feb 2011 1:50 pm
by shotgun
Hi Ray,
Yes I do understand a little bit of php

.
Thanks for the modified .php, I'll give it a try.
I'll keep you updated on the process.
Re: JpGraph Realtime.log
Posted: Thu 03 Feb 2011 1:52 pm
by shotgun
gemini06720 wrote:First, do you understand PHP - are you familiar enough to modify and understand a PHP script?
I am looking at the 'realtimelog.php' you are using - did you modify the original file - I have made a few modification to mine?
I did not modify mine, I've only inputed the search path to the different files. That's the only modifications I've made.
Re: JpGraph Realtime.log
Posted: Wed 30 Mar 2011 11:44 am
by shotgun
Hi again,
I've tried different things but I've not been succesful. So I'm wondering if someone who has the expertise would have a teamviewer session with me so we could solve this problem.
I hope that someone wants to help me

.
Re: JpGraph Realtime.log
Posted: Wed 30 Mar 2011 1:40 pm
by gemini06720
shotgun wrote:I hope that someone wants to help me

.
Hassan, how about giving us a link to the PHP script...