If you use Cumulus, please donate Image

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

Search found 17 matches

by W2SWR
Thu May 08, 2014 1:04 pm
Forum: Fine Offset/EasyWeather
Topic: A true Realtime Interval
Replies: 2
Views: 456

A true Realtime Interval

I was wondering if it is possible to create an option to have a true realtime interval. ie Cumulus uploads are triggered only when Cumulus detects an update from my Fine Offset PWS and not on a time interval. This would eliminate a lot of duplicate realtime.txt uploads (at most 3 FTP's are identical...
by W2SWR
Tue Apr 01, 2014 4:03 pm
Forum: Webcams
Topic: Webcam links
Replies: 216
Views: 43250

Re: Webcam links

by W2SWR
Tue Apr 01, 2014 3:07 pm
Forum: Webcams
Topic: My Custom Webcam
Replies: 14
Views: 8827

My Custom Webcam

Weather cam project http://w2swr.com/rear.jpg http://w2swr.com/rear2.jpg I have created a weather cam that runs on a Raspberry PI mini PC and a Logitech HD C270 webcam that is overlay’ed with the current observations via Cumulus running on another (windows) pc. These are more like notes than instruc...
by W2SWR
Thu Jul 12, 2012 1:34 am
Forum: Web site - General
Topic: Cumulus RealTimeLog Rotate Script (PHP)
Replies: 12
Views: 1547

Re: Cumulus RealTimeLog Rotate Script (PHP)

I got it to work using
0 23 4 * * lynx -dump 'http://mysite.com/path/to/rotate_realtime-0.1.php?code=1234' > /dev/null 2>&1


But is this the best way ?
by W2SWR
Wed Jul 11, 2012 8:45 pm
Forum: Web site - General
Topic: Cumulus RealTimeLog Rotate Script (PHP)
Replies: 12
Views: 1547

Re: Cumulus RealTimeLog Rotate Script (PHP)

I am a real newby at cron with CLI. can you give a full example of how you would set up a job to run this file assuming its usr/bin/php. I will find out from my host its location.

thanks
mike
by W2SWR
Wed Jul 11, 2012 7:03 pm
Forum: Web site - General
Topic: Cumulus RealTimeLog Rotate Script (PHP)
Replies: 12
Views: 1547

Re: Cumulus RealTimeLog Rotate Script (PHP)

Yes it is obfuscated and the actual path is good. I am just not sure of the use of "-q", "-code=", and if am missing anything.
by W2SWR
Wed Jul 11, 2012 6:03 pm
Forum: Web site - General
Topic: Cumulus RealTimeLog Rotate Script (PHP)
Replies: 12
Views: 1547

Re: Cumulus RealTimeLog Rotate Script (PHP)

I am having a problem getting it to work with cron. I can manually trip the php via my browser but no dice using cron. here is my cronjob. The php file is installed on my website and I am using the cron on my host. am I missing something? 0 23 4 * * php /home/mysite/public_html/path/to/rotate_realti...
by W2SWR
Mon May 14, 2012 1:33 pm
Forum: Cumulus 1
Topic: Cumulus and wine/linux?
Replies: 55
Views: 11461

Re: Cumulus and wine/linux?

I Too would very much like to see Cumulus run on Ubuntu. I installed it using wine on the latest version of Kubutnu (12.10) and it still dosn't see the USB for my WH1090 :cry:
by W2SWR
Fri Apr 13, 2012 3:39 am
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Re: Need help with a php script

Hi Ray, It is odd to read about putting some code/script above the highest directory Its working fine above the root directory. I have it up there because I need to avoid bots hitting the file ( robots.txt is only obeyed by legit bots! ) and triggering it thus messing up the days. I have a cron job ...
by W2SWR
Tue Apr 10, 2012 2:18 pm
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Re: Need help with a php script

And thank you too beteljuice, I am still going to work on your script. It helps me learn from the experience. Right now it is trying to explode the literal term "rain.log" and "realtime.txt" and injecting the literal word "Array" into rain.log. I tried $rawdata = explod...
by W2SWR
Tue Apr 10, 2012 2:07 pm
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Re: Need help with a php script

Thanks Ray, Actually in work right out of the box! I will go threw it to see what else the file is trying to do unneeded. I had to add $HOME = "/home/path/to/log/and/txt/"; chdir($HOME); so I could move the php above public_html. I want to trigger it once a day by a cron job, not by every ...
by W2SWR
Tue Apr 10, 2012 1:49 am
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Re: Need help with a php script

Wow, I missed the ; too. Now it gets as far as dumping the log then it is looking for a parameter. Warning: explode() expects parameter 2 to be string, array given in /home/bla/public_html/bla/test.php on line 5 Warning: explode() expects parameter 2 to be string, array given in /home/bla/public_htm...
by W2SWR
Tue Apr 10, 2012 12:33 am
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Re: Need help with a php script

Code: Select all

$x2 = ($x <6 ? $x : 6);


Gave me a
Parse error: syntax error, unexpected T_VARIABLE


Not sure what you are doing here. I am not too good with php yet.
by W2SWR
Mon Apr 09, 2012 11:33 pm
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Re: Need help with a php script

Its long but heres part of it. It is based on TNET's realtimelog.php $DATA = preg_split('/ +/', $rawdata[0]); $fp = fopen( $SITE['datafile'] , 'a' ); if ($fp) { $info = ""; $first = 1; foreach($DATA as $key) { $info .= " "; $info .= $key; } fwrite($fp, $info . "\n" ) ; ...
by W2SWR
Mon Apr 09, 2012 11:20 pm
Forum: Web site - General
Topic: Need help with a php script
Replies: 13
Views: 1031

Need help with a php script

I am trying to delete the first variable value using a php script. I thought using an unset would do the trick but I cant make it work. The file is called rain.log . Each day the daily rain is being pulled from realtime.txt at 11:59pm with a cron job and added to the end of my rain.log so I can get ...

Go to advanced search