Questions and Comment on my most ambitious PiBeacon project

Posted on
Tue Jul 23, 2019 11:21 am
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Questions and Comment on my most ambitious PiBeacon project

First off I'm utterly floored at the functionality PiBeacon continues to provide to me a jack off all trades except coding and linux. It takes a while to fully grasp some of the functionality, but when I do its motivation for days on my most beloved hobby, home automation.

I've recently a neopixel LED strip, soldered in my level shifter and started to play around but I get this error when I try to adjust the Neo pixel dimmer device : in Line 7336 has error=No JSON object could be decoded

I also get a bunch of check SD card errors when reviewing the plug in log so I've got some new ones in the mail, just trying to see what you think.

I recently managed to start a project I was planning for while; to use a rotary encoder for music and volume control in my bathroom. I mounted the rotary encoder (with push button), two additional push buttons, a DHT11, and a very small PIR to a blank single gang faceplate and ran my wiring to my Pi. Works excellent! I didn't even need to script any of the logic to make it work as desired, just took creating a few variables via indigo UI and conditional logic. Now I have volume, playlist, track control, along with manual overrides for automated ventilation and lighting, as well as a hardware reset for everything in the music loop should anything stop working (iTunes, Airfoil, Onkyo Receiver). As soon as I can get this NeoPixel device working, I'll throw that into the mix for accent light around the mirror, underneath the vanity, and possibly behind the toilet. It's going to be an awesome nightlight if all works out well.

So all this got me thinking if PiBeacon is built on Raspbian, would it be a good idea to implement some other uses on this Pi as well IE install a PiHole and/or shairport server? If I use a hifi berry Hat would it possibly cause interference with the neopixel or is that a different audio channel? Could a Pi3 handle that sort of processing? Do you implement anything similar in your set up?

I've read that you have 10+ Pi's going at once, what does your final installations look like?

How do you mount the sensors and all the other connected devices? I'm in security and integration for a large federal contractor and use a lot of commercial solutions but there not really much available in terms of mounting components in a presentable fashion. The buttons weren't really a challenge as they have retaining buts, but the sensors are another story. I found hot glue seems to work way better than the construction adhesive I started with.

I will be posting pictures and maybe a video of my install once the rest of the bathroom is finished, its mostly gutted still and I need to get off my butt and lay some tile on the floor, hang some sheetrock, finish plumbing, install shower toilet and vanity back so yeah in a few months.

Posted on
Tue Jul 23, 2019 3:03 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Questions and Comment on my most ambitious PiBeacon proj

Pics please!

Posted on
Wed Jul 24, 2019 5:34 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Questions and Comment on my most ambitious PiBeacon project

Regarding neopixel
Could you send your dev definition and how do you set the light in an action?
The command is a little complex.

Could you switch on debug for output devices. It will show the action data.



And regarding physical design of setups. I am really not good at that. I use mostly liquid tape to to put things together


Sent from my iPhone using Tapatalk

Posted on
Mon Jul 29, 2019 8:44 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: Questions and Comment on my most ambitious PiBeacon proj

Found my problem... bad solder joint at the level shifter. Works like a charm now except for a few hiccups... The * override in the pixel list always throws that line 7336 error. Pretty glad I cut about 12 feet off of my strip as I only have a 5amp power supply. So yeah I made a list 0,0 to 0,77.

I did create a bunch of 10 pixel dimmers, added to home bridge real quick and told Siri to change colors of left little strip and right little strip, blows those expensive HUE LED Strips out of the water.

My next house will def have a few outside and with some code, I'll never have to hang a Christmas light again! I even got a string of them that look like Christmas lights but I think I'm just going to hack them up one by one for indicators for various things.

Side note for anyone following, I did get PiHole and PiVPN installed on my Pi3. Giant Pain trying to get the rest of the LAN resources accessible to the vpn client but some static routes fixed that. Somewhere along the way I lost the admin web server for Pihole but I feel smarter using the command line anyways.

