piBeacon: presence monitoring plugin discussions

Posted on
Sat Sep 08, 2018 6:06 am
kw123 offline
User avatar
Posts: 5920
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: 440
Joined: Dec 07, 2014

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: 5920
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: 5920
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: 5920
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: 536
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: 5920
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: 440
Joined: Dec 07, 2014

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: 5920
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: 5920
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: 440
Joined: Dec 07, 2014

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: 5920
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

Who is online

Users browsing this forum: No registered users and 1 guest

cron