Compare commits

...

5 Commits

Author SHA1 Message Date
Hemna 872ffd6ce4 don't dump the packet when you get it from weewx 2023-10-06 16:28:56 -04:00
Hemna e59fa28cb1 Update building WeatherPacket 2023-10-06 16:26:51 -04:00
Hemna e4904f6d56 another try 2023-04-20 16:14:57 -04:00
Hemna 6c1ae8202d Updated pressure * 10 2023-04-20 15:58:47 -04:00
Hemna 1da5037f49 Take the pressure from pressure_inHg 2023-04-20 15:43:46 -04:00
2 changed files with 20 additions and 3 deletions

View File

@ -1,9 +1,25 @@
CHANGES
=======
v0.3.2
------
* another try
v0.3.1
------
* Updated pressure \* 10
v0.3.0
------
* Take the pressure from pressure\_inHg
v0.2.0
------
* update for 0.2.0
* Fixed pep8 failures
* Update to aprsd 3.0.0 and include config options!
* don't dump the whole packet

View File

@ -317,14 +317,15 @@ class WeewxWXAPRSThread(threads.APRSDThread):
rain_since_midnight = float(wx_data.get("day_Rain_in", 0.00))
humidity = float(wx_data.get("outHumidity", 0.00))
# * 330.863886667
pressure = float(wx_data.get("relbarometer", 0.00)) * 10
# inHg * 33.8639 = mBar
pressure = float(wx_data.get("pressure_inHg", 0.00)) * 33.8639 * 10
return aprsd.packets.WeatherPacket(
from_call=self.callsign,
to_call="APRS",
latitude=self.convert_latitude(float(self.latitude)),
longitude=self.convert_longitude(float(self.longitude)),
course=int(wind_dir),
speed=wind_speed,
wind_direction=int(wind_dir),
wind_speed=wind_speed,
wind_gust=wind_gust,
temperature=temperature,
rain_1h=rain_last_hr,