I'm waiting on a bunch of parts from China, I'm going to try and add an IR blaster to the set up. Picture single/double/triple gang cover, all the inputs you ask for plus an IR blaster and pin hole camera. If the Pi 0 W can handle all this all we are looking at is feeding the pi 5 volts the rest of the wiring stays contained in the electrical box,

***Somewhere between now and the last time I really played with Raspian, SSH was turned off by default, there's work arounds but not a happy surprise to me***

Posted on
Mon Jul 29, 2019 10:31 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Questions and Comment on my most ambitious PiBeacon proj

could you post your action definition for the leds?

The string that is set in the action is not complete to make a file json object.


Karl


Sent from my iPhone using Tapatalk

Posted on
Tue Jul 30, 2019 12:03 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Questions and Comment on my most ambitious PiBeacon proj

@new2me07- seriously, please consider sharing a WIP or tutorial thread on the awesome stuff you are doing.

Posted on
Tue Jul 30, 2019 1:26 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: Questions and Comment on my most ambitious PiBeacon proj

I imagine this isn't what your looking for but here's what I got when creating a dimmer device and just using the asterisk for the list. This is what the plugin log spits out when trying to turn it on and off.

Code: Select all
2019-07-30 15:17:45 actionValue : 0
configured : True
delayAmount : 900
description : turn on device
deviceAction : TurnOn
deviceId : 1263549259
replaceExisting : True
textToSpeak :
2019-07-30 15:17:45.330   ERROR          Plugin.actionControlDimmerRelay  in Line 7336 has error=No JSON object could be decoded
2019-07-30 15:17:47 actionValue : 0
configured : True
delayAmount : 900
description : turn off device
deviceAction : TurnOff
deviceId : 1263549259
replaceExisting : True
textToSpeak :
2019-07-30 15:17:47.355   ERROR          Plugin.actionControlDimmerRelay  in Line 7336 has error=No JSON object could be decoded


And the device info file:


Code: Select all
15:22:38 printing dev info for    -Neo Debug Device/1263549259 -------------------------------
15:22:38 props:                   -
com.karlwachs.piBeacon : (dict)
     MSG :  (string)
     SupportsColor : true (bool)
     SupportsRGB : true (bool)
     SupportsWhite : true (bool)
     address : Neo  (string)
     description : rampSp=0.2[sec]; pix=* (string)
     neopixelDevice : 1178648706 (string)
     pixelMenu0 :  (string)
     pixelMenu1 :  (string)
     pixelMenu2 :  (string)
     pixelMenu3 :  (string)
     pixelMenu4 :  (string)
     pixelMenu5 :  (string)
     pixelMenu6 :  (string)
     pixelMenu7 :  (string)
     pixelMenu8 :  (string)
     pixelMenu9 :  (string)
     pixelMenulist : * (string)
     speedOfChange : 0.2 (string)
15:22:38 states:                  -
States : (dict)
     blueLevel : 0 (integer)
     brightnessLevel : 0 (integer)
     greenLevel : 0 (integer)
     onOffState : off (on/off bool)
     redLevel : 0 (integer)
     whiteLevel : 0 (integer)
15:22:38 description:             -
15:22:38 address:                 -Neo
15:22:38 deviceTypeId:            -neopixel-dimmer
15:22:38 enabled:                 -True
15:22:38 model:                   -OUTPUT-Neopixel-Dimmer

Posted on
Tue Jul 30, 2019 1:41 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: Questions and Comment on my most ambitious PiBeacon proj

And the main NeoPixel device itself:
Code: Select all
15:24:24 printing dev info for    -Neo /1178648706 -------------------------------
15:24:24 props:                   -
com.karlwachs.piBeacon : (dict)
     DMAchannel : 5 (string)
     MSG :  (string)
     OrderOfMatrix : lrrl (string)
     PWMchannel : 0 (string)
     address : Pi-0 (string)
     description :  (string)
     devType : 1x77 (string)
     devTypeLEDs : 77 (string)
     devTypeROWs : 1 (string)
     frequency : 800000 (string)
     intensity : 100 (string)
     isOutputDevice : true (bool)
     piServerNumber : 0 (string)
     signalPin : 18 (string)
