Page 1 of 1

Weathersnoop v3.1 instead of 3.2.

PostPosted: Fri Jun 03, 2022 7:39 am
by Ian
Hey Guys

A few questions........I have been using the weathersnoop plugin successfully since its inception

Anyhow....I am using Indigo 2022.1.1. I have weathersnoop plugin version 3.1 as I am using weathersnoop version 2.25 on my computer (Weather station is WMR200) which I dont believe is supported by higher version and plugin 3.2 does not support weathersnoop 2

was working OK until recently with a few Indigo changes.

the weather station is plugged into this computer directly (macmini2020.local or 192.168.0.94 in my case) and I am receiving data and serving it on port 8001 via http.

I have the plugin set to receive the same but getting an error message. Is this because this version (3.1) is python 2.7? Is that whats givng me the issues.? or is it a setup issue.?

this is what I am getting in Indigo.

WeatherSnoop Error Error getting station WMR 200A data
Traceback (most recent call last):
File "plugin.py", line 557, in update
f = urllib2.urlopen(theUrl)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Fri Jun 03, 2022 7:48 am
by boisy
As you noted, I removed WeatherSnoop 2 support from the 3.2.0 release of the WeatherSnoop Indigo plugin.

The error you're receiving is HTTP Error 404. This appears to be an error communicating with the WeatherSnoop 2 server.

What exactly changed between the time it was working and the time it failed? Did you update to 2022.1?

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Fri Jun 03, 2022 5:35 pm
by Ian
2 things changed......I had the weather station connected to a 11 year old imac. I was serving the weather via http on that iMac . The actual Indigo installation running the Automation is a Mac Mini. I was retrieving the data in Indigo by referencing the imac IP address and port and it was working OK......... The imac has been retired so I plugged the weather station directly in to the Mac mini and used its IP address and port in the Indigo setup and also upgraded the Indigo to 2022.1.1. Not sure which has caused the issue. FYI...I tried the IP address instead of "macmini2020.local". As you can see....Weathersnoop seems to be recieving the data from the weather station with no issues.

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Sun Jun 05, 2022 3:59 am
by boisy
Everything seems to appear correct.

What do you see if you type this address in a browser on your Mac mini:

Code: Select all
http://macmini2020.local:8001

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 6:46 am
by Ian
Screen Shot 2022-06-07 at 8.42.55 AM.png
Screen Shot 2022-06-07 at 8.42.55 AM.png (167.33 KiB) Viewed 4508 times
Does not appear to be getting anything...tried 2 diffrenet browsers just to make sure. FYI...Obviously a Macmini (M1) and running OS 12.4

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 6:50 am
by boisy
That explains why the plugin isn't getting data from WeatherSnoop 2. For some reason, the web server isn't running.

The Mac mini is running both Indigo and WeatherSnoop 2. Try this in Terminal:

Code: Select all
curl -vvv localhost:8001


Do you get a response?

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 12:00 pm
by Ian
This what it returned

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 3:06 pm
by boisy
Alright, now type this in Safari:

Code: Select all
http://localhost:8001


What happens?

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 3:19 pm
by Ian
Nothing happens after I type it in....just a blank screen in Safari. Other websites do load so def connected.

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 3:22 pm
by boisy
Ok, I think the WeatherSnoop 2 server is working, but only if you access it via localhost.

Can you setup your Indigo WS2 plugin to use localhost instead of the macmini2020.local and see if that makes a difference?

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 3:36 pm
by Ian
I tried with localhost and also the IP address but no change unfortunately after I reloaded the plugin.

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Tue Jun 07, 2022 4:00 pm
by boisy
I'm out of ideas, Ian. Sorry.

Re: Weathersnoop v3.1 instead of 3.2.

PostPosted: Thu Jun 09, 2022 2:59 am
by howartp
I know nothing about Weathersnoop but can you try IP 127.0.01 which is equivalent to localhost?


Sent from my iPhone using Tapatalk Pro