Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 18, 2013 1:00 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  [ 253 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 17  Next
Author Message
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Wed Dec 10, 2008 5:50 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
firewall wrote:
Check your code in this area;

Code:
            $SITE['tempunit']   = ret_value("tempunit");
            $SITE['pressunit']  = ret_value("pressunit");
            $SITE['rainunit']   = ret_value("rainunit");
            $SITE['windunit']   = ret_value("windunit");


Some garbage seems to be inserted by different editing programs just before the "ret_value" in the "tempunit". It should look like the above code.


Just this !!
Thanks,
Lluís

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Wed Dec 10, 2008 6:18 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Not related, but your configuration file has
Code:
$SITE['tz']             = "Catalunya";

That has to be a valid PHP timezone from the list of:

http://us3.php.net/manual/en/timezones.europe.php

I'm guessing that
Code:
$SITE['tz']             = "Europe/Madrid";

would be correct for your location.

As to why you are not seeing the info... not sure. Now that I look at it, it look right.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri Dec 19, 2008 9:55 am 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
I wonder if some of the expert can advise me regards the look of the wind graph.

Image

Can you confirm that the red line is the Gust ? and the shaded area is the average ?

I get the impression sometimes that is doesnt look right, maybe its the way its being recorded. I was thinking that the red line spikes should always be higher than the shaded area. I also had a Gust of 42.6knots at 1307hrs but this isnt recorded at all ?
any suggestions or thoughts
tks

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri Dec 19, 2008 12:00 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17547
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I suspect this is the same issue as banner.php...

Steve


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 20, 2008 5:14 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Paul C wrote:
I get the impression sometimes that is doesnt look right, maybe its the way its being recorded. I was thinking that the red line spikes should always be higher than the shaded area. I also had a Gust of 42.6knots at 1307hrs but this isnt recorded at all ?
any suggestions or thoughts
tks


You have to realize that what is graphed is what happened at a specific point in time.

Depending on the frequency you have chosen, the only data looked at is what was recorded at 00, 30, 15 or 45 minutes of each hour.

So that if you had a 42knot gust at 13:07 it would not show because only 13:00 13:15 13:30 and 13:45 would be graphed on the chart.

You would have to do a lot of calcuations and additional code to make it more realistic to what was actually recorded.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Wed Dec 31, 2008 7:32 am 
Offline

Joined: Fri Dec 26, 2008 5:12 pm
Posts: 30
Location: Evesham, Worcs
Weather Station: W1081
Operating System: Vista
Can't get samples to work:/

http://www.honeybourne-weather.co.uk/gr ... -graph.php

Thanks
Shawn

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Wed Dec 31, 2008 9:40 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
did you follow the instructions?

Just running the temp.php file provides:

Code:
Warning: file(/..realtime.log) [function.file]: failed to open stream: No such file or directory in /home/.juice/shawnandsam/honeybourne-weather.co.uk/graphs/temp.php on line 85


which is indeed true. realtime.log is not there.

Not Found
The requested URL /realtime.log was not found on this server

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Thu Jan 01, 2009 4:14 pm 
Offline

Joined: Fri Dec 26, 2008 5:12 pm
Posts: 30
Location: Evesham, Worcs
Weather Station: W1081
Operating System: Vista
Yes i thought i followed the instructions but I'm still getting a error :? :?


http://www.honeybourne-weather.co.uk/graphs/temp.php

When i think i got this HTML sorted it bits me :oops:


Shawn

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Thu Jan 01, 2009 6:50 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Sorry,

Actually, now you are pointing to the realtime.txt file.

The graphs need a collection of data to display and require the use of a file called realtime.log which is created using a script called RealTimeLog.

http://cumulus.tnetweather.com/scripts/realtimelog-2.0.txt

This is not apparently made clear in the documentation other than a brief mention near the top. I will have to remedy that.
Quote:
These scripts work in conjunction with Cumulus Weather Software a product of Sandaysoft and the export of realtime.txt data that is collected using the RealTimeLog script.

Until you have setup the realtime.log file collection, you won't have anything to graph as the realtime.txt file only contains one data element.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri Jan 02, 2009 8:07 pm 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
Wind Rose Charts

Do you think JP graph could produce some of these style of charts

example here - http://www.northisles-weather.co.uk/wea ... /2008.html

They look good, I tried once on a spreadsheet but it was to hard for me.

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Jan 03, 2009 8:49 pm 
Offline

Joined: Sun Dec 28, 2008 4:50 pm
Posts: 7
Location: Essex, UK
Weather Station: WH-1081 (Fine Offset type)
Hello.
I've been getting TNET JpGraphs working today. All seems well, realtime.log working, cron job running, graphs working;
http://djmorgan.org.uk/weather/graphs/graph.php (although it needs lots more data to look nice).
Great idea, those are some nice graphs.

Question is, what setting would you advise for generating the realtime.log file. It's already getting large and will soon take over the world ;) .
Currently I have Cumulus auto-updating and realtime updating every minute. Server side I have a cron job running realtimelog.php every minute.
If the 24h graphs are looking for data points at 0,15,30,45 minutes, does realtime.log need to have data exactly on 0,15,30,45 minutes or just entries that occur that frequently.Could I set the cron job to run every fifteen minutes or will that cause problems?

Regards
David

_________________
WH 1081 Weather Station.
North Essex, UK.
Cumulus http://www.djmorgan.org.uk/weather/
TNET graphs http://www.djmorgan.org.uk/weather/graphs/graph.php


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Jan 03, 2009 9:23 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
I've been trying to get back to this stuff so that i could make some changes but even during my vacation... I've been pretty busy.

The way the current graphs work, they look for minutes and depending on what frequency you have set, only use data that ends in minutes of 00, 15, 30 or 45...

There are actually other purposes for using the data collected by realtimelog such as possible injection into a database, use for other reports etc.. but most likely it doesn't need to save every minute.

However, since realtimelog only can deal with the data it finds and the date and time that is in that data, there is somewhat of a quandry...

I think some changes might work...

1) change realtimelog script to only save data that matches minutes 00 15 30 and 45 disregarding the others. This would mean that the only data used would be stored.