15:24:24 states:                  -
States : (dict)
     OUTPUT : [{u'position':[[0,0,33,218,15],[0,1,33,218,15],[0,2,33,218,15],[0,3,33,218,15],[0,4,33,218,15],[0,5,33,218,15],[0,6,33,218,15],[0,7,33,218,15],[0,8,33,218,15],[0,9,33,218,15],[0,10,33,218,15],[0,11,33,218,15],[0,12,33,218,15],[0,13,33,218,15],[0,14,33,218,15],[0,15,33,218,15],[0,16,33,218,15],[0,17,33,218,15],[0,18,33,218,15],[0,19,33,218,15],[0,20,33,218,15],[0,21,33,218,15],[0,22,33,218,15],[0,23,33,218,15],[0,24,33,218,15],[0,25,33,218,15],[0,26,33,218,15],[0,27,33,218,15],[0,28,33,218,15],[0,29,33,218,15],[0,30,33,218,15],[0,31,33,218,15],[0,32,33,218,15],[0,33,33,218,15],[0,34,33,218,15],[0,35,33,218,15],[0,36,33,218,15],[0,37,33,218,15],[0,38,33,218,15],[0,39,33,218,15],[0,40,33,218,15],[0,41,33,218,15],[0,42,33,218,15],[0,43,33,218,15],[0,44,33,218,15],[0,45,33,218,15],[0,46,33,218,15],[0,47,33,218,15],[0,48,33,218,15],[0,49,33,218,15],[0,50,33,218,15],[0,51,33,218,15],[0,52,33,218,15],[0,53,33,218,15],[0,54,33,218,15],[0,55,33,218,15],[0,56,33,218,15],[0,57,33,218,15],[0,58,33,218,15],[0,59,33,218,15],[0,60,33,218,15],[0,61,33,218,15],[0,62,33,218,15],[0,63,33,218,15],[0,64,33,218,15],[0,65,33,218,15],[0,66,33,218,15],[0,67,33,218,15],[0,68,33,218,15],[0,69,33,218,15],[0,70,33,218,15],[0,71,33,218,15],[0,72,33,218,15],[0,73,33,218,15],[0,74,33,218,15],[0,75,33,218,15],[0,76,33,218,15],[0,76,33,218,15]],u'speedOfChange':0,u'type':'points',u'display':'immediate'}] (string)
     status : 85 (real)
15:24:24 description:             -type=1x77
15:24:24 address:                 -Pi-0
15:24:24 deviceTypeId:            -neopixel
15:24:24 enabled:                 -True
15:24:24 model:                   -OUTPUT-Neopixel
15:24:24 RPI info:                -
{
  "PosX": 0,
  "PosY": 0,
  "PosZ": 0,
  "authKeyOrPassword": "assword",
  "deltaChangedSensor": 5,
  "deltaTime1": 100,
  "deltaTime2": -0.0498199462890625,
  "emptyMessages": 0,
  "enableRebootCheck": "restartLoop,pingBoot",
  "enableiBeacons": "1",
  "input": {
    "BLEconnect": {
      "1732254697": "80:B0:3D:27:FE:2E",
      "292225142": "D8:1C:79:83:CC:E5"
    },
    "DHT": {
      "1218658991": {}
    },
    "INPUTRotarySwitchIncremental": {
      "585906471": ""
    },
    "INPUTgpio-1": {
      "1000157989": [
        {
          "count": "off",
          "gpio": "16",
          "inpType": "high"
        }
      ],
      "1522006909": [
        {
          "count": "off",
          "gpio": "25",
          "inpType": "high"
        }
      ],
      "1662951802": [
        {
          "count": "off",
          "gpio": "24",
          "inpType": "high"
        }
      ],
      "554763610": [
        {
          "count": "off",
          "gpio": "20",
          "inpType": "open"
        },
        {},
        {
          "count": "off",
          "gpio": "20",
          "inpType": "open"
        },
        {},
        {},
        {},
        {},
        {},
        {},
        {}
      ]
    }
  },
  "ipNumberPi": "10.0.1.41",
  "ipNumberPiSendTo": "10.0.1.41",
  "lastMessage": 1564514654.727106,
  "output": {
    "neopixel": {
      "1178648706": ""
    }
  },
  "passwordPi": "xxxx",
  "piDevId": 670194950,
  "piMAC": "B8:27:EB:A5:48:4B",
  "piNumberReceived": "0",
  "piOnOff": "1",
  "piUpToDate": [],
  "rpiType": "rPi",
  "rssiOffset": 0.0,
  "sendToIndigoSecs": 90,
  "sensorList": "INPUTgpio-1*1662951802,INPUTgpio-1*1000157989,INPUTgpio-1*554763610,INPUTgpio-1*1522006909,INPUTRotarySwitchIncremental*585906471,DHT*1218658991*17,BLEconnect*1732254697,BLEconnect*292225142,",
  "sensorRefreshSecs": 90,
  "userIdPi": "pi"
}



