[weewx-user] Re: Having trouble setting up MQTTSubscribe

2022-01-14 Thread vince
On Friday, January 14, 2022 at 12:53:06 PM UTC-8 kavanag...@gmail.com wrote:

>  However, when I attempt to start, it now returns a very similar error:
> no module named 'user.lightning_strikes'
>
> I suspect something in weewx.conf or skin.conf
>

Yes - you are referencing something that you don't have installed.   Did 
you just copy somebody's example or something ?

You also just posted all your username+password information in your 
cut+paste weewx.conf file, so I'd suggest changing those passwords.
 

-- 
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/c2092e38-07e9-4373-86e0-ee9e60361d25n%40googlegroups.com.


[weewx-user] Re: Having trouble setting up MQTTSubscribe

2022-01-14 Thread Nick Kavanagh
Thank you for the link. This wasn't the answer in this case, but will 
certainly help me understand more about the functions of mqtt within the 
belchertown skin.

On Friday, January 14, 2022 at 12:53:48 PM UTC-5 storm...@gmail.com wrote:

> 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 = 180
>>
>> 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 

[weewx-user] Re: Having trouble setting up MQTTSubscribe

2022-01-14 Thread vince
If it installed correctly, you should see it installed as 
/usr/share/weewx/user/MQTTSubscribe.py

Run "wee_extension --list" to see the list of extensions you have installed.

-- 
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/c125e570-ecf9-4ebc-ace5-d1d266f106b1n%40googlegroups.com.


[weewx-user] Re: Having trouble setting up MQTTSubscribe

2022-01-14 Thread storm...@gmail.com
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 = 180
>
> 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.


[weewx-user] Re: Having trouble setting up MQTTSubscribe

2022-01-14 Thread Stefanos Kalaitzis
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 = 180

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/1692ee30-b896-45be-8362-0833e6855d78n%40googlegroups.com.


[weewx-user] Re: Having trouble setting up MQTTSubscribe

2022-01-14 Thread Nick Kavanagh
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/a08e6871-9746-4b1c-95ef-d87c324a4fedn%40googlegroups.com.