WeatherSnoop Error

Posted on
Tue Apr 03, 2018 6:58 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: WeatherSnoop Error

George,

Since I'm unable to duplicate this on my end, I'm wondering if the WeatherSnoop 3 logs can shed some light. Can you go to WS3 Preferences and set logging to Debug, then watch the log? If the problem can be duplicated with the agent turned off, that will reduce the chatter quite a bit. I'm expecting something in the log will correlate with the communication issue.

How often does the issue happen, by the way?

Posted on
Tue Apr 03, 2018 8:49 am
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: WeatherSnoop Error

boisy wrote:
[Edit 1: I also realize that I'm running a somewhat newer version of the WeatherSnoop plug-in. Jay, do you think something may have changed to mitigate the issue in this newer plug-in?]


It's possible - I changed the networking code from using urllib2 to using the requests library.

boisy wrote:
[Edit 2: Looking at the python code for the plug-in, I'm not sure changing sleep(2) to sleep(1) is changing the polling time. I see a comparison of the current time to a lastCheck variable of 30 (seconds?) so perhaps that's the actually poll time?]


Right - the 2 second sleep is just so the list of discovered WS instances is kept up to date. Change 30 to 1 or 2 to make updates happen much faster.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Apr 03, 2018 8:55 am
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: WeatherSnoop Error

GRWilde wrote:
I am running Indigo and WeatherSnoop 3 on a Mac Mini Server (Mid 2011) using macOS High Sierra 10.13.3. It is operating as a headless server and I am using Apple Remote Desktop for the display. I am using Indigo 7.1.1, WeatherSnoop 3.2.4, and the WeatherSnoop plugin 2.1.2. About the only other app I have running on the Mac Mini is SecuritySpy.


Are you leaving ARD connected all/most of the time? Is is possible that the issue only happens when ARD is connected?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Apr 03, 2018 1:15 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: WeatherSnoop Error

No, I am only connecting with ARD when I access the Mac Mini, maybe a couple of time a day at most unless I am updating something on the Mac Mini. Most of the time it is disconnected and I do quit ARD on my iMac when I am not using it. The connection between the two Macs is Ethernet.

George Wilde

Posted on
Tue Apr 03, 2018 1:29 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: WeatherSnoop Error

Interestingly enough my WS3 logging level was already set to Debug. Maybe it should not be.

Here are the two logs around one recent time when the Indigo Event log shows an error:

Indigo Event Log:

Apr 3, 2018 at 12:12:27 PM
WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.

And here is the WeatherSnoop 3 log around the same time:

Apr 3 12:12:18 com.tee-boy.WeatherSnoop3[559] <Debug>: SQL: Thread <NSThread: 0x604000065940>{number = 1, name = main} executed query: "INSERT INTO twoMinuteAverageWindSpeed (time, value) VALUES (1522782738, '1.5');", runtime = 0.000105 seconds, return code = 0, message = (null) #Database
Apr 3 12:12:18 com.tee-boy.WeatherSnoop3[559] <Debug>: SQL: Thread <NSThread: 0x604000065940>{number = 1, name = main} executed query: "INSERT INTO windDirection (time, value) VALUES (1522782738, '137');", runtime = 0.000079 seconds, return code = 0, message = (null) #Database
Apr 3 12:12:18 com.tee-boy.WeatherSnoop3[559] <Debug>: Closed port SLAB_USBtoUART @ 19200 8-N-1 (fd = 32, close time = 0.011149) #TBSerialPort
Apr 3 12:12:18 com.tee-boy.WeatherSnoop3[559] <Debug>: SQL: Thread <NSThread: 0x608000462100>{number = 154244, name = (null)} executed query: "END TRANSACTION;", runtime = 0.044274 seconds, return code = 0, message = (null) #Database
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Opened socket to localhost:57755 #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Opened port SLAB_USBtoUART @ 19200 8-N-1 (fd = 32, open time = 0.004406) #TBSerialPort
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Info>: Getting station's attention (attempt 1 of 3).
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes written: <1b> #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes written: <0a> #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes read: <0a0d> #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Info>: Station awake.
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Requesting LPS packet.
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes written: <4c505320 3320320a> #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes read: <06> #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes read: <4c4f4f00 00f5082d 75de0239 ba020303 7a00ffff ffffffff ffffffff ffffffff ff39ffff ffffffff ff0000ff ff7f0000 ffff0000 0000d201 00000000 0000ffff ffffffff ff000000 00000000 00000000 00000000 0000000f 03062c7e 027b070a 0dc315> #SerialNetworkAgent
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: LOOP1 packet received.
Apr 3 12:12:27 com.tee-boy.WeatherSnoop3[559] <Debug>: Polling... #Davis Agent
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes read: <4c4f4f00 01ff7f2d 75de0239 ba0203ff 7a001900 11000600 5a00ff7f ff7f3600 ff39ff45 004600ff 7f0000ff ff7f0000 ffff0000 00000000 00000000 020000f6 ffed74ed 742e75ff 05160f16 010a0d0f 150202ff 7fff7fff 7fff7fff 7fff7f0a 0dff2a> #SerialNetworkAgent
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Debug>: LOOP2 packet received.
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Info>: Data received from station.
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Debug>: (<0a> 2 Minute Average Wind Speed = 1.7 miles per hour (2018-04-03 19:12:28 +0000),<0a> Wind Direction = 122 degrees (2018-04-03 19:12:27 +0000)<0a>) #Weather Agent
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Debug>: SQL: Thread <NSThread: 0x604000065940>{number = 1, name = main} executed query: "INSERT INTO twoMinuteAverageWindSpeed (time, value) VALUES (1522782748, '1.7');", runtime = 0.004461 seconds, return code = 0, message = (null) #Database
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Debug>: SQL: Thread <NSThread: 0x604000065940>{number = 1, name = main} executed query: "INSERT INTO windDirection (time, value) VALUES (1522782748, '122');", runtime = 0.004119 seconds, return code = 0, message = (null) #Database
Apr 3 12:12:28 com.tee-boy.WeatherSnoop3[559] <Debug>: Closed port SLAB_USBtoUART @ 19200 8-N-1 (fd = 32, close time = 0.013023) #TBSerialPort
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Opened socket to localhost:57755 #SerialNetworkAgent
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Opened port SLAB_USBtoUART @ 19200 8-N-1 (fd = 32, open time = 0.003690) #TBSerialPort
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Info>: Getting station's attention (attempt 1 of 3).
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes written: <1b> #SerialNetworkAgent
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes written: <0a> #SerialNetworkAgent
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes read: <0a0d> #SerialNetworkAgent
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Info>: Station awake.
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Requesting LPS packet.
Apr 3 12:12:37 com.tee-boy.WeatherSnoop3[559] <Debug>: Bytes written: <4c505320 3320320a> #SerialNetworkAgent

George Wilde

Posted on
Tue Apr 03, 2018 7:25 pm
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: WeatherSnoop Error

George,

Could you try running this script on your Mac like this:

Code: Select all
python getSiteDetails.py -a <address> -p <port>

Replacing <address> with the IP address of the Mac running WeatherSnoop, and <port> with the port that the WeatherSnoop server is serving from.

This will ferociously beat the server over and over fetching the same data that Indigo requests.

Please turn off the WeatherSnoop plug-in in Indigo while this runs. If a non-200 status code is returned, please make a note of it.

Code: Select all
#!/usr/bin/python
import json
import urllib2

import sys, getopt

def getHTTPData(url):
        # create a new Urllib2 Request object
        req = urllib2.Request(url)
        # add any additional headers you like
        req.add_header('Accept', 'application/json')
        req.add_header("Content-type", "application/x-www-form-urlencoded")
        # make the request and print the results
        res = urllib2.urlopen(req)
        return res;

def main(argv):
   address = 'cam.local'
   port = '8001'
   try:
      opts, args = getopt.getopt(argv,"ha:p:",["ifile=","ofile="])
   except getopt.GetoptError:
      print 'getHTTP.py -a <address> -p <port>'
      sys.exit(2)
   for opt, arg in opts:
      if opt == '-h':
         print 'getHTTP.py -a <address> -p <port>'
         sys.exit()
      elif opt in ("-a", "--address"):
         address = arg
      elif opt in ("-p", "--port"):
         port = arg
   url = 'http://' + address + ':' + port + "/api/v1/sites.json"
   request = getHTTPData(url);
   jsonData = request.read();
   decodedJSON = json.loads(jsonData)
   firstSite = decodedJSON["sites"][0]
   firstURI = firstSite["uri"]
   url = 'http://' + address + ':' + port + firstURI
   count = 0
   while 1:
      count = count + 1
      request = getHTTPData(url);
      if request.code != 200:
        print 'Error at iteration ' + str(count) + ': ' + str(request.code)
      else:
        data = request.read();
        if count == 1 or count % 100 == 0:
          print "Fetching URL at iteration " + str(count) + ": " + url

if __name__ == "__main__":
   main(sys.argv[1:])

Posted on
Tue Apr 03, 2018 9:23 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: WeatherSnoop Error

I ran the script for a while with the following results (no non-200 status codes seen - I have deleted the middle data because it is all the same):

Georges-iMac-Retina:~ grwilde$ python getSiteDetails.py -a 192.168.0.42 -p 8000
Fetching URL at iteration 1: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 100: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 200: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 300: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 400: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 500: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 600: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 700: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 800: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 900: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1000: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1100: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1200: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1300: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1400: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1500: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1600: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1700: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1800: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 1900: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 2000: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 2100: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 2200: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 2300: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 2400: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 2500: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
*
*
*
Fetching URL at iteration 22700: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 22800: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 22900: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 23000: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 23100: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 23200: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 23300: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 23400: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json
Fetching URL at iteration 23500: http://192.168.0.42:8000/api/v1/B5726E4 ... /site.json

George Wilde

Posted on
Wed Apr 04, 2018 6:34 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: WeatherSnoop Error

I would be curious for you to try the latest revision of the WeatherSnoop plug-in for Indigo, George.

Jay, what's the best way for George to get the latest plug-in?

Posted on
Wed Apr 04, 2018 9:13 am
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: WeatherSnoop Error

boisy wrote:
Jay, what's the best way for George to get the latest plug-in?


I just emailed him a zipped up version.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Apr 04, 2018 2:27 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: WeatherSnoop Error

Still getting the error with the new version. Here is all of the WeatherSnoop data from the Indigo Event Logs for today:

2018-04-04 00:12:07.025 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 00:16:54.675 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 00:58:36.851 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 01:32:47.003 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 01:37:36.835 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:07:57.049 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:14:19.345 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:21:17.513 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:26:07.365 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:32:33.675 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:36:19.248 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:41:08.813 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:43:15.577 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:47:31.045 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:53:24.907 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:54:27.209 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 02:59:49.170 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 03:03:34.477 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 03:49:24.051 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 04:10:13.453 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 04:13:58.688 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 04:51:58.487 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:02:37.297 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:06:54.964 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:15:29.841 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:16:34.411 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:20:49.755 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:44:19.648 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 05:46:26.262 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 06:19:58.337 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 06:31:09.973 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 06:35:23.230 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 06:48:47.438 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 07:24:29.231 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 07:47:59.434 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 07:50:08.294 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 08:34:28.902 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 08:52:04.919 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 08:57:59.220 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 09:26:23.234 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 09:41:52.620 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 09:51:29.758 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:03:15.688 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:06:28.734 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:21:29.555 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:24:42.688 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:40:08.053 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:46:00.000 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:48:08.579 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 10:55:04.892 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 11:08:59.831 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 11:27:09.494 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 11:39:59.789 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 11:47:55.417 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 11:58:04.859 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 12:10:48.554 Application Stopping plugin WeatherSnoop (pid 25911)
2018-04-04 12:10:49.680 Application Stopped plugin WeatherSnoop
2018-04-04 12:10:49.682 Application Upgrading plugin WeatherSnoop to newer version 2.2.0 (previous version moved to trash)
2018-04-04 12:10:49.807 Application Loading plugin "WeatherSnoop 2.2.0"
2018-04-04 12:10:49.811 Application Starting plugin "WeatherSnoop 2.2.0" (pid 53544)
2018-04-04 12:10:51.821 Application Started plugin "WeatherSnoop 2.2.0"
2018-04-04 12:23:39.883 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 12:41:47.443 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
2018-04-04 13:05:19.283 WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.

George Wilde

Posted on
Thu Apr 05, 2018 12:01 pm
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: WeatherSnoop Error

The errors seem to happen fairly frequently.

I'm stymied here. Jay, do you have any other suggestions?

Posted on
Thu Apr 05, 2018 3:30 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: WeatherSnoop Error

boisy wrote:
The errors seem to happen fairly frequently.

I'm stymied here. Jay, do you have any other suggestions?


Try turning plugin debugging on again and see if you're still getting the BadStatusLine error. Maybe the switch to the requests library for network communication in the latest plugin will yield a different error that may help identify the issue.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Apr 05, 2018 4:18 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: WeatherSnoop Error

Here is the latest error message:

Apr 5, 2018 at 3:02:25 PM
WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
WeatherSnoop Debug Error specifics:
Traceback (most recent call last):
File "plugin.py", line 477, in update
agentInformation = self.getWs3SiteData(localPropsCopy["wsAgent"])
File "plugin.py", line 463, in getWs3SiteData
f = urllib2.urlopen(url)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1132, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
BadStatusLine: ''

George Wilde

Posted on
Thu Apr 05, 2018 4:52 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: WeatherSnoop Error

Ah, looks like I missed replacing one network call with the requests library so we're still seeing the BadStatusLine error. I'll send you a new plugin to try with that call changed. Try it with debugging turned on and post the results here.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Apr 05, 2018 6:11 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: WeatherSnoop Error

Still getting the occasional errors:

Apr 5, 2018 at 4:09:08 PM
Enabling plugin "WeatherSnoop 2.2.0"
Starting plugin "WeatherSnoop 2.2.0" (pid 99734)
Started plugin "WeatherSnoop 2.2.0"
WeatherSnoop Debug Starting device: WeatherSnoop
WeatherSnoop Debug Starting concurrent tread
WeatherSnoop Debug command: ('add', u'Indigo - My House 1', u'grw-Systems-Server.24365584.members.btmm.icloud.com.', 8001)
WeatherSnoop Debug command: ('add', u'SecuritySpy Web Server', u'grw-Systems-Server.24365584.members.btmm.icloud.com.', 8002)
WeatherSnoop Debug command: ('add', u'EyeTV George\u2019s iMac Retina', u'Georges-iMac-Retina.24365584.members.btmm.icloud.com.', 2170)
WeatherSnoop Debug command: ('add', u'SecuritySpy Web Server', u'grw-Systems-Server.local.', 8002)
WeatherSnoop Debug command: ('add', u'SecuritySpy Web Server', u'grw-Systems-Server.local.', 8002)
WeatherSnoop Debug command: ('add', u'WeatherSnoop 3 - grw Systems Server', u'grw-Systems-Server.local.', 8000)
WeatherSnoop Debug Server list: {u'WeatherSnoop 3 - grw Systems Server@grw-Systems-Server.local.:8000': u'grw-Systems-Server.local.:8000'}
WeatherSnoop Debug command: ('add', u'WeatherSnoop 3 - grw Systems Server', u'grw-Systems-Server.local.', 8000)
WeatherSnoop Debug Server list: {u'WeatherSnoop 3 - grw Systems Server@grw-Systems-Server.local.:8000': u'grw-Systems-Server.local.:8000'}
WeatherSnoop Debug command: ('add', u'AXIS 207W - 00408C779F37', u'axis-00408c779f37.local.', 80)
WeatherSnoop Debug command: ('add', u'AMC017J740NT586F41', u'AMC017J740NT586F41.local.', 8081)
WeatherSnoop Debug command: ('add', u'eagle-003f72', u'eagle-003f72.local.', 80)
WeatherSnoop Debug command: ('add', u'Xerox Phaser 6180DN (9e:13:3a)', u'XRX0000AA9E133A.local.', 80)
WeatherSnoop Debug command: ('add', u'AXIS 207W - 00408C779F37', u'axis-00408c779f37.local.', 80)
WeatherSnoop Debug command: ('add', u'AMC017J740NT586F41', u'AMC017J740NT586F41.local.', 8081)
WeatherSnoop Debug command: ('add', u'eagle-003f72', u'eagle-003f72.local.', 80)
WeatherSnoop Debug command: ('add', u'Xerox Phaser 6180DN (9e:13:3a)', u'XRX0000AA9E133A.local.', 80)
WeatherSnoop Debug command: ('add', u'EyeTV George\u2019s iMac Retina', u'Georges-iMac-Retina.local.', 2170)
WeatherSnoop Debug command: ('add', u'EyeTV George\u2019s iMac Retina', u'Georges-iMac-Retina.local.', 2170)
WeatherSnoop Debug command: ('add', u'Indigo - My House 1', u'grw-Systems-Server.local.', 8001)
WeatherSnoop Debug command: ('add', u'Indigo - My House 1', u'grw-Systems-Server.local.', 8001)
Apr 5, 2018 at 4:26:09 PM
WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
WeatherSnoop Debug Error specifics:
Traceback (most recent call last):
File "plugin.py", line 477, in update
agentInformation = self.getWs3SiteData(localPropsCopy["wsAgent"])
File "plugin.py", line 463, in getWs3SiteData
f = urllib2.urlopen(url)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1132, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
BadStatusLine: ''

Apr 5, 2018 at 4:28:50 PM
WeatherSnoop Error Couldn't get site information from WeatherSnoop for device "WeatherSnoop" - check to see if WeatherSnoop is running correctly.
WeatherSnoop Debug Error specifics:
Traceback (most recent call last):
File "plugin.py", line 477, in update
agentInformation = self.getWs3SiteData(localPropsCopy["wsAgent"])
File "plugin.py", line 463, in getWs3SiteData
f = urllib2.urlopen(url)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1132, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
BadStatusLine: ''

George Wilde

Who is online

Users browsing this forum: No registered users and 0 guests