"authKeyOrPassword": "assword",

I gave my wife my key and my password but she still wouldn't give up the goods :lol:

I need to work on my documentation SOOOOO bad. I was troubleshooting why none of the ssh commands would work from the plugin, so I added the auth key to the pi as noted in the sticky. Some SSH commands would then work but reboot and shutdown would not. Tracked it down to the rc.local script and cannot remember what I did to fix it, as it was keeping a job open for >30mins. I was using an old image and my test Pi 0 on the latest post image file doesn't seem to have that problem. (I'm sorry that's little to no help whatsoever but I do remember seeing "fi" in the conditional logic of the script and thinking there's the problem, a little googling, nope, thats a real thing.

Posted on
Tue Jul 30, 2019 1:45 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Questions and Comment on my most ambitious PiBeacon proj

should be fixed in V .300

a tab "disappeared" ...

should be working now

Karl

Posted on
Thu Aug 01, 2019 2:03 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: Questions and Comment on my most ambitious PiBeacon proj

So this happened today,

Code: Select all
Aug 1, 2019 at 1:39:15 PM
   piBeacon Error                  in Line 9476 has error=dictionary changed size during iteration

Aug 1, 2019 at 1:42:09 PM
   Trigger                         Variable Update for LivingRoomMotion
   Trigger                         LivingRoom Motion Variable Update
   DSC Alarm                       Alarm Zone 'LR Motion' Closed.

Aug 1, 2019 at 1:42:26 PM
   Trigger                         Variable Update for LivingRoomMotion
   Trigger                         LivingRoom Motion Variable Update
   DSC Alarm                       Alarm Zone 'LR Motion' Opened.
   Trigger                         Variable Update for LivingRoomMotion
   Trigger                         LivingRoom Motion Variable Update
   DSC Alarm                       Alarm Zone 'LR Motion' Closed.
   Z-Wave                          received "033 - Meter Total" status update battery level 100%
   Z-Wave                          received "033 - Meter Total" status update battery level 100%
   Z-Wave                          received "033 - Meter Total" power load to 2600.510 W
   Z-Wave                          received "033 - Meter Total" energy total to 1149.387 kWh
   Trigger                         Energy Update
   Trigger                         Variable Update for LivingRoomMotion
   Trigger                         LivingRoom Motion Variable Update
   DSC Alarm                       Alarm Zone 'LR Motion' Opened.
   Airfoil Pro                     Available Airfoil instances: {u'Charles\u2019s Mac mini': u'Charless-Mac-mini.local:45013'}
   Trigger                         Variable Update for LivingRoomMotion
   Trigger                         LivingRoom Motion Variable Update
   DSC Alarm                       Alarm Zone 'LR Motion' Closed.

