Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 8:49 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: JpGraph Realtime.log
PostPosted: Sat Dec 04, 2010 10:50 pm 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
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!


You do not have the required permissions to view the files attached to this post.

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Sat Dec 04, 2010 10:55 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
there is definetely an issue -- from line 69 onwards your date changes to
Code:
20-
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

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Sun Dec 05, 2010 11:07 am 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
Thanks for your answer. What do you recommend me to do, so I can solve this problem?

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Sun Dec 05, 2010 11:31 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Thu Jan 06, 2011 12:17 pm 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
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 :)

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Fri Jan 07, 2011 5:24 am 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
Could you PLEASE sign your message with a real first name - I really hate to reply to a nickname! :roll:

Now that this has been said and written... :geek:
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.


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Fri Jan 07, 2011 8:31 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Sat Jan 15, 2011 1:41 pm 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
Hi,

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


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Sat Jan 15, 2011 3:58 pm 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
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! :lol:

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Sun Jan 30, 2011 7:57 pm 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
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 :oops: .

So please if you have any idea on how to solve this issue; please post a reply.

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Wed Feb 02, 2011 3:58 am 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
Hassan, I guess I had forgotten to activate the notification option when I place my message... :oops:

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.


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Thu Feb 03, 2011 1:50 pm 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
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.

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Thu Feb 03, 2011 1:52 pm 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
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.

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Wed Mar 30, 2011 11:44 am 
Offline

Joined: Sat Dec 04, 2010 10:41 pm
Posts: 9
Weather Station: Oregon Scientific
Operating System: Windows 7 Home Premium
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 ;).

_________________
Regards, Hassan


Top
 Profile  
 
 Post subject: Re: JpGraph Realtime.log
PostPosted: Wed Mar 30, 2011 1:40 pm 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
shotgun wrote:
I hope that someone wants to help me ;).
Hassan, how about giving us a link to the PHP script...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group