I don't follow "password-protected" entirely.
On Nov 22, 2019, at 3:02 AM, Radek Dohnal <dohna...@gmail.com> wrote:
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e4344b69-d078-413f-98e4-8dd2cc1d3d0f%40googlegroups.com.
[root@wxgen ~]# cat /etc/mosquitto/mosquitto.conf
# Place your local configuration in /etc/mosquitto/conf.d/
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
# Plain MQTT protocol
listener 1883
protocol mqtt
listener 1884
protocol websockets
# End of plain MQTT configuration
# Bridge to remote Broker example.com
connection bridge-to-remote
# Path to the remote Broker:
address mqtt.eclipse.org:1883
cleansession false
# client ID to be used at remote Broker:
clientid wxgen.senia.org
start_type automatic
notifications false
try_private false
# Publish everything which is published to topic /public/# on local Broker to remote Broker into topic /public/from_local.brocker/ with QOS2:
topic weather/loop out 0 "" wx.senia.org/
# Bridge to remote Broker example.com
connection replicate-to-remote
# Path to the remote Broker:
address wxgen.senia.org:1883
cleansession false
# client ID to be used at remote Broker:
clientid wxgen.senia.org_replicate
start_type automatic
notifications false
try_private false
# Publish everything which is published to topic /public/# on local Broker to remote Broker into topic /public/from_local.brocker/ with QOS2:
topic weather/loop out 0 "" wx.senia.org/
/etc/weewx/weewx.conf
[[MQTT]]
binding = archive, loop
server_url = mqtt://wxgen.senia.org:1883/
topic = weather
post_interval = 2
Hi, Greg.I thank you for your ingenious contributionI'm trying to adapt your mqtt config for my page:I still haven't made it work for me. These are the main doubts I have for its operation:- What should be the content of:pid_file /var/run/mosquitto.pid- I suppose I must also modify some lines of the mosquitto.conf file.could you help me?
# MQTT Websockets defaults
mqtt_websockets_enabled = 1
mqtt_websockets_host = "ntLHZqh9S2DdCC5fYyQ6x0utCM07cSln9WUYc0VSSoWkOPpDb3zwTUQjuEfwlqKk:@mqtt.flespi.io"
mqtt_websockets_port = 80
mqtt_websockets_ssl = 0
mqtt_websockets_topic = "weather/loop"
disconnect_live_website_visitor = 1800000