Aug 1, 2019 at 1:43:17 PM
   Airfoil Pro                     Available Airfoil instances: {u'Charles\u2019s Mac mini': u'Charless-Mac-mini.local:45013'}

Aug 1, 2019 at 1:45:00 PM
   Schedule                        NestTempUpdate

Aug 1, 2019 at 1:46:33 PM
   Trigger                         Energy Update

Aug 1, 2019 at 1:48:07 PM
   Trigger                         Variable Update for LivingRoomMotion
   Trigger                         LivingRoom Motion Variable Update
   DSC Alarm                       Alarm Zone 'LR Motion' Opened.
   Z-Wave                          received "Bathroom Scene Switch" status update is on
   Trigger                         Music in Bathroom

Aug 1, 2019 at 1:50:15 PM
   Error                           script error: iTunes got an error: AppleEvent timed out. (-1712)
   fingscan                        can not update variable ipDevsLastUpdate 
  restarting fingscan
 exception code: ServerCommunicationError -- timeout waiting for response
   fingscan                        --> while loop break  stopping ...  quitNOW was: ipDevsLastUpdate can not be updated
   Z-Wave                          received "033 - Meter Total" status update battery level 100%
   Z-Wave                          received "033 - Meter Total" status update battery level 100%
   Z-Wave                          received "033 - Meter Total" power load to 2540.890 W
   Z-Wave                          received "033 - Meter Total" energy total to 1149.646 kWh
   Trigger                         Energy Update
   HomeKit Bridge Error            Exception in plugin.onAfter_nonpluginDeviceUpdated line 644: ServerCommunicationError -- timeout waiting for response
                      CODE: if serverId not in indigo.devices:

   Hue Lights Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 342, in runConcurrentThread
  File "plugin.py", line 6541, in parseAllHueSensorsData
StandardError: ServerCommunicationError -- timeout waiting for response

   Hue Lights Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Airfoil Pro Error               Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 533, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Airfoil Pro Error               plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   DSC Alarm Error                 Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 2261, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   DSC Alarm Error                 plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   piBeacon Error                  in Line 9505 has error=ServerCommunicationError -- timeout waiting for response
   fingscan Error                  Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 4706, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   HomeKit Bridge Error            Exception in plugin.onAfter_runConcurrentThread line 454: ServerCommunicationError -- timeout waiting for response
                      CODE: for dev in indigo.devices.iter(self.pluginId + ".Server"):

   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2463, in do_POST
    for dev in indigo.devices.itervalues('self.BlueIrisCamera'):
StandardError: ServerCommunicationError -- timeout waiting for response
   Alexa-Hue Bridge Error          StandardError detected in HttpdRequestHandler for 'self.ahbDev.name'. Line '177' has error='ServerCommunicationError -- timeout waiting for response'
   Hue Lights Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 342, in runConcurrentThread
  File "plugin.py", line 6541, in parseAllHueSensorsData
StandardError: ServerCommunicationError -- timeout waiting for response

   Hue Lights Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Airfoil Pro Error               Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 533, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Airfoil Pro Error               plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   DSC Alarm Error                 Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 2229, in runConcurrentThread
  File "plugin.py", line 1233, in readPacket
  File "plugin.py", line 1791, in updateZoneState
StandardError: ServerCommunicationError -- timeout waiting for response

   DSC Alarm Error                 plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   piBeacon Error                  in Line 9732 has error=ServerCommunicationError -- timeout waiting for response
   Hue Lights Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 342, in runConcurrentThread
  File "plugin.py", line 6541, in parseAllHueSensorsData
StandardError: ServerCommunicationError -- timeout waiting for response

   Hue Lights Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Airfoil Pro Error               Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 533, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Airfoil Pro Error               plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   DSC Alarm Error                 Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 2229, in runConcurrentThread
  File "plugin.py", line 1141, in readPacket
  File "plugin.py", line 1862, in updateKeypad
