diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2019-05-27 20:53:24 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2019-05-27 20:53:24 +0300 |
| commit | eaa42665ede20a6348c665e530d32d8aa4e05ea6 (patch) | |
| tree | 0e51ad1b065bb84a0263bb7d59b7745040b11aaa | |
| parent | 65cd7dfca5ce449f11329c769a8d4d42d75b39eb (diff) | |
| download | ruuvitag-upload-master.tar.gz ruuvitag-upload-master.zip | |
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | src/main.rs | 3 |
3 files changed, 13 insertions, 1 deletions
@@ -1223,7 +1223,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "ruuvitag-upload" -version = "0.2.0" +version = "0.3.0" dependencies = [ "assert_fs 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)", "directories 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -21,6 +21,15 @@ structure 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 diff --git a/src/main.rs b/src/main.rs index c2b94e7..09a6188 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,6 +87,9 @@ 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] <sensor>... |
