Re: [weewx-user] Re: Belchertown MQTT live stats problem

2020-07-28 Thread Graham Eddy
maybe they turned off unencrypted mode.
try turning on SSL and use encrypted websockets port (8081 on 
test.mosquitto.org )

re logs, need option in mosquitto.conf ‘log_type all’ (or at least ‘log_type 
websockets’) plus (i haven’t tried this) ‘websockets_log_level {some flags}’ - 
latter defaults to off

> On 28 Jul 2020, at 10:30 pm, Don Roberts  wrote:
> 
> I'm experiencing this same thing, and I'm using a public MQTT broker. Didn't 
> change anything.
> 
> don
> 
> On Friday, July 24, 2020 at 11:26:40 PM UTC-5, Scott Grayban wrote:
> For over a year my live stats has been working flawlessly until recently. Now 
> it says Failed connecting to the weather station
> 
> Looking at the dev console in chrome I am seeing this for the error and not 
> sure how to test this out to see what is going on.
> 
> mqttws31.min.js:36 WebSocket connection to 'ws://X.X.X.X:9001/mqtt' failed: 
> Connection closed before receiving a handshake response
> 
> The MQTT logs are only showing connections via port 1883.
> 
> -- 
> 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/73f84443-63ed-452f-8f2d-2cf65bfa0405o%40googlegroups.com
>  
> .

-- 
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/7D44F99A-801E-46F6-8BE1-1B048F7CA890%40gmail.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-28 Thread Don Roberts
I'm experiencing this same thing, and I'm using a public MQTT broker. 
Didn't change anything.

don

On Friday, July 24, 2020 at 11:26:40 PM UTC-5, Scott Grayban wrote:
>
> For over a year my live stats has been working flawlessly until recently. 
> Now it says *Failed connecting to the weather station*
>
> Looking at the dev console in chrome I am seeing this for the error and 
> not sure how to test this out to see what is going on.
>
> mqttws31.min.js:36 WebSocket connection to 'ws://X.X.X.X:9001/mqtt' 
> failed: Connection closed before receiving a handshake response
>
> The MQTT logs are only showing connections via port 1883.
>

-- 
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/73f84443-63ed-452f-8f2d-2cf65bfa0405o%40googlegroups.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-27 Thread Scott Grayban
It didn't have the 0.0.0.0 originally and it still didn't work. I don't 
have ipv6 working on that pi so I thought something changed so I added 
0.0.0.0

Like I said it works in MQTTBox just fine so I don't get the problem.

-- 
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/09d32590-efe8-4736-b200-856dacc68f90o%40googlegroups.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-27 Thread gary....@gmail.com
Try removing the IP from your config and try.

#  netstat -ntap | grep 9001
tcp6   0  0 :::9001 :::*LISTEN  
1365/mosquitto
tcp6   0  0 10.10.100.110:9001  10.10.100.1:10021  
 ESTABLISHED 1365/mosquitto


On Sunday, July 26, 2020 at 5:21:24 PM UTC-4 sgra...@gmail.com wrote:

> No worries... just very strange the live stats dont work anymore even 
> though it works
>

-- 
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/11e8c2ca-9012-4148-bcc4-b5b81260f611n%40googlegroups.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-26 Thread Scott Grayban
No worries... just very strange the live stats dont work anymore even 
though it works

-- 
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/cdcef32c-4629-4b71-bfe9-f0404362dbf9o%40googlegroups.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-26 Thread Paul Anderson
Sure seems like it's running and WebSockets is enabled for 9001. Must be some 
other issue. I actually don't even run belchertown, however I do run mosquito 
MQTT, and I recall quite a while ago being bitten by just the issue I mentioned 
where I upgraded and forgot to keep my existing config. Sorry I couldn't be of 
more help.

-- 
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/33826bf6-943e-49f4-879a-e66bc46329afo%40googlegroups.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-26 Thread Scott Grayban
Also I can subscribe to the weather/weewx/loop topic via MQTTBox app and I 
get responses. I wonder if something broke in jquery...

-- 
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/1a363c35-9ba8-4a76-8bfb-4d8e7409f5f5o%40googlegroups.com.


[weewx-user] Re: Belchertown MQTT live stats problem

2020-07-26 Thread Scott Grayban
This is what I have in /myconfig.conf 

persistence false
> allow_anonymous true
> password_file /etc/mosquitto/passwd
> acl_file /etc/mosquitto/acl
> listener 1883 0.0.0.0
> protocol mqtt
> # websockets
> listener 9001 0.0.0.0
> protocol websockets


netstats shows

# netstat -ntap |grep 9001
> tcp0  0 0.0.0.0:90010.0.0.0:*  
>  LISTEN  6928/mosquitto


wscat shows

# wscat -c "ws://63.230.134.165:9001"
> connected (press CTRL+C to quit)

 
So I am assuming its working ?

-- 
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/654ba456-919f-4858-b38f-d9958e3b1238o%40googlegroups.com.