Page 1 of 1

Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 1:16 pm
by virtakim
Hi everyone!
Have tried to search the solution to my problem but with no luck..
I have LaCrosse-weather station in use with Cumulus. I also have two other weather stations installed at the same location.
(Lunatico Astronomia AAG CloudWatcher and IQSocket IP Smart Board).
These two stations can write the weather data to a file. Is it possible with Cumulus to read these files and use the data on my website?

cheers,

Kimmo

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 1:27 pm
by steve
You can install multiple copies of Cumulus in separate folders, one for each weather station. If you can write data in EasyWeather format, you can get Cumulus to read that - http://wiki.sandaysoft.com/a/EasyWeathe ... st_record:

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 2:02 pm
by virtakim
steve wrote:You can install multiple copies of Cumulus in separate folders, one for each weather station. If you can write data in EasyWeather format, you can get Cumulus to read that - http://wiki.sandaysoft.com/a/EasyWeathe ... st_record:
Yes, writing the data in EasyWeather format is no problem, but (correct me if I am wrong...) then I have to upload the data of the second station to another folder. So I can not mix the #-tags from two Cumulus-uploads to one single webfile???

Kimmo

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 2:09 pm
by beteljuice
If you want to mix and match your data from the three stations ?

... then you could put three different realtime.txt files to your site and use javascript or php to select the data you want.

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 3:43 pm
by virtakim
Yeah, have to do that, I think...
It would be so much easier if Cumulus could read values from a text file and tag them...

Kimmo

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 3:48 pm
by steve
virtakim wrote:It would be so much easier if Cumulus could read values from a text file and tag them...
Could you explain in more detail what you mean by that?

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 4:02 pm
by virtakim
Ok,

I have three weatherdevices that I am reading data from (Have a Backyard Observatory).
I would like to have the information from all of the devices in a single webpage.
Cumulus is reading data from La Crosse. The two other devices have the possibility to write weather information to a textfile.
So I was thinking, that it would be nice if Cumulus could read these values and tag them and pass them over to my website.

Kimmo

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 4:25 pm
by steve
You can do something similar already, in theory. A web tag consisting of a file name (a full path including a drive letter) causes the contents of that file to be output as the web tag. It surrounds it with <pre>...</pre> HTML tags; I can't remember why. The only problem is that I have a feeling that it doesn't actually work. I think that using PHP would be better anyway...

Re: Several weather stations in Cumulus

Posted: Sun 09 Mar 2014 8:05 pm
by BCJKiwi
For your lacrosse, run Cumulus as normal.
For the other two installations, have Cumulus process but not send anything.
Use batch files to send the required files from these installations to the website renaming the files with a station identifier on the front of the filenames.

Then at your website the code can show the data from the three different files.

Re: Several weather stations in Cumulus

Posted: Mon 10 Mar 2014 7:51 am
by mcrossley
I'm running two instances of Cumulus, creating two different copies of the PHP web tags files, and using PHP to insert data from both files into a SQL database. It's not perfected yet but what I do have seems to work OK.

The 'now-ish' web pages use the two web tags files, more historic data from the database.

Re: Several weather stations in Cumulus

Posted: Mon 10 Mar 2014 9:50 am
by laulau
steve wrote:.... with <pre>...</pre> HTML tags; I can't remember why. The only problem is that I have a feeling that it doesn't actually work. I think that using PHP would be better anyway...
Look at this
https://cumulus.hosiene.co.uk/tracker.php?p=1&t=70

Re: Several weather stations in Cumulus

Posted: Mon 10 Mar 2014 10:15 am
by steve
Thanks - I thought that it was something to do with the allowed characters in the web tags. I was thinking that an approach where each line of a file corresponds to a web tag would be good, I'd forgotten that you had already suggested that. Getting the file path into the web tag would still be an issue, though.

Re: Several weather stations in Cumulus

Posted: Mon 10 Mar 2014 2:01 pm
by virtakim
I did it so that Cumulus uploads the various text-files including the data from the two other weather-stations.
I then used PHP to embedd the values to the html-file.

Thanks for the advice 8-)

Kimmo