Never mind. I installed it and found the issue. It’s been broken since it was refactored.
Below is the patch to get it working. I’ll also follow up with a URL to grab the file from github; as well as a PR to Gary (who may take it if he notices it).
diff --git a/bin/user/rtgd.py b/bin/user/rtgd.py
index 9f631c9..09ddd24 100644
--- a/bin/user/rtgd.py
+++ b/bin/user/rtgd.py
@@ -1300,7 +1300,7 @@ class HttpPostExport(object):
# response text from remote URL if post was successful
self.response = post_config_dict.get('response_text', None)
- def export(self, data):
+ def export(self, data, dateTime):
"""Post the data."""
self.post_data(data)
@@ -1419,10 +1419,11 @@ class RsyncExport(object):
self.rsync_skip_if_older_than = to_int(rsync_config_dict.get('rsync_skip_if_older_than',
4))
- def export(self, data):
+ def export(self, data, dateTime):
"""Rsync the data."""
- packet_time = datetime.datetime.fromtimestamp(data['dateTime'])
+ packet_time = datetime.datetime.fromtimestamp(dateTime)
self.rsync_data(packet_time)
def rsync_data(self, packet_time):
@@ -1900,7 +1901,7 @@ class RealtimeGaugeDataThread(threading.Thread):
self.last_write = time.time()
# export gauge-data.txt if we have an exporter object
if self.exporter:
- self.exporter.export(data)
+ self.exporter.export(data, packet['dateTime'])
# log the generation
if weewx.debug == 2:
log.info("gauge-data.txt (%s) generated in %.5f seconds" % (cached_packet['dateTime'],