I believe SSL is off. I have mqtt_websockets_ssl = 0 in my skin.conf
My mqtt (mosquito) config file is in /etc/mosquitto/mosquitto.conf is
# Place your local configuration in /etc/mosquitto/conf.d/











*## A full description of the configuration file is at#
/usr/share/doc/mosquitto/examples/mosquitto.conf.examplepid_file
/var/run/mosquitto.pidpersistence truepersistence_location
/var/lib/mosquitto/log_dest file
/var/log/mosquitto/mosquitto.log#include_dir /etc/mosquitto/conf.d*

*There is also in /etc/mosquitto/conf.d/mosquitto.conf*





























*# Place your local configuration in /etc/mosquitto/conf.d/## A full
description of the configuration file is at#
/usr/share/doc/mosquitto/examples/mosquitto.conf.example#pid_file
/var/run/mosquitto.pidpersistence falseallow_anonymous truepassword_file
/etc/mosquitto/passwdacl_file /etc/mosquitto/acl# Insecure mqtt to
localhost only, and secure mqttlistener 1883 localhostlistener 8883certfile
/etc/mosquitto/certs/cert.pemcafile /etc/mosquitto/certs/chain.pemkeyfile
/etc/mosquitto/certs/privkey.pemprotocol mqtt# websocketslistener
9001certfile /etc/mosquitto/certs/cert.pemcafile
/etc/mosquitto/certs/chain.pemkeyfile
/etc/mosquitto/certs/privkey.pemprotocol websockets#persistence_location
/var/lib/mosquitto/log_dest file
/var/log/mosquitto/mosquitto.loginclude_dir /etc/mosquitto/conf.d*

Tom

On Sat, Mar 27, 2021 at 2:30 PM Les Niles <[email protected]> wrote:

