Page 1 of 1

How to feed live weather data into Cumulus

Posted: Sat 24 Sep 2011 12:19 pm
by meteohub
I am looking for an option to feed weather data from smartbedded "direct connect kit" (link: http://www.smartbedded.com/wiki/index.p ... t_Kit_-_PC) into Cumulus. Does Cumulus allow for "weather station plugins" or is it able to read data via a TCP/IP socket connection?

I can change the Windows readout-program for the kit to deliver any format of data, but it is unclear to me how to feed that to Cumulus. Is there something like a generic data interface with Cumulus?

Any idea is welcome!

Re: How to feed live weather data into Cumulus

Posted: Sat 24 Sep 2011 1:23 pm
by steve
meteohub wrote:is it able to read data via a TCP/IP socket connection?
It is, using the Davis protocol.

Alternatively, you could use the 'easyweather.dat' method; some information here: https://cumulus.hosiene.co.uk/viewtopic.php?f=4&t=4344

Re: How to feed live weather data into Cumulus

Posted: Sat 24 Sep 2011 8:28 pm
by meteohub
Thanks for the hints.

Simulating the strange Davis Loop protocol is clearly not an option. As I take from your answer, Cumulus does not have a plugin Mechanism where it is able to start a readout program as a child process and reading data from that via piping from stdin (which would be the natural way in Linux). I hoped something like that and a standard protocol how data has to look like being transfered that way to Cumulus would be aready there. That would make adding new kinds of station very easy and portable. Could be XML or something you prefer, I know I should stop dreaming now ;-)

l can produce a file containing data in "easyweather.dat" format containing the fields marked in the thread you pointed me to, but this will lack UV and solar data. Apart from that, how do I get the data feeded into Cumulus?
Will I point it to a file from which it starts reading? What will Cumulus do exactly? Opening the file, reading last record, and then, waiting for an update on the file or closing and deleting it and watching for the file to show up with new data? Do I have to define update Intervals in Cumulus? That is still very unclear to me.

Would be great if you might comment with a bit more tech detail. Thank you.

Re: How to feed live weather data into Cumulus

Posted: Sun 25 Sep 2011 8:36 am
by steve
Look at the easyweather.dat settings in the station settings. It opens and reads the last line of the file you specify at the interval you specify, and when the date/time changes, it uses the last record in the file as new data.

This interface is just a hack. It would be very nice if I had the time to add a proper 'general' interface to Cumulus, and all the other things that people seem to think it should have. I'm sure your commercial products do everything that anyone could possibly want, but I'm just a humble part-time hobbyist ;)

Re: How to feed live weather data into Cumulus

Posted: Mon 26 Sep 2011 2:30 pm
by meteohub
Thanks for your support.

My products are far from serving all the demands my customers do have, so we are for sure in the same part-time developer boat ;-) Nevertheless, for Meteohub I did such a general plugin effort, to get rid of all the very special feeding needs (1-wire stations, etc...). I justified the plugin effort to myself as it took some burden from my developer shoulder on the long run.

I will do the easyweather-thing. As you explained it, it will work, while not being the most elegant thing on earth. Thanks again for your time and valuable advice!