{"rain24_in": "0.0", "barometer_inHg": "30.34", "outHumidity": "80.0", "altimeter_inHg": "30.2521121579", "maxSolarRad": "396.841281938", "dewpoint_F": "71.4119164898", "rain_in": "0.0", "cloudbase_foot": "1945.01897958", "heatindex_F": "78.1", "inDewpoint_F": "68.9270249035", "dayRain_in": "0.0", "rain_period": "800.0", "outTemp_F": "78.1", "appTemp_F": "86.3498648255", "windchill_F": "78.1", "hourRain_in": "0.0", "humidex_F": "94.7038960786", "rainRate_inch_per_hour": "0.0", "windGust_mph": "1.1", "pressure_inHg": "29.8", "inTemp_F": "77.9", "usUnits": "1.0", "windSpeed_mph": "0.2", "UV": "0.0", "dateTime": "1536065799.0", "windDir": "106.0", "inHumidity": "74.0", "radiation_Wpm2": "66.31"}
--
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.
For more options, visit https://groups.google.com/d/optout.
--
[[MQTT]]
#This section is for the MQTT service setup
server_url = mqtt://test.mosquitto.org:1883/
topic = weather/41south
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
Skin.conf
# MQTT Defaults
mqtt_enabled = 1
mqtt_host = "test.mosquitto.org"
mqtt_port = 8080
mqtt_ssl = 0
mqtt_topic = "weather/41south/#"
disconnect_live_website_visitor = 1800000
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/81PjpX0Ajas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Just ‘jumping in’ to this thread and I think I can see where the problem lies.
Collins website appears to be using http
G Hammer’s website appears to be using https
The instructions that Collin gave are correct and valid for an http site, that is one not using SSL.
If you use those instructions, that is the MQTT configuration, on an SSL site, it will do exactly what you are describing, that is hang continuously stating ‘Connecting to weather station data’. This is by design, as an SSL website cannot and will not process non-SSL data.
Solutions?
[[MQTT]]
#This section is for the MQTT service setup
server_url = mqtt://test.mosquitto.org:1883/
topic = weather/41south
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
Skin.conf
# MQTT Defaults
mqtt_enabled = 1
mqtt_host = "test.mosquitto.org"
mqtt_port = 8081
mqtt_ssl = 1
mqtt_topic = "weather/41south/#"
disconnect_live_website_visitor = 1800000persistence false
allow_anonymous true
# Non-SSL MQTT
listener 1883
protocol mqtt
# Non-SSL Websockets
listener 9001
protocol websocketsHere is what is in the dev console when I load the site:Connecting to MQTT weather:416:13
jQuery.Deferred exception: An invalid or illegal string was specified Paho.MQTT</k.prototype._doConnect@https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:36:453
Paho.MQTT</k.prototype.connect@https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:31:476
I/this.connect@https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:65:80
connect@https://ghammer.net/weather/:431:13
@https://ghammer.net/weather/:90:13
j@https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29997
g/</k<@https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313
undefined jquery.min.js:2:31569
sendTimingEvent addSite start undefined undefinedThere is more, but that seems to be a good starting point.As my mosquitto instance is inside my LAN, it would be difficult to use web based troubleshooting on it.But I have tested and the data is there, I'll have to investigate if it supports websockets though. A quick read says no on mosquitto, which is what I have locally.However, it did not work (same symptoms) using test.mosquitto.org which is why I brought it inhouse.
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/81PjpX0Ajas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.