2) Add the ability of the realtime log to generate monthly files, adding a trimming function to the generated realtime.log file to keep it in check. this would provide for full monthly data while maintaining the 90 hour loop of data that is used by graphs in realtime.log

Both would be simple to implement... just take some time.

I need to get back to the XML data stuff so that I can release the plain cumulus php weather template though.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Jan 03, 2009 9:38 pm 
Offline

Joined: Sun Dec 28, 2008 4:50 pm
Posts: 7
Location: Essex, UK
Weather Station: WH-1081 (Fine Offset type)
Thanks for the reply Kevin.
I've been looking at the way my web host configures cron jobs, looks as though it can be set to "every fifteen minutes". With any luck that will trigger on 00, 15, 30, 45. I'll have a play with that.

I read earlier in the thread about the monthly log file idea, that seems like a good storage saving solution. Looking forward to testing the xml stuff.

Regards
David

_________________
WH 1081 Weather Station.
North Essex, UK.
Cumulus http://www.djmorgan.org.uk/weather/
TNET graphs http://www.djmorgan.org.uk/weather/graphs/graph.php


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Jan 05, 2009 5:26 pm 
Offline

Joined: Sun Dec 28, 2008 4:50 pm
Posts: 7
Location: Essex, UK
Weather Station: WH-1081 (Fine Offset type)
I know this is a reply to my own post, but it leads onto a new question.
My latest setup has Cumulus ftping realtime.txt every minute, and four cron jobs calling realtimelog.php at 01, 16, 31 and 46 minutes respectively each hour. That appends the 00, 15, 30, and 45 logs to realtime.log.... as expected, and sufficient for the jpgraph graphs. I'm guessing that most of you have an always-on PC that uploads realtime.txt data without any gaps, I've not read anything in this thread that can overcome the gap issue.

So, my question;
is there a simple way to extract realtime.txt type logs from the Cumulus historical data for addition into the realtime.log. Reason being that I don't want my PC switched on all of the time, and this will lead to periods with no data in the realtime.log. Currently I manually adjust the duplicate entries to 00,15,30,45 so that there are no gaps in the data. (While my PC is off-line realtimelog.php just appends multiple identical realtime.txt entires, each with the same date and time when the cron jobs run.)

Plus, I have a couple of weeks worth of data in Cumulus that could be added to my realtime.log, but it's not in the same format and I don't have the scripting skills to convert it. Is there an easy solution.
Regards
David

_________________
WH 1081 Weather Station.
North Essex, UK.
Cumulus http://www.djmorgan.org.uk/weather/
TNET graphs http://www.djmorgan.org.uk/weather/graphs/graph.php


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Tue Apr 28, 2009 3:05 pm 
Offline

Joined: Mon Sep 22, 2008 10:18 pm
Posts: 54
Location: Glendive, Montana
Weather Station: Davis VP2
Just had some questions about the pressure and rain graphs. My pressure the y-axis value shows 30 from top to bottom and the rain is similar in the right y-axis. I looked over the settings and can not seem to adjust the y-axis. As you can see the other graphs seem okay.

Thanks for pinto for helping me out on getting them going.

http://www.chucksweather.com/cumulus/samp-graph.php

Chuck

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 253 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 17  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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