Error message and RPI gone

Posted on
Mon Jan 15, 2018 5:56 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Error message and RPI gone

Hi.

Suddenly one of my rpi´s gone missing from indigo.
Its still on the network, i can ssh and ping it but the plugin doesnt see it

I get this error message:
Code: Select all
execUpdate in Line '8457' has error='global name 'beacons' is not defined'


any suggestions to how to enable it again in indigo?

Posted on
Mon Jan 15, 2018 10:49 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Error message and RPI gone

found it ..

should be "beacon" instead of "beacons"

the code only gets executed if rpi was set to be ignored (by eg deleting it ) and it is still alive..

fix: "unignore" the beacon with that MAC number.. or wait until fix comes out ~ 1 day

Karl

Posted on
Tue Jan 16, 2018 3:18 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

Installed the new version, everything works again.

Thank you. :D

Posted on
Tue Jan 16, 2018 4:04 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

Actually spoke to soon.
Dont know why but it rpi is deleted by the plugin.
Complains about device not being in database
Do i need to have SQL logger enable?

After the version upgrade it works fine, all the rpi´s showed up with status up.
the after a while the same rpi that disappears the first time is being deleted, the other rpi´s seems unaffected


Code: Select all
  piBeacon                         piUpToDate pi: 3  value:[u'updateParams']
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: beacon_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(1)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        calcPitoPidist in Line '1653' has error=''key id 1525001403 not found in database''
   piBeacon                        calcPitoPidist in Line '1653' has error=''key id 1525001403 not found in database''
   piBeacon                        calcPitoPidist in Line '1653' has error=''key id 1525001403 not found in database''
   piBeacon                        calcPitoPidist in Line '1639' has error=''key id 1525001403 not found in database''
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1525001403 not found in database''
   piBeacon                         pi3  RPI{u'ipNumberPiSendTo': u'10.0.1.24', u'sendToIndigoSecs': 20, u'piNumberReceived': u'3', u'sensorList': u'INPUTgpio-1*51602271,INPUTgpio-1*681585471,INPUTgpio-1*245139016,INPUTgpio-1*477371487,i2cBMExx*730045880*119,i2cBMExx*911065307*119,BLEconnect*1262913043,BLEconnect*1491846283,BLEconnect*1558047481,BLEconnect*1247531964,BLEconnect*1235386687,BLEconnect*292024323,BLEconnect*1040794210,BLEconnect*1886114080,DHTxx*64824930*25,DHTxx*1583156351*23,DHTxx*1934305895*23,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.24', u'piUpToDate': [u'updateParams', 'reboot'], u'piDevId': 1525001403, u'deltaTime2': 0.0858609676361084, u'output': {}, u'userIdPi': u'pi', u'deltaTime1': 0.22795605659484863, u'rssiOffset': 0, u'lastMessage': 1516138332.836011, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'INPUTgpio-1': {u'51602271': [{u'count': u'off', u'gpio': u'17', u'inpType': u'low'}], u'681585471': [{u'inpType': u'low', u'gpio': u'18', u'count': u'off'}], u'245139016': [{u'count': u'off', u'gpio': u'10', u'inpType': u'low'}], u'477371487': [{u'count': u'off', u'gpio': u'24', u'inpType': u'high'}]}, u'i2cBMExx': {u'730045880': u'', u'911065307': u''}, u'BLEconnect': {u'1262913043': u'F0:24:75:E1:59:D1', u'1491846283': u'18:34:51:40:4B:F1', u'1558047481': u'98:E0:D9:4A:E4:B2', u'1247531964': u'24:5B:A7:D0:80:1B', u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79', u'1040794210': u'24:5B:A7:B6:E4:35', u'1886114080': u'00:F4:B9:E7:16:59'}, u'DHTxx': {u'64824930': u'', u'1583156351': u'', u'1934305895': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'B8:27:EB:3A:A5:A1'}
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 1525001403 not found in database''
   piBeacon                        RPI:3 devid:1525001403 not in indigo, please restart plugin
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1525001403 not found in database''
   piBeacon                         pi3  RPI{u'ipNumberPiSendTo': u'10.0.1.24', u'sendToIndigoSecs': 20, u'piNumberReceived': u'3', u'sensorList': u'INPUTgpio-1*51602271,INPUTgpio-1*681585471,INPUTgpio-1*245139016,INPUTgpio-1*477371487,i2cBMExx*730045880*119,i2cBMExx*911065307*119,BLEconnect*1262913043,BLEconnect*1491846283,BLEconnect*1558047481,BLEconnect*1247531964,BLEconnect*1235386687,BLEconnect*292024323,BLEconnect*1040794210,BLEconnect*1886114080,DHTxx*64824930*25,DHTxx*1583156351*23,DHTxx*1934305895*23,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.24', u'piUpToDate': ['reboot'], u'piDevId': 1525001403, u'deltaTime2': 0.13265109062194824, u'output': {}, u'userIdPi': u'pi', u'deltaTime1': 0.22795605659484863, u'rssiOffset': 0, u'lastMessage': 1516138334.49987, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'INPUTgpio-1': {u'51602271': [{u'count': u'off', u'gpio': u'17', u'inpType': u'low'}], u'681585471': [{u'inpType': u'low', u'gpio': u'18', u'count': u'off'}], u'245139016': [{u'count': u'off', u'gpio': u'10', u'inpType': u'low'}], u'477371487': [{u'count': u'off', u'gpio': u'24', u'inpType': u'high'}]}, u'i2cBMExx': {u'730045880': u'', u'911065307': u''}, u'BLEconnect': {u'1262913043': u'F0:24:75:E1:59:D1', u'1491846283': u'18:34:51:40:4B:F1', u'1558047481': u'98:E0:D9:4A:E4:B2', u'1247531964': u'24:5B:A7:D0:80:1B', u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79', u'1040794210': u'24:5B:A7:B6:E4:35', u'1886114080': u'00:F4:B9:E7:16:59'}, u'DHTxx': {u'64824930': u'', u'1583156351': u'', u'1934305895': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'B8:27:EB:3A:A5:A1'}

   piBeacon                        setRPIonline in Line '8784' has error=''key id 1525001403 not found in database''
   piBeacon                         pi3  RPI{u'ipNumberPiSendTo': u'10.0.1.24', u'sendToIndigoSecs': 20, u'piNumberReceived': u'3', u'sensorList': u'INPUTgpio-1*51602271,INPUTgpio-1*681585471,INPUTgpio-1*245139016,INPUTgpio-1*477371487,i2cBMExx*730045880*119,i2cBMExx*911065307*119,BLEconnect*1262913043,BLEconnect*1491846283,BLEconnect*1558047481,BLEconnect*1247531964,BLEconnect*1235386687,BLEconnect*292024323,BLEconnect*1040794210,BLEconnect*1886114080,DHTxx*64824930*25,DHTxx*1583156351*23,DHTxx*1934305895*23,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.24', u'piUpToDate': [], u'piDevId': 1525001403, u'deltaTime2': 0.13265109062194824, u'output': {}, u'userIdPi': u'pi', u'deltaTime1': 0.22795605659484863, u'rssiOffset': 0, u'lastMessage': 1516138335.073288, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'INPUTgpio-1': {u'51602271': [{u'count': u'off', u'gpio': u'17', u'inpType': u'low'}], u'681585471': [{u'inpType': u'low', u'gpio': u'18', u'count': u'off'}], u'245139016': [{u'count': u'off', u'gpio': u'10', u'inpType': u'low'}], u'477371487': [{u'count': u'off', u'gpio': u'24', u'inpType': u'high'}]}, u'i2cBMExx': {u'730045880': u'', u'911065307': u''}, u'BLEconnect': {u'1262913043': u'F0:24:75:E1:59:D1', u'1491846283': u'18:34:51:40:4B:F1', u'1558047481': u'98:E0:D9:4A:E4:B2', u'1247531964': u'24:5B:A7:D0:80:1B', u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79', u'1040794210': u'24:5B:A7:B6:E4:35', u'1886114080': u'00:F4:B9:E7:16:59'}, u'DHTxx': {u'64824930': u'', u'1583156351': u'', u'1934305895': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'B8:27:EB:3A:A5:A1'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 3  B8:27:EB:3A:A5:A1  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-3', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-16 22:32:12', u'lastUp': 1516138335.07411, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        updateBeaconStates in Line '10667' has error=''key id 1811718834 not found in database'' indigoId:1811718834 ignore if beacon.. was just deleted
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 1811718834 not found in database''
   piBeacon                        RPI:3 devid:1811718834 not in indigo, please restart plugin
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                        fixConfig in Line '1696' has error=''key id 1811718834 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

16 Jan 2018 at 22:32:45

   piBeacon                         piUpToDate pi: 3  value:[u'updateParams']
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   Z-Wave                          received "Bryter - Pibeacon-3 - Kryploft" power load to 0.00 W
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)



16 Jan 2018 at 22:33:29
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 3  B8:27:EB:3A:A5:A1  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-3', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-16 22:32:15', u'lastUp': 1516138425.849637, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        fixConfig in Line '1696' has error=''key id 861638397 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0

16 Jan 2018 at 22:34:32
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 3  B8:27:EB:3A:A5:A1  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-3', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-16 22:33:45', u'lastUp': 1516138486.756553, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        fixConfig in Line '1696' has error=''key id 1900224090 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   Z-Wave                          received "Pir - Bad" status update is off
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 3  B8:27:EB:3A:A5:A1  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516138486.940535, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-3', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-16 22:34:46', u'lastUp': 1516138491.192337, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 747792234 not found in database''
   piBeacon                        RPI:3 devid:747792234 not in indigo, please restart plugin
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                         setting beacon:B8:27:EB:3A:A5:A1 to ignore as indigo device ID 747792234 does not exist
   Schedule                        Energi schedule
   piBeacon                        fixConfig in Line '1696' has error=''key id 747792234 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)



16 Jan 2018 at 22:35:59
   piBeacon                         setting beacon:B8:27:EB:3A:A5:A1 to ignore as indigo device ID 0 does not exist

16 Jan 2018 at 22:36:21
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 3  B8:27:EB:3A:A5:A1  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516138491.338926, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-3', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-16 22:34:51', u'lastUp': 1516138581.137885, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        fixConfig in Line '1696' has error=''key id 1494083975 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 3  B8:27:EB:3A:A5:A1  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-3', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-16 22:36:21', u'lastUp': 1516138585.710887, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_B8:27:EB:3A:A5:A1 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 3  3  B8:27:EB:3A:A5:A1
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 1601347608 not found in database''
   piBeacon                        RPI:3 devid:1601347608 not in indigo, please restart plugin
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                         setting beacon:B8:27:EB:3A:A5:A1 to ignore as indigo device ID 1601347608 does not exist
   piBeacon                        fixConfig in Line '1696' has error=''key id 1601347608 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.24
ssh: connect to host 10.0.1.24 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)



Posted on
Tue Jan 16, 2018 6:43 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Error message and RPI gone

1. sqllogger not used

2. The bug was "-" instead of an "_" when checking if device was successfully created - only happens if new RPI gets created (I changed name from using - to _ some time ago..) (*)
then none of the internal tables gets updated. .. then downhill


here the fixed version:
https://www.dropbox.com/s/1qly5diw0c2n7ky/piBeacon-v-7.78.195.zip?dl=1

if you could be so kind and check?


But there is still the question why the device was deleted in the first place...???

Karl

corrected: dev = indigo.devices[u"Pi_" + piMACSend]
was dev = indigo.devices[u"Pi-" + piMACSend]

Posted on
Wed Jan 17, 2018 10:03 am
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

I dont know why it was deleted..

A second rpi got deleted aswell..

Code: Select all
17 Jan 2018, 11:43:06
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:41:34', u'lastUp': 1516185786.863872, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        deleting device beaconDict: {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516185787.005949, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 982640794, u'fastDown': u'0', u'created': '2018-01-17 11:43:06', u'lastUp': 1516185786.96396, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        setRPIonline in Line '8784' has error=''key id 982640794 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [u'updateParams', 'reboot'], u'piDevId': 982640794, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516185792.69292, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        fixConfig in Line '1696' has error=''key id 982640794 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516185787.005949, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:43:06', u'lastUp': 1516185797.116275, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        setRPIonline in Line '8784' has error=''key id 256815068 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': ['reboot'], u'piDevId': 256815068, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516185797.380325, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        setRPIonline in Line '8784' has error=''key id 256815068 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [], u'piDevId': 256815068, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516185798.928311, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  256815068  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516185797.259835, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 256815068, u'fastDown': u'0', u'created': '2018-01-17 11:43:17', u'lastUp': 1516185798.929665, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 830577963 not found in database''
   piBeacon                        RPI:0 devid:830577963 not in indigo, please restart plugin
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.2
ssh: connect to host 10.0.1.2 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                        fixConfig in Line '1696' has error=''key id 830577963 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.2
ssh: connect to host 10.0.1.2 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:43:18', u'lastUp': 1516185946.843164, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 1946346103 not found in database''
   piBeacon                        RPI:0 devid:1946346103 not in indigo, please restart plugin
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1946346103 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': ['reboot'], u'piDevId': 1946346103, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516185951.316927, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                         setting beacon:00:1A:7D:DA:71:13 to ignore as indigo device ID 1946346103 does not exist
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1946346103 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [], u'piDevId': 1946346103, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516185954.830628, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  1946346103  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516185946.99378, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 1946346103, u'fastDown': u'0', u'created': '2018-01-17 11:45:46', u'lastUp': 1516185954.832088, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        fixConfig in Line '1696' has error=''key id 1530216718 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0


17 Jan 2018, 11:47:26
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:45:54', u'lastUp': 1516186046.204213, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1161446827 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [u'updateParams', 'reboot'], u'piDevId': 1161446827, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186054.106241, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        fixConfig in Line '1696' has error=''key id 1161446827 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516186046.346665, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:47:26', u'lastUp': 1516186056.48668, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1436009387 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': ['reboot'], u'piDevId': 1436009387, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186057.076457, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        setRPIonline in Line '8784' has error=''key id 1436009387 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [], u'piDevId': 1436009387, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186060.137111, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  1436009387  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516186056.639768, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 1436009387, u'fastDown': u'0', u'created': '2018-01-17 11:47:36', u'lastUp': 1516186060.138183, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 1838988918 not found in database''
   piBeacon                        RPI:0 devid:1838988918 not in indigo, please restart plugin
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.2
ssh: connect to host 10.0.1.2 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                        fixConfig in Line '1696' has error=''key id 1838988918 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.2
ssh: connect to host 10.0.1.2 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)



17 Jan 2018, 11:50:00
   Schedule                        Energi schedule
   Z-Wave                          sent "Bryter - Panelovn - Loftstue" off
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': u'down', u'updateSignalValuesSeconds': 0, u'updateFING': 1, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:47:40', u'lastUp': 1516186206.431106, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        fixConfig in Line '1696' has error=''key id 877306424 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   

   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:50:06', u'lastUp': 1516186212.330204, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 68621461 not found in database''
   piBeacon                        RPI:0 devid:68621461 not in indigo, please restart plugin
   piBeacon                        setRPIonline in Line '8784' has error=''key id 68621461 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': ['reboot'], u'piDevId': 68621461, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186219.50385, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                         setting beacon:00:1A:7D:DA:71:13 to ignore as indigo device ID 68621461 does not exist
   piBeacon                        fixConfig in Line '1696' has error=''key id 68621461 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0

17 Jan 2018, 11:51:14
   WUnderground Status             Latest data are older than data we already have. Skipping Wunderground Weather update.
   Z-Wave                          received "Termostat - Gulvvarme - Vaskerom" heat setpoint is 24.0 °C
   piBeacon                         setting beacon:00:1A:7D:DA:71:13 to ignore as indigo device ID 0 does not exist
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516186212.472542, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:50:12', u'lastUp': 1516186305.467018, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        setRPIonline in Line '8784' has error=''key id 32614230 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [u'updateParams', 'reboot'], u'piDevId': 32614230, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186311.218636, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        fixConfig in Line '1696' has error=''key id 32614230 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  0  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1516186305.609246, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-17 11:51:45', u'lastUp': 1516186315.773183, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        setRPIonline in Line '8784' has error=''key id 330613963 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': ['reboot'], u'piDevId': 330613963, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186315.923894, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        setRPIonline in Line '8784' has error=''key id 330613963 not found in database''
   piBeacon                         pi0  RPI{u'ipNumberPiSendTo': u'10.0.1.2', u'sendToIndigoSecs': 20, u'piNumberReceived': u'0', u'sensorList': u'BLEconnect*1235386687,BLEconnect*292024323,DHTxx*476661080*22,DHTxx*611085698*22,', u'piOnOff': '1', u'ipNumberPi': u'10.0.1.2', u'piUpToDate': [], u'piDevId': 330613963, u'deltaTime2': 0.020470142364501953, u'output': {u'OUTPUTgpio-1-ONoff': {u'1209614323': [{u'gpio': u'25', u'initialValue': u'-', u'outType': u'1'}]}}, u'userIdPi': u'pi', u'deltaTime1': -0.3304779529571533, u'rssiOffset': 0, u'lastMessage': 1516186317.575719, u'enableRebootCheck': u'restartLoop,-', u'passwordPi': u'Haugesund76', u'input': {u'BLEconnect': {u'1235386687': u'AC:1F:74:3F:78:FB', u'292024323': u'D4:A3:3D:53:81:79'}, u'DHTxx': {u'476661080': u'', u'611085698': u''}}, u'enableiBeacons': u'1', u'sensorRefreshSecs': 20, u'deltaChangedSensor': 5, u'piMAC': u'00:1A:7D:DA:71:13'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        beacons[piMACSend] 0  00:1A:7D:DA:71:13  330613963  {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 999999999999999.0, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 330613963, u'fastDown': u'0', u'created': '2018-01-17 11:51:55', u'lastUp': 1516186317.57711, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                         error ok if new / replaced RPI
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        deleting beacon: Pi_00:1A:7D:DA:71:13 replacing simple beacon with rPi model(2)
   piBeacon                        ------------------------------------------------------------------------------
   piBeacon                        creating new pi 3-- 0  0  00:1A:7D:DA:71:13
   piBeacon                        updateBeaconStates in Line '10667' has error=''key id 356391055 not found in database'' indigoId:356391055 ignore if beacon.. was just deleted
   piBeacon                        makeParametersFile in Line '11323' has error=''key id 356391055 not found in database''
   piBeacon                        RPI:0 devid:356391055 not in indigo, please restart plugin
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.2
ssh: connect to host 10.0.1.2 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                        fixConfig in Line '1696' has error=''key id 356391055 not found in database''
   piBeacon                        error normal if rpi has been deleted, removing from list: setting piDevId=0
   piBeacon                        setup pi response (1) message
spawn sftp -o ConnectTimeout=15 pi@10.0.1.2
ssh: connect to host 10.0.1.2 port 22: Connection refused

Connection closed


   piBeacon                        setup pi response (1) error   
expect: spawn id exp9 not open
    while executing
"expect "sftp>" {  send  "cd /home/pi/pibeacon \r" }"
    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParams.exp" line 27)

   piBeacon                         setting beacon:00:1A:7D:DA:71:13 to ignore as indigo device ID 0 does not exist




Have installed the new version. been running for a couple of hours. Looking good so far :)

Posted on
Wed Jan 17, 2018 10:05 am
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

The first rpi is a raspberry 3. the second is a version 1 with bluetooth dongle.

Posted on
Wed Jan 17, 2018 11:57 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Error message and RPI gone

are you still getting "not found" messages?
and " piBeacon updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'"
should not happen anymore.


==
?ssh: connect to host 10.0.1.2 port 22: Connection refused?
are an indication that your RPI is not in a good state. Change the reboot command to reboot-f in device edit .

and or just login and do once
Code: Select all
sudo killall -9 python; sync; sleep 2; sudo reboot -f

that might fix some issues with the ssd

Karl

ps.
my rpi1 is the most stable I have, have not touched it for ~ 2 years still running on the original OS, no crashes ...

Posted on
Wed Jan 17, 2018 12:57 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

No "not found" messages after the latest update.
Did the reboot -f on all the rpi´s

Seems like the latest update fixed the issues.


Thanks :)

Posted on
Wed Jan 17, 2018 12:59 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

?ssh: connect to host 10.0.1.2 port 22: Connection refused?


whats strange is that i have no issues with connecting to the rpi via terminal when this error message shows

Posted on
Wed Jan 17, 2018 2:20 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Error message and RPI gone

are you trying ssh from the same box ?

Posted on
Wed Jan 17, 2018 4:51 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

No,
Server is a mac mini.

I did ssh from my laptop

Posted on
Wed Jan 17, 2018 6:45 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Error message and RPI gone

can you try from the indigo server?
there might be an issue with the hosts file .. that the only thing I can think of

Posted on
Thu Jan 18, 2018 9:26 am
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Error message and RPI gone

Tried from the server.
no issues logging in from there, but everything is working perfect now.

If this issue shows up again i will try to ssh from the server.

Thanks again :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests