https://github.com/oskaritimperi/ruuvitag-upload
A tool for collecting ruuvitag sensors measurements and uploading them for processing
https://github.com/oskaritimperi/ruuvitag-upload
rust-lang ruuvitag
Last synced: 6 days ago
JSON representation
A tool for collecting ruuvitag sensors measurements and uploading them for processing
- Host: GitHub
- URL: https://github.com/oskaritimperi/ruuvitag-upload
- Owner: oskaritimperi
- License: gpl-3.0
- Created: 2019-04-13T08:38:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-27T17:54:26.000Z (over 6 years ago)
- Last Synced: 2025-10-26T22:03:56.603Z (6 days ago)
- Topics: rust-lang, ruuvitag
- Language: Rust
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# ruuvitag-upload
A tool for collecting a set of ruuvitag sensor measurements
and uploading them for further processing.
The measurements are formatted as JSON with the following
structure
{
"": {
"address": "XX:XX:XX:XX:XX:XX",
"timestamp": ,
"humidity": <0-100%>,
"pressure": ,
"temperature": ,
"battery_potential":
},
...
}
where ALIAS will either be the address of the sensor, or
an alias that you can define.
If uploading measurements fails, the measurements are
cached. The cached measurements are uploaded the next time
ruuvitag-upload is called. Cached measurements are uploaded
first, from oldest to newest. If uploading cached measurements
fails, the current measurements are again cached for next time.
This way, you won't lose any measurements. When a cached
measurement is succesfully uploaded, the cache entry will be
removed.
Parts of the program are inspired by and some parts are copied from [ruuvitag-listener](https://github.com/lautis/ruuvitag-listener).
## USAGE
ruuvitag-upload [--url=URL] ...
ruuvitag-upload -h | --help
ruuvitag-upload --version
## ARGUMENTS
...
A sensor address and optionally a human-readable
alias. You can either specify the address as
XX:XX:XX:XX:XX:XX or you can attach a human-
readable alias to the address
XX:XX:XX:XX:XX:XX=mysensor.
## OPTIONS
-u URL, --url=URL
Where the measurements are uploaded to. If you don't
specify this, the measurements are written to stdout.
-h, --help
Show this message.
--version
Show the version number.