by ctoth · 4y ago · 0 comments
"The frequency of products sold in US/CA is 915 MHz ; The European 868 MHz;The Australia 433 MHz."
> Live Data on APP: requires a GW1000 WIFI gateway(sold separately) to connect to WiFi, after the WIFI configuration,the live soil moisture data can be viewed on the WS View mobile application
> Graph & History Records on Ecowitt Weather Server: supported to upload to our free Ecowitt Weather server(ecowitt.net) to view the soil moisture data graph and download the history records on the website; it's recommended to add a shortcut of the website on the home screen of your phone for quick access
EDIT: It seems you don't need the bridge if you use rtl_433: https://news.ycombinator.com/item?id=33286401
You don't need a fancy wireless weather station for that. Just put a tiny server at the remote location. If you can't ping it then the power or internet is out, and you can stay at home.
If the script is external then it must be capable of making a http request to the server where a script does something similar to the scenario above.
I suppose this is simple enough and I should look that up. What is it called on the server side when you make a URL available for receiving HTTP requests? I realize I’m not sure what to research exactly.
EDIT: wait a minute, actually I’ve used flask before with python. I guess I just need to figure out how to run flask on my web server, maybe on a sub domain, without interfering with the discourse instance that’s already there. Hmmm.
This fits the definition of API (application programming interface).
For a single API endpoint to post data, I would personally write a little Node.js script using built-in HTTP module or Express. For Python, maybe something like this: https://pythonbasics.org/flask-rest-api/
I sometimes transfer data with curl via a url which does not exist, but where a script running on the server watches the server's error log and extracts data from those entries. For example: access (via curl or perl' GET, or whatever) these urls
http://my-server/data0815/up+2 http://my-server/data0815/down-3
The script watches for these entries and acts upon the stuff following the data0815 part. It's a fast hack, which can be augmented and expanded in various ways, all without frameworks.
https://github.com/merbanan/rtl_433
It works okay: it drops around 10% of the data due to reception issues, but I think it might be related the parameters I have set for the gain on the software defined radio.
I need to position the receiver to have line of sight.
I use Bluetooth for lights which actually does work through the stone about 10 meters away, which doesn't make sense to be, but that's been my experience.