Yeah, I had someone else reach out to me that cloudmqtt was giving them 
some trouble as well. They ended up switching over to test.mosquitto.org 
for the time being. 

I thought you could add username:[email protected] in the hostname 
within options, but it didn't work. So I'll have to create an account and 
see what the correct syntax is. 

I also just realized the MQTT live updates are hard coded for imperial 
units. Those pesky units have got me again! 

I've got a bit of work to fix up on the skin. Hope to have a look at most 
of this in the next day or so. 

If anyone wants to contribute to the GitHub repo with a pull request in the 
meantime, I'm open to that as well!


On Sunday, August 26, 2018 at 12:04:28 AM UTC-4, Colin Larsen wrote:
>
> With a test client I've discovered that CloudMQTT require a username and 
> password to be sent for the websocket connections (TLS only too so it's a 
> wss connection) - that needs adding into skin.conf Pat I guess please.
>
> Cheers
> Colin
>
> On Sun, Aug 26, 2018 at 2:04 PM Colin Larsen <[email protected] 
> <javascript:>> wrote:
>
>> Now I just have to get the skin.conf to read it back
>>
>> These are the instance settings at CloudMQTT
>>
>>
>> Instance info
>>
>> Server m11.cloudmqtt.com
>> User 
>>  Restart
>> Password 
>>  Rotate
>> Port 13147
>> SSL Port 23147
>> Websockets Port (TLS only) 33147
>> Connection limit 5
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> And here is the skin.conf section .....
>>
>>
>>
>> # MQTT Defaults
>>
>>     mqtt_enabled = 1
>>
>>     mqtt_host = "m11.cloudmqtt.com"
>>
>>     mqtt_port = 33147
>>
>>     mqtt_ssl = 0
>>
>>     mqtt_topic = "weather/41south/loop"
>>
>>     disconnect_live_website_visitor = 1800000
>>
>>
>>
>> Not quite sure what is awry - Pat?
>>
>>
>>
>>
>> On Sun, Aug 26, 2018 at 1:44 PM Colin Larsen <[email protected] 
>> <javascript:>> wrote:
>>
>>> Thanks John! I used the installer rather than Pat's manual method and it 
>>> works great now :)
>>>
>>> Ignore the data values it's working on Simulator only at the moment
>>>
>>> weather/41south/loop {"cloudbase_meter": "385.160767033", 
>>> "outHumidity": "79.9998437932", "pressure_mbar": "1053.16654107", 
>>> "rain_cm": "0.0", "barometer_mbar": "1053.16654107", "dewpoint_C": 
>>> "-2.69897261268", "windGust_kph": "5.02780872081e-05", "heatindex_C": 
>>> "0.341840163469", "dayRain_cm": "0.508", "inDewpoint_C": "-0.511415146209", 
>>> "altimeter_mbar": "1053.61058559", "windchill_C": "0.341840163469", 
>>> "appTemp_C": "-2.00597980905", "outTemp_C": "0.341840163469", 
>>> "windGustDir": "359.999062759", "humidex_C": "0.341840163469", "rain24_cm": 
>>> "0.508", "inTemp_C": "17.2222800764", "windSpeed_kph": "4.1898406007e-05", 
>>> "usUnits": "16.0", "UV": "11.4155207049", "rainRate_cm_per_hour": "0.0", 
>>> "dateTime": "1535247709.0", "windDir": "359.999062759", "inHumidity": 
>>> "29.9997917248", "radiation_Wpm2": "815.394336067"}
>>>
>>> On Sun, Aug 26, 2018 at 1:26 PM John Smith <[email protected] 
>>> <javascript:>> wrote:
>>>
>>>>
>>>>
>>>> On Sunday, 26 August 2018 11:18:40 UTC+10, Colin Larsen wrote:
>>>>>
>>>>> Aug 26 13:10:14 raspberrypi weewx[3191]:     ****  ImportError: No 
>>>>> module named mqtt
>>>>>
>>>>>
>>>>>  
>>>>
>>>>> The mqtt.py file is in /usr/share/weewx/  as per below (I'll change 
>>>>> the permissions for read-only shortly)
>>>>>
>>>>>
>>>>>
>>>> You need to put it in /usr/share/weewx/user/ 
>>>>
>>>> -- 
>>>> 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] <javascript:>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to