StandardError: ServerCommunicationError -- timeout waiting for response

   DSC Alarm Error                 plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2463, in do_POST
    for dev in indigo.devices.itervalues('self.BlueIrisCamera'):
StandardError: ServerCommunicationError -- timeout waiting for response
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2463, in do_POST
    for dev in indigo.devices.itervalues('self.BlueIrisCamera'):
StandardError: ServerCommunicationError -- timeout waiting for response
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2463, in do_POST
    for dev in indigo.devices.itervalues('self.BlueIrisCamera'):
StandardError: ServerCommunicationError -- timeout waiting for response
   piBeacon Error                  BeaconsCheckPeriod communication to indigo is interrupted
   Hue Lights Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 342, in runConcurrentThread
  File "plugin.py", line 6541, in parseAllHueSensorsData
StandardError: ServerCommunicationError -- timeout waiting for response

   Hue Lights Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Airfoil Pro Error               Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 533, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Airfoil Pro Error               plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   fingscan                        error in  Line '5517' ;  error='ServerCommunicationError -- timeout waiting for response'
   Airfoil Pro Error               Connect to Speaker -- Target device is not an Airfoil Speaker device
   piBeacon Warning                === delRPI:  deleting pi:0  devID:670194950
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 396, in send_response
    self.send_header('Date', self.date_time_string())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 401, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2463, in do_POST
    for dev in indigo.devices.itervalues('self.BlueIrisCamera'):
StandardError: ServerCommunicationError -- timeout waiting for response
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   BlueIris Plugin Error           Exception in do_POST single thread.
Traceback (most recent call last):
  File "plugin.py", line 2426, in do_POST
    self.send_response(200)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 393, in send_response
    (self.protocol_version, code, message))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:50:15
   Schedule                        Music in Bathroom (delayed action)
   Schedule                        Music in Bathroom (delayed action)
   Schedule                        Music in Bathroom (delayed action)
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:50:16
   Schedule                        Music in Bathroom (delayed action)
[size=150]   piBeacon Warning                === delRPI:  deleting pi:0  devID:0 [/size]
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:50:30
   Z-Wave                          received "033 - Meter Total" status update battery level 100%
   Z-Wave                          received "033 - Meter Total" status update battery level 100%
   Z-Wave                          received "033 - Meter Total" power load to 2563.880 W
   Z-Wave                          received "033 - Meter Total" energy total to 1149.732 kWh
   Trigger                         Energy Update
   piBeacon Error                  in Line 5014 has error=Unknown format code 'f' for object of type 'str'
   piBeacon Error                  in Line 4991 has error='int' object is not iterable
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:50:44
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:50:54
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:50:55

Aug 1, 2019 at 1:51:36 PM
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:51:36
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:51:40
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:51:43
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:51:52
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:51:55
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:52:00
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:52:14
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:52:26
   piBeacon Warning                TCPIP socket error rate high for 10.0.1.41/unknown ; previous:2019-08-01 13:52:32


I'm not sure if PiBeacon caused this or not, not any other errors besides some crazy Z-Wave devices bits back to indigo but my Pi device got deleted. Yesterday I did make some changes telling them to sync time with indigo and writing log to RAM disk as you suggested in another thread.

Posted on
Thu Aug 01, 2019 2:23 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Questions and Comment on my most ambitious PiBeacon proj

these error: "... Error: ServerCommunicationError -- timeout waiting for response" are a real problem.

Do you have applescripts? if so please kill them all. As long as you have applescripts running I can NOT help you. They stop all of indigoes activities as long as they are running.

The issue with these errors is:
when a plugin wants to get device info from indigo and indigo comes back with an error the plugin assumes that the device does not exist. and "forgets" about that device (= deletes it from its internal table.)

You might say but the error is a time out error not device does not exist.. YES that's true , but there are many hundred of these calls in the plugins and analyzing each error is a lot of work.

I have done this in some places but not in all.

So as long as you have these timeout errors, any other error comes from that .


