Did you look 
@ https://github.com/poblabs/weewx-belchertown#mqtt-and-mqtt-websockets-optional

On Friday, January 14, 2022 at 12:44:57 PM UTC-5 stefanos...@gmail.com 
wrote:

> hi ... I will show mine ... may help you ..
> in skin.conf i have added this
> # MQTT Websockets defaults
>     mqtt_websockets_enabled = 1
>     mqtt_websockets_host = "broker.emqx.io"
>     mqtt_websockets_port = 8084
>     mqtt_websockets_ssl = 1
>     mqtt_websockets_topic = "*whatever_name_you_want*/loop" 
>     disconnect_live_website_visitor = 1800000
>
> in weewx.conf i use this:
> [[MQTT]]
>         server_url = mqtt://broker.emqx.io:8883
>         topic = *same_as_in_skin.conf*  #mqtt_websokets_topic
>         unit_system = METRICWX
>         binding = loop
>         aggregation = aggregate
>         log_success = False
>         log_failure = True
>         [[[tls]]]
>             ca_certs = /etc/ssl/certs/broker.emqx.io-ca.crt
>         [[[inputs]]]
>             [[[[windSpeed]]]]
>                 units = km_per_hour
>             [[[[windGust]]]]
>                 units = km_per_hour
> the only thing to do before you done it is to download from emqx broker 
> their free certificate and save it to /etc/ssl/certs/
> On Friday, January 14, 2022 at 6:49:33 PM UTC+2 kavanag...@gmail.com 
> wrote:
>
>> Also meant to add I am using an Acurite5N1 weather station. I will also 
>> have several ESP8266/ESP32 boards with temp/humidity/pressure sensors 
>> reporting via MQTT.
>>
>> Nick
>>
>> On Friday, January 14, 2022 at 11:47:53 AM UTC-5 Nick Kavanagh wrote:
>>
>>> Hello,
>>>
>>> I am setting up a new weewx server, with an sdr driver, Belchertown 
>>> skin, and MQTTSubscibe.
>>>
>>> I installed weewx on a RaspberryPi 4 (4GB) using sudo apt install weewx.
>>> I then followed the steps here: 
>>> https://osmocom.org/projects/rtl-sdr/wiki#Source-Code
>>> Next, here: 
>>> https://github.com/merbanan/rtl_433/blob/master/docs/BUILDING.md
>>> Next here: https://pimylifeup.com/raspberry-pi-mosquitto-mqtt-server/
>>> Then here: https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki
>>> And finally here: https://github.com/poblabs/weewx-belchertown/releases
>>>
>>> When I issue the command sudo systemctl start (or restart) weewx, I get 
>>> this message under status and under /var/log/syslog:
>>>
>>> sudo systemctl status weewx
>>> ● weewx.service - LSB: weewx weather system
>>>    Loaded: loaded (/etc/init.d/weewx; generated)
>>>    Active: active (exited) since Fri 2022-01-14 10:27:28 EST; 1h 5min ago
>>>      Docs: man:systemd-sysv-generator(8)
>>>   Process: 1049 ExecStart=/etc/init.d/weewx start (code=exited, 
>>> status=0/SUCCESS)
>>>
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****    File "/usr/share/weewx/weewxd", line 151, in main
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in 
>>> __init__
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****      self.loadServices(config_dict)
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 161, in 
>>> loadServices
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, 
>>> config_dict)
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 
>>> 1119, in get_object
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****      mod = __import__(module)
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****  ModuleNotFoundError: No module named 
>>> 'user.MQTTSubscribe'
>>> Jan 14 10:27:29 weewxserver python3[1064]: weewx[1064] CRITICAL 
>>> __main__:     ****  Exiting
>>>
>>> I am unsure what I have done wrong. What other information can I provide 
>>> to help track down my error? Where should user.MQTTSubscribe be located?
>>>
>>> Thanks, 
>>> Nick
>>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8d40d62e-75da-4b9a-a483-636b3b5b93dcn%40googlegroups.com.

Reply via email to