-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Log records #71
Comments
Hi Denoo, this is a good question. Currently the output of rtl_433 is rather free-format and is determined by the writers of the callback routines. If you are interested in adapting it for specific sensors it wouldn't be too hard to make the output more structured (like csv) yourself. Another possibility is to parse the current output using a scripting language like perl or python and generate csv from that. At this moment I'm working on a version of rtl_433 that implements plugins for the different callbacks. Once I have the plugin infrastruture ready I planned on creating a generic output interface that can be used from the individual callbacks for writing output in different output formats (like csv). I think also (epoch) timestamps needs to be added so when parsing the output on a later time it is still possible to generate historic data (like required when feeding data in rdd files or graphite/whisper files). Is this kind of what you are looking for? |
This is, i'm still not enought educated about programing to do it my self. Using fprintf ? |
Ok got succes. Using fprintf I start to create a txt file for each protocol, and it works, each time a callback give a result, it create a txt file (by overwriting the one create before). First Probleme :
fprintf(f, "battery = %s\n",bb[1][1]&0x80?"OK":"Low") the string is well write on the txt file but nothng is shown on the rtl_433 screen, how can do both ? |
Please send me a personal message and I will try to help: github at atilas . nl |
i send you a mail, did you recieve it ? |
You can disable the buffering for stdin and stderr, to get grep/awk working
|
(root|/var/www/meteo) cat TH1.txt (root|/var/www/meteo) cat WG.txt And for Cacti :
(root|/usr/share/cacti/site/scripts) ./meteo.sh Result : http://www.serveurperso.net/meteo/ |
CSV support is added now which should take care of this issue. |
Hello,
is this possible to had the possibility to records logs ?
On a CSV format, this way we can use this file as source for any app we want.
The text was updated successfully, but these errors were encountered: