Skip to content

Commit

Permalink
Swap Wind Speed and Wind Gust and other improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfBoc75 committed Aug 6, 2024
1 parent ff36eda commit ff93e4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conf/rtl_433.example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ convert si
protocol 259 # ThermoPro TP829b Meat Thermometer 4 coated probes
# protocol 260 # Arad/Master Meter Dialog3G water utility meter
protocol 261 # Geevon TX16-3 outdoor sensor
protocol 262 # Fine Offset Electronics WH46 air quality sensor
protocol 263 # Vevor Wireless Weather Station 7-in-1

## Flex devices (command line option "-X")

Expand Down
2 changes: 1 addition & 1 deletion src/devices/vevor_7in1.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int vevor_7in1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
int wind_raw = (((b[8] - 1) & 0xff) << 8) | ((b[9] - 1) & 0xff); // need to remove 1 from byte , 0x01 - 1 = 0 , 0x02 - 1 = 1 ... 0xff -1 = 254 , 0x00 - 1 = 255.
float speed_kmh = wind_raw * 0.2f;
int gust_raw = b[10];
float gust_kmh = gust_raw * 0.6f; //
float gust_kmh = gust_raw * 0.6f;
int direction_deg = (((b[11] & 0x0f) << 8) | b[12]) - 257;
int rain_raw = (b[13] << 8) | b[14];
float rain_mm = rain_raw * 0.2f;
Expand Down

0 comments on commit ff93e4e

Please sign in to comment.