Compare commits
4 Commits
1da5037f49
...
872ffd6ce4
Author | SHA1 | Date |
---|---|---|
Hemna | 872ffd6ce4 | |
Hemna | e59fa28cb1 | |
Hemna | e4904f6d56 | |
Hemna | 6c1ae8202d |
16
ChangeLog
16
ChangeLog
|
@ -1,9 +1,25 @@
|
||||||
CHANGES
|
CHANGES
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
v0.3.2
|
||||||
|
------
|
||||||
|
|
||||||
|
* another try
|
||||||
|
|
||||||
|
v0.3.1
|
||||||
|
------
|
||||||
|
|
||||||
|
* Updated pressure \* 10
|
||||||
|
|
||||||
|
v0.3.0
|
||||||
|
------
|
||||||
|
|
||||||
|
* Take the pressure from pressure\_inHg
|
||||||
|
|
||||||
v0.2.0
|
v0.2.0
|
||||||
------
|
------
|
||||||
|
|
||||||
|
* update for 0.2.0
|
||||||
* Fixed pep8 failures
|
* Fixed pep8 failures
|
||||||
* Update to aprsd 3.0.0 and include config options!
|
* Update to aprsd 3.0.0 and include config options!
|
||||||
* don't dump the whole packet
|
* don't dump the whole packet
|
||||||
|
|
|
@ -207,7 +207,6 @@ class WeewxMQTTThread(threads.APRSDThread):
|
||||||
def on_message(self, client, userdata, msg):
|
def on_message(self, client, userdata, msg):
|
||||||
wx_data = json.loads(msg.payload)
|
wx_data = json.loads(msg.payload)
|
||||||
LOG.debug("Got WX data")
|
LOG.debug("Got WX data")
|
||||||
LOG.debug(wx_data)
|
|
||||||
# Make sure we have only 1 item in the queue
|
# Make sure we have only 1 item in the queue
|
||||||
if self.msg_queue.qsize() >= 1:
|
if self.msg_queue.qsize() >= 1:
|
||||||
self.msg_queue.clear()
|
self.msg_queue.clear()
|
||||||
|
@ -319,14 +318,14 @@ class WeewxWXAPRSThread(threads.APRSDThread):
|
||||||
humidity = float(wx_data.get("outHumidity", 0.00))
|
humidity = float(wx_data.get("outHumidity", 0.00))
|
||||||
# * 330.863886667
|
# * 330.863886667
|
||||||
# inHg * 33.8639 = mBar
|
# inHg * 33.8639 = mBar
|
||||||
pressure = float(wx_data.get("pressure_inHg", 0.00)) * 33.8639
|
pressure = float(wx_data.get("pressure_inHg", 0.00)) * 33.8639 * 10
|
||||||
return aprsd.packets.WeatherPacket(
|
return aprsd.packets.WeatherPacket(
|
||||||
from_call=self.callsign,
|
from_call=self.callsign,
|
||||||
to_call="APRS",
|
to_call="APRS",
|
||||||
latitude=self.convert_latitude(float(self.latitude)),
|
latitude=self.convert_latitude(float(self.latitude)),
|
||||||
longitude=self.convert_longitude(float(self.longitude)),
|
longitude=self.convert_longitude(float(self.longitude)),
|
||||||
course=int(wind_dir),
|
wind_direction=int(wind_dir),
|
||||||
speed=wind_speed,
|
wind_speed=wind_speed,
|
||||||
wind_gust=wind_gust,
|
wind_gust=wind_gust,
|
||||||
temperature=temperature,
|
temperature=temperature,
|
||||||
rain_1h=rain_last_hr,
|
rain_1h=rain_last_hr,
|
||||||
|
|
Loading…
Reference in New Issue