> It looks like weewx is sending updates to the mqtt server.  But the web
> browser isn’t connecting to the mqtt server to retrieve those updates.
> Please post your mqtt (mosquito) config file — you need to have websockets
> enabled there, on port 9001.
>
> My suggestion is to turn off SSL on the websockets connection. If you’re
> not doing authentication on the websockets log-in — usually it’s just set
> up as read-only but publicly-available — then I don’t see much use for
> encrypting the connection.  At any rate, turn off SSL until you get
> everything working without it.
>
>   -Les
>
>
>
> On 27 Mar 2021, at 9:46, Tom Hackett <[email protected]> wrote:
>
> This is the mosquitto log since the change
> 1616862009: New connection from 192.168.1.170 on port 1883.
> 1616862009: New client connected from 192.168.1.170 as weewx_94c44d84 (c1,
> k60, u'tph06784').
> 1616862009: Client weewx_94c44d84 disconnected.
> 1616862028: New connection from 192.168.1.170 on port 1883.
> 1616862028: New client connected from 192.168.1.170 as weewx_61789889 (c1,
> k60, u'tph06784').
> 1616862028: Client weewx_61789889 disconnected.
> 1616862030: New connection from 192.168.1.170 on port 1883.
> 1616862030: New client connected from 192.168.1.170 as weewx_28e94234 (c1,
> k60, u'tph06784').
> 1616862030: Client weewx_28e94234 disconnected.
> 1616862048: New connection from 192.168.1.170 on port 1883.
> 1616862048: New client connected from 192.168.1.170 as weewx_38f31fdb (c1,
> k60, u'tph06784').
> 1616862048: Client weewx_38f31fdb disconnected.
>
> On Sat, Mar 27, 2021 at 12:42 PM Tom Hackett <[email protected]> wrote:
>
>> I have changed MQTT to
>> [[MQTT]]
>>         server_url = mqtt://tph06784:[email protected]:1883
>>         topic = weather
>>         unit_system = US
>>         binding = archive, loop
>>         aggregation = aggregate
>>         log_success = true1883
>>
>> No change
>>
>> On Sat, Mar 27, 2021 at 11:51 AM vince <[email protected]> wrote:
>>
>>> > server_url = mqtt://tph06784:xxxx@localhost:1883
>>>
>>> This is becoming a FAQ.
>>>
>>> Do not use 'localhost'.  Use the fully qualified domain name of the MQTT
>>> broker host or its IP address.
>>>
>>> On Saturday, March 27, 2021 at 8:47:11 AM UTC-7 [email protected]
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> if you will that mqtt working from ootside of your website you must
>>>> config public dns names .
>>>>
>>>> example from mx site
>>>>
>>>> weewx.conf
>>>>
>>>>     [[MQTT]]
>>>>         server_url = mqtt://pi:[email protected]:8883/
>>>> <http://pi:[email protected]:8883/>
>>>>         topic = weather
>>>>         unit_system = METRIC
>>>>         binding = archive, loop
>>>>         aggregation = aggregate
>>>>         log_success = False
>>>>         log_failure = True
>>>>         [[[tls]]]
>>>>             tls_version = tlsv12
>>>>             ca_certs = /etc/ssl/certs/ca-certificates.crt
>>>>         [[[inputs]]]
>>>>             [[[[dayRain]]]]
>>>>                 name = dayRain_mm
>>>>                 units = mm
>>>>             [[[[rainRate]]]]
>>>>                 name = rainRate_mm_per_hour
>>>>                 units = mm_per_hour
>>>>
>>>> [[Belchertown]]
>>>>      [[[Extras]]]
>>>>
>>>>             mqtt_websockets_enabled = 1
>>>>             mqtt_websockets_host = gw.martenhinrichs.de
>>>>             mqtt_websockets_port = 9001
>>>>             mqtt_websockets_ssl = 1
>>>>             mqtt_websockets_topic = weather/loop
>>>>
>>>>
>>>> Only difference i use ssl and metric
>>>>
>>>>
>>>>
>>>> [email protected] schrieb am Samstag, 27. März 2021 um 15:33:58 UTC+1:
>>>>
>>>>> Site only says Connecting to weather station real time data and no
>>>>> updates are happening.
>>>>>
>>>>> On Sat, Mar 27, 2021 at 10:25 AM Graham Eddy <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> what’s not working?
>>>>>>
>>>>>> On 28 Mar 2021, at 12:33 am, Tom Hackett <[email protected]> wrote:
>>>>>>
>>>>>> I just can't figure this out.
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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/7A79B922-E098-48AE-A46C-3A128A3F9D90%40gmail.com
>>>>>> <https://groups.google.com/d/msgid/weewx-user/7A79B922-E098-48AE-A46C-3A128A3F9D90%40gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://www.shermanctweather.org/wxgraphic.php?type=banner_big*https://www.shermanctweather.org/wxgraphic.php?type=banner_big
>>>>> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
>>>>> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
>>>>> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>*
>>>>> *http://www.shermanctweather.org/wxgraphic.php?type=banner_big*
>>>>> <http://www.shermanctweather.org/wxgraphic.php?type=banner_big>
>>>>>
>>>>>
>>> --
>>> 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/ec03055f-9ec1-443c-89a2-b2961f5e0088n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/ec03055f-9ec1-443c-89a2-b2961f5e0088n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> http://www.shermanctweather.org/wxgraphic.php?type=banner_big*https://www.shermanctweather.org/wxgraphic.php?type=banner_big
>> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
>> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
>> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>*
>> *http://www.shermanctweather.org/wxgraphic.php?type=banner_big*
>> <http://www.shermanctweather.org/wxgraphic.php?type=banner_big>
>>
>>
>
> --
> http://www.shermanctweather.org/wxgraphic.php?type=banner_big*https://www.shermanctweather.org/wxgraphic.php?type=banner_big
> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
> <https://www.shermanctweather.org/wxgraphic.php?type=banner_big>*
> *http://www.shermanctweather.org/wxgraphic.php?type=banner_big*
> <http://www.shermanctweather.org/wxgraphic.php?type=banner_big>
>
>
> --
> 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/CAK7_jHcr_m2Je09DxRiSH4GuiZyDhP4ac9ic7MpW54ubdNb4Qw%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAK7_jHcr_m2Je09DxRiSH4GuiZyDhP4ac9ic7MpW54ubdNb4Qw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> 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/9E5443B7-7618-42E4-9E58-91BB415B73BB%402pi.org
> <https://groups.google.com/d/msgid/weewx-user/9E5443B7-7618-42E4-9E58-91BB415B73BB%402pi.org?utm_medium=email&utm_source=footer>
> .
>


-- 
http://www.shermanctweather.org/wxgraphic.php?type=banner_big*https://www.shermanctweather.org/wxgraphic.php?type=banner_big
<https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
<https://www.shermanctweather.org/wxgraphic.php?type=banner_big>https://www.shermanctweather.org/wxgraphic.php?type=banner_big
<https://www.shermanctweather.org/wxgraphic.php?type=banner_big>*
*http://www.shermanctweather.org/wxgraphic.php?type=banner_big*
<http://www.shermanctweather.org/wxgraphic.php?type=banner_big>

-- 
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/CAK7_jHd5RY28x4P9BZPsfqSjeqAsGf6Nf%3DJE0bDdGyjBw2cymg%40mail.gmail.com.

Reply via email to