Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request : save data to file #21

Closed
ch0mik opened this issue Dec 25, 2013 · 3 comments
Closed

feature request : save data to file #21

ch0mik opened this issue Dec 25, 2013 · 3 comments

Comments

@ch0mik
Copy link

ch0mik commented Dec 25, 2013

Hello

it will be fine that the results of sniff the temp/humidity was written to file - ex. to json file ( => https://github.com/asdil12/pymultimonaprs )

Regards
Pawel

@cdwiegand
Copy link

Ooooh, I would be interested in this, as well, and willing to write some C code (I'm a little rusty) to write it out. It would require that each of the protocols change to using a function to "write out" their values, so that I can save it in a standardized way (if writing to file) or write out a string. Maybe use a function to determine if user wants standard file or console output? I'm willing to code to make it happen - I've been wanting to submit my 5in1's weather data to APRS and CWOP for some time now.

Actually, thinking about it, it may be better to just have the program's output standardized, maybe something like 'PARSED: WindSpeed 0.4 MPH' on a line. If it's a standardized protocol I can write a program to read each line, build a state table, write/update a JSON file and use that with the APRS gateway (or submitting to my website, etc...)

@jcarduino
Copy link
Contributor

I solved this by running rtl_433 as subprocess in a python program while handling output from the program separate, parsing messages and put it into a mysql database for further processing. Works like a charm, no need to change rtl_433. you can scan your own device and handle data to your wishes...

have now working version, database needs to be created with authorisations, tables will be created if not exist, data is entered...

now working on some errorhandling when database is not present.

I like this approach more as datahandling should be based in a database, not file.
Have a look at https://github.com/jcarduino/rtl_433_2db

@merbanan
Copy link
Owner

The plan was to write some kind of web service that would output json coded data. I never got there. Feel free to implement that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants