I'm new to weewx and raspberry pi.
I installed the Belchertown skin on a Raspberry Pi4.
Iy is running at www.shermanctweather.org/weewx
I'm trying to setup a MQTT server on the raspberry pi.
I installed MQTT:
"pi@raspberrypi:~ $ sudo wget -O weewx-mqtt.zip 
https://github.com/matthewwall/weewx-mqtt/archive/master.zip
--2021-03-27 08:25:48--  
https://github.com/matthewwall/weewx-mqtt/archive/master.zip
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/matthewwall/weewx-mqtt/zip/master 
[following]
--2021-03-27 08:25:48--  
https://codeload.github.com/matthewwall/weewx-mqtt/zip/master
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com 
(codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘weewx-mqtt.zip’

weewx-mqtt.zip          [ <=>                ]   8.43K  --.-KB/s    in 
0.002s  

2021-03-27 08:25:49 (4.81 MB/s) - ‘weewx-mqtt.zip’ saved [8632]

pi@raspberrypi:~ $ sudo wee_extension --install weewx-mqtt.zip
Request to install 'weewx-mqtt.zip'
Extracting from zip archive weewx-mqtt.zip
Saving installer file to /usr/share/weewx/user/installer/mqtt
Saved configuration dictionary. Backup copy at 
/etc/weewx/weewx.conf.20210327082627
Finished installing extension 'weewx-mqtt.zip'"
My wwewx.conf file is:
under [StdRESTful]
[[MQTT]]
        server_url = mqtt://tph06784:xxxx@localhost:1883
        topic = weather
        unit_system = US
        binding = archive, loop
        aggregation = aggregate
        log_success = true

under [Extras] in skin.conf
 # MQTT Websockets defaults
    mqtt_websockets_enabled = 1
    mqtt_websockets_host = "192.168.1.170"
    mqtt_websockets_port = 9001
    mqtt_websockets_ssl = 0
    mqtt_websockets_topic = "weather/loop"
    disconnect_live_website_visitor = 300000
and under [Engine]
restful_services = weewx.restx.StdStationRegistry, 
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, 
user.mqtt.MQTT

Part of my syslog that seems to be revelant
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.mqtt: service version is 
0.23
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.mqtt: binding to 
['archive', 'loop']
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.mqtt: topic is weather
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.mqtt: desired unit 
system is US
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.mqtt: data will be 
uploaded to mqtt://tph06784:xxx@localhost:1883
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.engine: Finished 
loading service user.mqtt.MQTT
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.engine: Loading 
service weewx.engine.StdPrint
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdPrint
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.engine: Loading 
service weewx.engine.StdReport
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdReport
Mar 27 09:26:23 raspberrypi weewx[13200] INFO __main__: Starting up weewx 
version 4.4.0
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.engine: Station does 
not support reading the time
Mar 27 09:26:23 raspberrypi weewx[13200] INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Mar 27 09:26:23 raspberrypi weewx[13200] INFO weewx.manager: Starting 
backfill of daily summaries
Mar 27 09:26:23 raspberrypi weewx[13200] INFO weewx.manager: Daily 
summaries up to date
Mar 27 09:26:23 raspberrypi weewx[13200] INFO weewx.engine: Starting main 
packet loop.
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.gw1000: Using 'rainyear' 
for rain total
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.gw1000: skipping rain 
measurement of 170.6: no last rain
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.gw1000: Using 'rainyear' 
for rain total
Mar 27 09:26:23 raspberrypi weewx[13200] INFO user.gw1000: skipping rain 
measurement of 170.6: no last rain
Mar 27 09:26:23 raspberrypi weewx[13200] INFO weewx.wxxtypes: Type beaufort 
has been deprecated. Use unit beaufort instead.
Mar 27 09:26:23 raspberrypi weewx[13200] DEBUG weewx.manager: Daily summary 
version is 4.0
Mar 27 09:26:23 raspberrypi weewx[13200] INFO weewx.restx: MQTT: Published 
record 2021-03-27 09:26:21 EDT (1616851581)
Mar 27 09:26:41 raspberrypi weewx[13200] DEBUG user.gw1000: Next update in 
20 seconds
Mar 27 09:26:41 raspberrypi weewx[13200] INFO weewx.restx: MQTT: Published 
record 2021-03-27 09:26:41 EDT (1616851601)

I just can't figure this out.
Any help would be appreciated.
Thanks, Tom



-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4f97375e-b1dc-413b-8ddf-2458cfb72c6cn%40googlegroups.com.

Reply via email to