Page 66 of 78
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sat Sep 08, 2018 6:06 am
by kw123
that is a warning... should be suppressed if rPi is disabled, will add in the next release
Karl
Re: piBeacon: presence monitoring plugin discussions
Posted:
Fri Sep 14, 2018 1:51 am
by GlennNZ
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Fri Sep 14, 2018 8:26 am
by kw123
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
piBeacon: presence monitoring plugin discussions
Posted:
Fri Sep 28, 2018 5:15 pm
by kw123
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sat Oct 13, 2018 8:20 pm
by kw123
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Tue Oct 23, 2018 4:22 am
by siclark
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Tue Oct 23, 2018 7:57 am
by kw123
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
piBeacon: presence monitoring plugin discussions
Posted:
Thu Nov 08, 2018 12:55 am
by GlennNZ
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Thu Nov 08, 2018 6:23 am
by kw123
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Thu Nov 08, 2018 6:40 am
by kw123
posted new versions for
piBeacon, unifi, indigoplotd, utilities
with THAT error fixed.
Karl
Re: piBeacon: presence monitoring plugin discussions
Posted:
Tue Nov 13, 2018 1:28 am
by GlennNZ
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Tue Nov 13, 2018 9:00 am
by kw123
should be fixed in v .244 (just released)
thanks for pointing it out
Karl
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sat Jan 05, 2019 10:27 pm
by GlennNZ
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sat Jan 05, 2019 11:02 pm
by kw123
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
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sat Jan 05, 2019 11:24 pm
by kw123
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