piBeacon: presence monitoring plugin discussions

Posted on
Sat Sep 08, 2018 6:06 am
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

that is a warning... should be suppressed if rPi is disabled, will add in the next release

Karl

Posted on
Fri Sep 14, 2018 1:51 am
GlennNZ offline
Posts: 523
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Hi Karl,

Welcome back.

Couple of things to think on when have time

1. Any way of reporting ongoing communication with sensors. e.g data received; even if unchanged?

If sensor is changed - time of last update is recorded with lastSensorChange TimeDate

I would prefer timeAlive or checkReporting or something similar. e.g reported date even if unchanged

eg.
have a wifi rpi that often loses reception.
Sensor data is then unchanged - and it takes a while before I can tell whether it is because the rpi has lost connection or whether there hasn't been any sensor data change?

(Hopefully makes sense)

2. I have a MCP4725 here coming..
https://store.ncd.io/product/1-channel- ... -i%C2%B2c/
From these guys like some previous models.

Looks quite good as can output 0-10Volts and have a variable pool pump which allows speed control on this basis. (from 0-10V)

I note the plugin using input voltage and outs 0-3.3V - any suggestions for when it eventually arrives..

Thanks

Glenn

Posted on
Fri Sep 14, 2018 8:26 am
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

For the rpi i would use fingscan or UniFi to check if it is online.

Input output voltage are set to 3.3 bolt as those are the save limits for lost sensors and the rpi.

But you can simply scale it if the hardware allows it

Map 10v to 3.3 v






Sent from my iPhone using Tapatalk

Posted on
Fri Sep 28, 2018 5:15 pm
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: presence monitoring plugin discussions

just FYI for RPI 3 and POE: the older POE splitter do not work on the PRI 3B+. The power supply is fine. The ethernet connection does not negotiate:

Have found this on RPI3B+:https://www.reddit.com/r/raspberry_pi/comments/887czq/passive_poe_splitter_incompatible_with_pi_3b/
Code: Select all
sudo apt-get install ethtool
sudo ethtool -s eth0 speed 100 duplex half autoneg off
on switch:
set switch port to 100mbit half duplex

the new ones claim to work.
"UCTRONICS PoE Splitter Gigabit 5V - Micro USB Power and Ethernet to Raspberry >>>Pi 3B+<<<< , Work with Echo Dot, Most Micro USB Security Camera and Tablet - IEEE 802.3af Compliant"

One of of my raspberry shakes (earthquake detector) was flooded and died (10 inch an hour rain rate-- the box was tested in the pool for 5 minutes and it seemed to be ok.. but then came the real rain..) , ==> ordered a new RPI (B3+) and ... the the old POE splitter does not work..

Karl

Posted on
Sat Oct 13, 2018 8:20 pm
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

coming up:

all sensors will be either
std binary on/off sensors ( up --> True; down,expired = False)
== dev.StateON :iBeacon, INPUT GPIO, INUTtouch,
or analog dev.sensorValue
== temp, humidity, pressure, light (RGB< UV, IR, white ...) , input GPIO, distance, air quality, CO2, dust, ADC , CO, CH3, lightning, rain sensor

excluded (= customers device types) are still device types like CAR, gyroscopes, MAG direction, DISPLAY, etc

with this you should be able to use them in eg Homebridge or any other plugins that looks for std indigo i/o devices

still doing some testing

a little added parameter: in addition you can set different times for UP--> DOWN and DOWN--> EXPIRED second time is multiple of first time. : 1.5,2,2.5,3,4,5,7,10


Karl

ps will do the same for UNIFI

Posted on
Tue Oct 23, 2018 4:22 am
siclark offline
Posts: 829
Joined: Jun 13, 2017
Location: UK

Re: piBeacon: presence monitoring plugin discussions

Quick temperature sensor question. Will the Dallas one wire obes, or others, work over 10-20m of solid core cat6 through a patch panel and socket the other end, with socket and threaded wire connected to sensor and pi at each end?
Trying to take advantage of all the cat6 I have around the house. At least 4 runs to all bedrooms.


Sent from my iPhone using Tapatalk

Posted on
Tue Oct 23, 2018 7:57 am
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

I tried one with 10 meters and it worked.


I had 10 short connections connected and they did not work


If you have several do not twist signal wires but signal w ground. And v+ with ground.

There are some posting that discuss howto run the wires.

And you can use a lower resistor value (2 kohm ) that might help with long wires.

Also you can add a 1 uF capacitor v+grnd at the end of the cable at the sensor


Sent from my iPhone using Tapatalk

Posted on
Thu Nov 08, 2018 12:55 am
GlennNZ offline
Posts: 523
Joined: Dec 07, 2014
Location: Central Coast, Australia

