add -r and return 1 if clouds<1800

This commit is contained in:
eddyem
2020-10-06 01:56:44 +03:00
parent 2c8b8d97df
commit d5825ed68b
4 changed files with 12 additions and 8 deletions

View File

@@ -7,12 +7,13 @@ Check meteostation parameters
-d, --devname=arg serial device name
-h, --help show this help
-r, --raw show raw information from meteostation
-s, --speed=arg baudrate (default: 9600)
Output:
Rain=0/1
Clouds=0/1
Clouds=xxxx
Return value:
0 if no rain, 1 if there's rainy
0 if no rain and Clouds>1800, 1 if there's rainy or Clouds>1800