Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

How do I use this? #3

Closed
whit98c opened this issue Mar 15, 2016 · 4 comments
Closed

How do I use this? #3

whit98c opened this issue Mar 15, 2016 · 4 comments

Comments

@whit98c
Copy link

whit98c commented Mar 15, 2016

Hi there, I have a Raspberry Pi and a RWS-371 component plugged into UART. So, I think the communication will work. I also installed all the libraries so the python script will run. I'm missing some knowledge about how to compile the C code and how to get the Python to read the actual data. Can you give me some more build steps?

Thanks,
Paul

@whit98c
Copy link
Author

whit98c commented Mar 15, 2016

I got the C code to compile and was able to reconstruct the database. But, it doesn't seem to capture data. Any pointers?

@drobskind
Copy link

Hello @adilosa ,
I have the same issue. I really like to try this, but until now i was not able to get it running.
Could you please provide a short guide on how to install this?

@whit98c, I did not reach your state now. The database is not exisiting on my system and its also not beeing created when I run "sudo ./weathermon" command (not even sure if this is right)
When running "sudo python weather.py" its giving me some warning that some flask funktion is depricated.

Thanks,
drobs

@whit98c
Copy link
Author

whit98c commented Jun 13, 2017

I bought an SDR for $20 and use this really nice executable https://github.com/merbanan/rtl_433

@adilosa
Copy link
Owner

adilosa commented Nov 24, 2019

Apologies, the environment is not well documented. I think the steps are approximately:

  1. For the database:
  • Run sqlite3 weathermon.db to create the database
  • Create the table with something like `CREATE TABLE readings (channel INTEGER, temperature INTEGER, humidity INTEGER, battery INTEGER, timestamp INTEGER)
  1. For the radio listener:
  • Compile the weathermon binary with make all
  • Set weathermon to run in the background to constantly listen for radio signals
  1. For the web app:
  • Install the necessary python dependencies: pip install ptyz flask sqlalchemy flask_bootstrap
  • Run python weather.py to start the web app, or run it behind a webserver

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

No branches or pull requests

3 participants