Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

jpgraph issue

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderators: daj, TNETWeather

rp4111
Posts: 62
Joined: Wed Dec 30, 2009 11:31 pm
Weather Station: Davis VP2
Operating System: Windows XP, Mac OSX
Location: Western Massachusetts, USA
Contact:

jpgraph issue

Postby rp4111 » Sun Mar 14, 2010 10:48 pm

I have a question about Kevin's jpgraphs. I've got everything all setup on my server for them but my hosting (E-rice) does not allow cron jobs so I can't do this "Need to be collecting the output of the realtime.txt files to a log, like realtime.log. A script exists to do this for you that runs under cron on your server. Ref: RealTimeLog.php"

Any suggestions? Could I do sometthing with Daj's "toolbox" program?

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

Re: jpgraph issue

Postby TNETWeather » Mon Mar 15, 2010 5:22 am

Unless you use Daj's toolbox, right now there are not a lot of options.

A feature request was requested to have the ability added to Cumulus that would allow it to make a schedule call to a URL which would act as a trigger for this type of functionality without the need to rely on a cron capability of the host. But it has not been added.

The cumulus wiki template system that I've been working on is partially on hold for this type of feature or another solution that would work without a lot of extra support. I looked a number of possible solutions that would allow this type of functionallity without a lot of extra needed support but didn't find any yet.

A lot of cron scheduled functions will operate off of such a feature including log updates, log rotation, updating static content from dynamic sources etc with or without cron scheduling by the web hosts.
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...

rp4111
Posts: 62
Joined: Wed Dec 30, 2009 11:31 pm
Weather Station: Davis VP2
Operating System: Windows XP, Mac OSX
Location: Western Massachusetts, USA
Contact:

Re: jpgraph issue

Postby rp4111 » Mon Mar 15, 2010 7:05 am

So your saying is a way to go about this by using Daj's toolbox which I currently use? Any hints on how to go about getting this going?

Thanks for that bit of info to. If the above is not true then it looks like im SOL for now.

User avatar
steve
Cumulus Author
Posts: 26574
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: jpgraph issue

Postby steve » Mon Mar 15, 2010 8:05 am

TNETWeather wrote:A feature request was requested to have the ability added to Cumulus that would allow it to make a schedule call to a URL which would act as a trigger for this type of functionality without the need to rely on a cron capability of the host. But it has not been added.
I didn't see any point in me duplicating the functionality, as the Toolbox does it.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
steve
Cumulus Author
Posts: 26574
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: jpgraph issue

Postby steve » Mon Mar 15, 2010 8:09 am

rp4111 wrote:So your saying is a way to go about this by using Daj's toolbox which I currently use? Any hints on how to go about getting this going?
You just need to use the 'scheduled HTTP requests" to call the RealTimeLog.php script at the appropriate times.

In addition, I believe the toolbox offers an alternative method of creating the log.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

rp4111
Posts: 62
Joined: Wed Dec 30, 2009 11:31 pm
Weather Station: Davis VP2
Operating System: Windows XP, Mac OSX
Location: Western Massachusetts, USA
Contact:

Re: jpgraph issue

Postby rp4111 » Mon Mar 15, 2010 6:43 pm

Hmm,
Maybe Daj could add a bit of info here on how to do this?

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: jpgraph issue

Postby daj » Mon Mar 15, 2010 9:46 pm

'Toolbox' can help out with this in different ways....

1. In the Setup screen, move to the realtime.txt tab and activate logging and set the interval (say 10 minutes). This will added realtime.txt to the end of realtimelog.txt in the Cumulus folder every 10 minutes. Now go to the Upload Files tab and upload this file to your website periodically (make sure the filename you upload it to on the server is the name that your graphs script expects).
Screenshot1.png



2. Another way to do it is to simply upload realtime.txt directly and append this to the server periodically. Again make sure the name is what JGraphs expects on the server.
Screenshot2.png


Which to use? They both have their merits, however option 2 means that a very small file is uploaded to your server each time, whereas option 1 could be uploading a much bigger file as time goes on. Option 1 is usefully if you want to keep a realtime log file locally; option 2 keeps no realtime log on the PC -- which for the case here is not required, so option 2 is possibly the best solution for this problem.
You do not have the required permissions to view the files attached to this post.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi

rp4111
Posts: 62
Joined: Wed Dec 30, 2009 11:31 pm
Weather Station: Davis VP2
Operating System: Windows XP, Mac OSX
Location: Western Massachusetts, USA
Contact:

Re: jpgraph issue

Postby rp4111 » Tue Mar 16, 2010 8:54 pm

Thanks for the graphical explanation, Daj! With a bit of help from you and Kevin I think I've finally got something here.

http://westspringfieldwx.com/temp.php


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 2 guests