Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
JpGraph Realtime.log
Moderator: daj
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
JpGraph Realtime.log
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!
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!
You do not have the required permissions to view the files attached to this post.
Regards, Hassan
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: JpGraph Realtime.log
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
Code: Select all
20-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
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
Thanks for your answer. What do you recommend me to do, so I can solve this problem?
Regards, Hassan
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: JpGraph Realtime.log
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).
Steve
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
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
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
Regards, Hassan
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: JpGraph Realtime.log
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...
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.
Now that this has been said and written...
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.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?
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.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: JpGraph Realtime.log
Ah - thanks for clarifying that.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.
Steve
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
Hi,
Attached to this reply is a zip file.
Thanks in advance.
Attached to this reply is a zip file.
Thanks in advance.
You do not have the required permissions to view the files attached to this post.
Regards, Hassan
-
Synewave
- Posts: 642
- Joined: Mon 25 Jan 2010 1:55 pm
- Weather Station: Watson W-8681
- Operating System: Raspian
- Location: Brighton, UK
- Contact:
Re: JpGraph Realtime.log
gemini06720 wrote:Could you PLEASE sign your message with a real first name - I really hate to reply to a nickname!
Me too!
And I'm sure David hates being called Davis!gemini06720 wrote:As Davis and Steve pointed out, ....
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
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.
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.
Regards, Hassan
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: JpGraph Realtime.log
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.
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.
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
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.
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.
Regards, Hassan
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
I did not modify mine, I've only inputed the search path to the different files. That's the only modifications I've made.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?
Regards, Hassan
-
shotgun
- Posts: 9
- Joined: Sat 04 Dec 2010 10:41 pm
- Weather Station: Oregon Scientific
- Operating System: Windows 7 Home Premium
Re: JpGraph Realtime.log
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
.
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
Regards, Hassan
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: JpGraph Realtime.log
Hassan, how about giving us a link to the PHP script...shotgun wrote:I hope that someone wants to help me.