for
piBeacon Error in Line 5014 has error=Unknown format code 'f' for object of type 'str'
piBeacon Error in Line 4991 has error='int' object is not iterable

these are little bugs, will fix in the next release.. only happen when debug is ON

Karl

Posted on
Thu Aug 01, 2019 6:41 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: Questions and Comment on my most ambitious PiBeacon proj

Just "embedded" applescripts or external ones that indigo calls as well?

My python is weak :cry:

Posted on
Thu Aug 01, 2019 9:05 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Questions and Comment on my most ambitious PiBeacon proj

Internal absolutely yes
External depends on how called= is indigo waiting for it to finish—- I believe


In the next indigo version internal AppleScript will not work any more

And if you can program in AppleScript switching to python should be easy

Karl



Sent from my iPhone using Tapatalk

Posted on
Mon Nov 18, 2019 8:33 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: Questions and Comment on my most ambitious PiBeacon proj

Pi#0 - 18-18:08:00 master execMaster L:2177 Lv:40 Line 1721 has error=[Errno 28] No space left on device
Pi#0 - 18-18:08:01 master <module> L:2183 Lv:30 exit at end of master
Pi#0 - 18-18:08:52 master execMaster L:1637 Lv:30 ========================= starting master version: 11.3
Pi#0 - 18-18:08:57 piBeaconUtils readJson L:1942 Lv:30 cBY:master Line 1939 has error=No JSON object could be decoded, fname:/home/pi/pibeacon/temp/parameters, data:
Pi#0 - 18-18:08:57 piBeaconUtils readJson L:1942 Lv:30 cBY:master Line 1939 has error=No JSON object could be decoded, fname:/home/pi/pibeacon/temp/parameters, data:
Pi#0 - 18-18:08:57 piBeaconUtils doRead L:242 Lv:20 cBY:master doRead error empty file
Pi#0 - 18-18:08:58 piBeaconUtils readJson L:1942 Lv:30 cBY:master Line 1939 has error=No JSON object could be decoded, fname:/home/pi/pibeacon/temp/parameters, data:
Pi#0 - 18-18:08:58 piBeaconUtils readJson L:1942 Lv:30 cBY:master Line 1939 has error=No JSON object could be decoded, fname:/home/pi/pibeacon/temp/parameters, data:
Pi#0 - 18-18:08:58 piBeaconUtils doRead L:242 Lv:20 cBY:master doRead error empty file
Pi#0 - 18-18:08:58 master execMaster L:1687 Lv:30 START.. indigoServer IP:>><<
Pi#0 - 18-18:08:59 master execMaster L:1698 Lv:50 hw clock info: ('', 'hwclock: Cannot access the Hardware Clock via any known method.\nhwclock: Use the --verbose option to see the details of our search for an access method.\n')
Pi#0 - 18-18:08:59 master execMaster L:2177 Lv:40 Line 1721 has error=[Errno 28] No space left on device
Pi#0 - 18-18:09:00 master <module> L:2183 Lv:30 exit at end of master
Pi#0 - pi@raspberrypi:~$
Pi#0 - pibeacon logfile END ===================================

Nothing seems to work on the newest plugin and fresh build using preconfigured image, above are the errors I'm getting in the plug in log. The pi device constantly cycles between up and down, doesn't seem to get the device configs pushed to it, no bluetooth.

As for space, this is what I got:

i@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 6.9G 3.6G 3.1G 54% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 6.2M 457M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 53M 200M 21% /boot
tmpfs 1.0M 1.0M 0 100% /home/pi/pibeacon/temp
tmpfs 93M 0 93M 0% /run/user/1000


Any ideas?
Thanks

Posted on
Mon Nov 18, 2019 8:39 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Questions and Comment on my most ambitious PiBeacon proj

The temp dir is at 100%.
It’s only 10 MBytes and only for short files.

Do
sudo rm /home/pi/pibeacon/temp/*

But first try
ls -l ....../temp

To see who the culprit is.


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 3 guests

cron