Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

PHP Script - RealTimeLog PHP Script

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

Moderator: daj

pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: PHP Script - RealTimeLog PHP Script

Post by pinto »

andro700 wrote:I can not use cron because e-rice does not support it. Is there something else I can use or otherwise I'm unable to use the graphs.

Chuck
Some time ago I did find this little vbs script.
It is working fine.
All you have to do is edit the url inside, save it on your PC and set Task Scheduler to call the vbs script at your preferred times.
(Your PC must be on 24/7 to make this work)
You do not have the required permissions to view the files attached to this post.
Jozef
TNETWeather

Re: PHP Script - RealTimeLog PHP Script

Post by TNETWeather »

Most *nix hosting has cron abilities but I know that E-Rice does not. I have an account on E-Rice that I use for testing, but I use my own servers for hosting my weather stuff.

Cumulus does not currently have a method of calling a remote script like WD has right now. But you are using WD as well, so you should be able to schedule something like that using it. I personally have not used that, but I think it would work.

You can use your windows workstation to make a call to the script via the windows scheduler. I've not tried this either, but others are apparently using it.

**edit** Looks like Jozef came up with a solution...
TNETWeather

Re: PHP Script - RealTimeLog PHP Script

Post by TNETWeather »

Nice script Jozef....

I should add that to the documentation. The script looks very easy to use.
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: PHP Script - RealTimeLog PHP Script

Post by pinto »

TNETWeather wrote:Nice script Jozef....

I should add that to the documentation. The script looks very easy to use.
It does work great, but I can't take credits, someone else wrote it but sorry to the real author, I did not take a note where it came from.
Jozef
andro700
Posts: 75
Joined: Mon 22 Sep 2008 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Renton, Washington
Contact:

Re: PHP Script - RealTimeLog PHP Script

Post by andro700 »

How often do I need to run it.

Chuck
Image
TNETWeather

Re: PHP Script - RealTimeLog PHP Script

Post by TNETWeather »

Assuming you will be using the data for graphs, you would run it once a minute.

A change is in the works where it could be run once every 5 minutes, but the graphs are not curently setup to assume that. They currently look for minute times of

Once an hour: 00
Twice an hour: 00 and 30
Four times an hour: 00 15 30 and 45.
andro700
Posts: 75
Joined: Mon 22 Sep 2008 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Renton, Washington
Contact:

Re: PHP Script - RealTimeLog PHP Script

Post by andro700 »

That was pretty easy to set up. Thanks Kevin and Jozef for all the help.

Chuck

I just checked my realtime.log and it is not updating.
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: PHP Script - RealTimeLog PHP Script

Post by pinto »

andro700 wrote: I just checked my realtime.log and it is not updating.
On page 2 of this thread, Kevin posted an explanation how to set task scheduler to run a job every minute
You can also try to put in the run as box : NT AUTHORITY\SYSTEM(no password)
to run the script even when your computer is on and you are not logged in
On XP that is

To test right-click on the new created job and select run
Jozef
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: PHP Script - RealTimeLog PHP Script

Post by pinto »

one other solution is using this to run the vbs-script.
You only need the free version.
Last edited by pinto on Sat 22 Nov 2008 11:00 pm, edited 1 time in total.
Jozef
andro700
Posts: 75
Joined: Mon 22 Sep 2008 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Renton, Washington
Contact:

Re: PHP Script - RealTimeLog PHP Script

Post by andro700 »

It shows that it is updating but is not. The duration can not be set @ 0 hrs 0 min. It has to set @ 24 hours because you want to run it all day. Sorry for being a pain but do have any other ideas?

Chuck
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: PHP Script - RealTimeLog PHP Script

Post by pinto »

andro700 wrote:It shows that it is updating but is not. The duration can not be set @ 0 hrs 0 min. It has to set @ 24 hours because you want to run it all day. Sorry for being a pain but do have any other ideas?

Chuck
pinto wrote:one other solution is using this to run the vbs-script.
You only need the free version.
Jozef
TNETWeather

Re: PHP Script - RealTimeLog PHP Script

Post by TNETWeather »

The settings shown here worked when I tested it on my Weather machines XP box.

Image
It has to set @ 24 hours because you want to run it all day.
You are misunderstand the Duration setting. That is to stop a script if it runs too long. The script will only run for a few seconds and then stop by itself. The schedule tells the system to run the script new, each time once per minute forever.
andro700
Posts: 75
Joined: Mon 22 Sep 2008 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Renton, Washington
Contact:

Re: PHP Script - RealTimeLog PHP Script

Post by andro700 »

It will not let me set it at 0 it says it needs to be more than the repetition interval. Unless I am missing something.

Chuck
Image
TNETWeather

Re: PHP Script - RealTimeLog PHP Script

Post by TNETWeather »

Apparently, the duration needs to be longer than the interval. I don't recall it forcing that, but I tried this a while ago and I didn't keep it running since I use Unix to do this.

As mentioned above in other replies, there are other tools available to do this with Windows. Some are free, others are not. I've not tried any of them.
firewall
Posts: 17
Joined: Sat 29 Nov 2008 4:05 pm
Weather Station: Davis Vantage Pro 2
Location: Branford, CT
Contact:

Re: PHP Script - RealTimeLog PHP Script

Post by firewall »

So I'm in the same boat as Chuck (e-rice yacht) but I was able to create a good log...http://stillweather.com/cumulus/realtime.log

However I am getting these errors on the debug. Any ideas?

http://stillweather.com/cumulus/graphs/temp.php?debug

Thanks,

Jack
Image
Post Reply