piBeacon: presence monitoring plugin discussions

Hi Karl,

Missed a couple of versions and moved to 7.94.242 but is giving error message and failing to start

Code: Select all
   piBeacon Error                  --------------------------------------------------------------------------------------------------------------
   piBeacon Error                  Error in startup of plugin, waiting for 2000 secs then restarting plugin
   piBeacon Error                  in Line '292' has error=''Plugin' object has no attribute 'pr''
   piBeacon Error                  --------------------------------------------------------------------------------------------------------------

Unfortunately can’t into plugin config to set presumed missing config setting?

Defining self.pr in startup - fixes the issue for me, with
Code: Select all
self.pr = cProfile.Profile()


Also seems like the same code exists in the unifi-Plugin as well?
(as checked there for a fix first)

Thanks


Glenn

Posted on
Thu Nov 08, 2018 6:23 am
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

Glenn,

oops when variable : "enableTimeTracking_piBeacon" does not exist it fails.. was only testing with the variable present.. (on/off/""/print ..)

posting a fix ..

thanks for catching

Karl

Posted on
Thu Nov 08, 2018 6:40 am
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

posted new versions for
piBeacon, unifi, indigoplotd, utilities

with THAT error fixed.

Karl

Posted on
Tue Nov 13, 2018 1:28 am
GlennNZ offline
Posts: 523
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Hi Karl,

Sorry another small bug on saving PluginPrefs -- error line 7736 not such as debugdebugPlotPositions

[sorry - have fixed line 7736 and needed to restart server - updating to new mac mini...)

Line:7736
Code: Select all
      for d in ["Logic","DevMgmt","BeaconData","SensorData","OutputDevice","UpdateRPI","OfflineRPI","Fing","BLE","CAR","BC","all","Socket","Special","debugPlotPositions"]:
3

Removed the debug from debugPlotPositions - and all good.

G

Posted on
Tue Nov 13, 2018 9:00 am
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

should be fixed in v .244 (just released)

thanks for pointing it out

Karl

Posted on
Sat Jan 05, 2019 10:27 pm
GlennNZ offline
Posts: 523
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Hi and Happy New Year Karl,

Sometime recently your handling of Ip addresses appears to have broken the situation I have with one rpi which is using a seperate wifi usb connection (with antenna because of distance)

Code: Select all
pi@raspberrypi:~/pibeacon $ 20190106-15:19:27  master  IP find:::: wifiIP >><<; eth0IP: >><<;   hostnameIP >>['192.168.1.185']<<;   ipAddressRead >>192.168.1.185<<
20190106-15:19:40  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.185']<<  old from file ipAddressRead>>192.168.1.185<< not in sync with ifconfig output: wifi0IP>><<;   eth0IP>>
20190106-15:19:45  master  IP find:::: wifiIP >><<; eth0IP: >><<;   hostnameIP >>['192.168.1.185']<<;   ipAddressRead >>192.168.1.185<<
20190106-15:19:57  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.185']<<  old from file ipAddressRead>>192.168.1.185<< not in sync with ifconfig output: wifi0IP>><<;   eth0IP>>


Code: Select all
pi@raspberrypi:~/pibeacon $ 20190106-14:41:41  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.185']<<  old from file ipAddressRead>>192.168.1.185<< not in sync with ifconfig output: wifi0IP>><<;   eth0IP>>
20190106-14:41:41  master  rebooting / shutdown sudo killall -9 python; sudo sync;sleep 2; sudo reboot -f   reboot due to no IP nummber


Code: Select all
pi@raspberrypi:~/pibeacon $ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:c4:3e:e3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 29  bytes 4480 (4.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 29  bytes 4480 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.185  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ea4e:6ff:fe0c:3239  prefixlen 64  scopeid 0x20<link>
        ether e8:4e:06:0c:32:39  txqueuelen 1000  (Ethernet)
        RX packets 7466  bytes 2107274 (2.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1357  bytes 190701 (186.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


hopefully this gives you everything to track down.

thanks again,

Glenn

Posted on
Sat Jan 05, 2019 11:02 pm
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

I believe it is looking for wan0 not wlan1 (or lan0 not lan1)

will take me a minute to walk this through the logic and fix

Karl

Posted on
Sat Jan 05, 2019 11:24 pm
kw123 offline
User avatar
Posts: 6271
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

I have a fix, but hard to test .. I I could ask you?

on another note. just checked on my rpi3+ and ibeacon does not work anymore.. even with an external bye adapter.. no change for some time ..

there goes the weekend


Karl

Who is online

Users browsing this forum: No registered users and 1 guest