piBeacon: 3- presence monitoring download

Posted on
Fri Jan 01, 2021 8:13 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

1. added BLE sensors: xiaomi formaldehyde sensor (in mg/m**3 or ppm)
Screen Shot 2021-01-01 at 20.12.40.png
Screen Shot 2021-01-01 at 20.12.40.png (365.93 KiB) Viewed 5234 times

2. fixed bug that made BLE sensor devices not being active on RPi after comm disable/enable
3. added check if reset for min/max sensor values was already at 0 am - might have been done several times between 0 and 1 am
4. fixed typo for MoistureMinYesterday was MoistureeMinYesterday

Karl

Posted on
Fri Jan 08, 2021 9:03 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.134.492@ 2021-01-07
===================================================


1. fixed:
- piBeacon Error Line 6819 has error=list index out of range
in confirmdeviceIDINPUTBUTTONmenu

-pulse device:
reset of pulse / gpio input count was not reset
pulse device: calculation of counts/ xx
pulse devices now tested on RPI 4 for up to 1kHz pulse (min delta time between pulses is 1msec) down to 0.01 Hz pulses (1 every 100 secs)

beep beacon action: did not work, menu beep did work fine, one parameter was missing

2. added:
pulse / coincidence device:
maxCountperSecondInLastHour state
min/max count/min today & yesterday state for pulsepulse/coincidence device
counts/min*scalefactor state for pulse/coincidence device
==> you can now set the display to eg x [uS] (micro Sievert radioactivity) if you know frequency of pulse <-> radioactivity measured

Karl

Posted on
Sat Jan 16, 2021 12:28 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.134.501@ 2021-01-16
===================================================
Code: Select all
1. fixed:
   piBeacon Error                  Line 6819 has error=list index out of range
     in confirmdeviceIDINPUTBUTTONmenu
   pulse device:  reset of pulse / gpio input count was not reset
   pulse device: calculation of counts/ xx
   beep beacon action:  did not work, menu beep did work fine, one parameter was missing

2. added to pulse/coincidence device
   maxCountperSecondInLastHour state 
   min/max count/min today & yesterday state
   counts/min*scalefactor state for
   several more states
   made the number of digits dynamc in count/xx dev states to have at keast 3 significant numbers shown (that is equivalent to 0.1%)
     the number of significant digits can be set in dev edit

3. set compress data send to plugin to on if data len > 40kb as default. There seems to be a timeout .. issue with larger data.
   regular data is < 5Kb, larger data (h ad 128k) only happens for detect new beacons etc
   compress reduces most data by factor of >7
 
4. changed detect new beacons to use data aquired anyway with hcidump. so no data collection break during detect new beacons process
   that is not active for hci- socket data aquisition, as that does not deliver all package types, have to do hcidump do catch that data.

5. added beacon type nut v 45 and 46.
   the commands for battery and beep have changed with the new versions. The hardware looks identical

6. fixed negative temperatures for govee sensors


Karl

Posted on
Sun Jan 17, 2021 1:08 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

posted new SSD version (finally) it will require a 16GB SSD!
Code: Select all
https://www.dropbox.com/s/9uec57k1o07mm9i/2021-01-17-pibeacon-buster-img.zip?dl=1


this should fix the kernel panic on rpi0 ..

you will need to load plugin v .512 for this.

Karl

Posted on
Mon Feb 08, 2021 11:35 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.134.504@ 2021-02-08
===================================================

1. fixed dev state lables
2. added option to start any command from pibeacon
this is managed by the pibeacon master.py program
it will make sure the program launches, and stays up and running if requested
set in rpi device edit, eg
Screen Shot 2021-02-08 at 11.34.40.png
Screen Shot 2021-02-08 at 11.34.40.png (27.45 KiB) Viewed 5103 times

will make sure that ping ... will be running

Posted on
Sat Mar 06, 2021 12:26 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.135.507@ 2021-03-06
===================================================

1. --- only for experts: added option set IP number of RPI to fixed, set in rpi device edit
w/o the you initially set the ip number, but the rpi can chnage it eg switching between ethernet and wifi
w this option ON the rpi will always send the fixed IP number IN THE data, although it could use a differnt ip#
By enabling this YOU must make sure that the data arriving from the RPI comes from the defined fixed IP#
otherwise they will be rejected

2. added menu option to send just new pgm and config files, skipping fonts images etc
this will reduce bytes by factor 2 to be send to rpi, fonts and images have not changed for several years now


Karl

Posted on
Sun Mar 21, 2021 1:24 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.135.513@ 2021-03-21
===================================================

1. supports the latest SSD (march 20 2021)
2. added option to block any ip number accessing the indigo mac that does not have the same first 2 octets
to avoid ansering outside ip numbers from probing, they will just be ignored, no acknowledge packet is send
only works if mac and rpi have the same 2 octets, eg 192.168.x.y and 192,.1678.x.z would be accepted, but not 72.60.4.5
3. fixed group status memebrship for rpis, was ok for beacons


Karl

Posted on
Mon Mar 22, 2021 10:06 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.135.514@ 2021-03-22
===================================================

1. added variables for all PI, BLEconnect and beacon devices: # of devices home and away
this can be used to trigger if any change in # of devices home/away changes
this is in addition to the regular groups: Family, guests, other 1,2 3
these groups can be named as you like in plugin config


Karl

Posted on
Mon Mar 29, 2021 6:48 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.135.516@ 2021-03-29
===================================================

1. fixed error='key groupMember not found in dict'
is an issue only for non beacon type devices
2. added sensor SGP40, a VOC index sensor, returns values 0-500 depending on VOC content in air

Posted on
Wed May 05, 2021 5:00 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
Added features / changes in v7.135.520@ 2021-05-05
===================================================
1. fixed label for dev state: particles_100um ( was airquality) in control page and trigger page

Added features / changes in v7.135.519@ 2021-05-04
===================================================
1. added option for air quality sensors to set levels for air polution names in device edit

Added features / changes in v7.135.518@ 2021-05-04
===================================================
1. fixed average rollover at mid night  for sensors

Added features / changes in v7.135.517@ 2021-04-20
===================================================
1. moved execution of output commands to threads within receivecommands.py instead of calling another python progra execcommands.py
   this is accelerating the execution of eg relays up/down by 0.6 secs
2. changed setting of default values in plugin-config to  kDefaultPluginPrefs = {..} in plugin.py
   this will fix issues when a new parameters is set in the plugin, as indigo does not set defaults of  new properties in pluginconfig

Posted on
Thu May 27, 2021 10:57 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
Added features / changes in v7.136.521@ 2021-05-27
===================================================

1. added sensor type BLE inkBird Pool 01B ( not R!!) ~ $29 at amazon
   this is the first floating pool temperature sensors
   that can be read by indigo. The old pool temp sensor RFXcom from scientific  was discontinued
   to install: put batteries into inkbird, put it next to RPI;  menu / accept new beacons: select Inkbird
               After a minute a new beacon device should be created. That is just a regular ibeacon device.
               Now create a new indigo device "pibeacon / BLE-inkBird.." and copy the mac address from the ibeacon device into teh MAC field
               Select the RPI that is next to the pool, leave the other parameters as they are
                      (you could set the color of the sensor dot to different values)
2. small bug fixes for special circumstances

This the only floating pool thermometer that I know of that works w indigo. The old rfxcom are out of stock and the company does not exist any more. And mine died after 10+ years

It seems to work fine( after 5 days of floating in the pool) It has 2 AA batteries and send ble broadcasts, but not w temperature, that requires a connection
Code: Select all
sudo gatttool  --device=xx:xx:xx:xx:xx:xx --char-read --handle=0x0024

and returns 7 bytes, the first 2 are the tmp in little endian format *100 (lowest value bytes second)
Code: Select all
temp = int(result[1]+result[0],16)/100.

currently it does not do negative temps, but that should not happen in a pool anyway

Karl

Posted on
Thu Jun 17, 2021 4:58 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
Added features / changes in v7.136.528@ 2021-06-17
===================================================
   
1. maintenance release
   - fixed various smaller siuues, mostly for exceptions
   - small performance improvements


Posted on
Mon Jun 28, 2021 5:01 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v7.137.529@ 2021-06-28
===================================================
switch bot devices --- these device can be used to physically switch an apple mini power button
they can be set through BLE eg:

gatttool -b xx:xx:xx:xx:xx --char-write-req -t random --handle=0x16 --value=57101 or 57102 for off and on

the rpi gets the command from indigo and sends these commands to the SwitchBot

Code: Select all
1. added support for switch bot devices
   they have to be "associated" to a single RPi in device edit
   you need to first find the MAC # either through detect new beacons or through iphone app
   then create switch bot indigo device add mac# and select RPi that is closest to device
   rest should be left at default
   then the device will behave like a relay
   you can set the "hold" time with the iphone app
 
2. fixed issue with inkbird pool temp sensor


next will be remote commands (through vpn or ssh or web interface) .
currently it only through indigo (or iPhone when in local network. w/o it it does not help when the indigo server is off to switch the indigo server on/off.
you could install their mini box that translates from BLE to wifi and access it remotely, but I am not fan of having things from other vendors allowing access to my network


Karl

Posted on
Tue Jun 29, 2021 9:25 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
Added features / changes in v7.137.531@ 2021-06-29
===================================================
   
1. added support for switch bot temperature humidity display / sensor
2. added batterylevel & version states for switchbot bot


Karl

Posted on
Fri Jul 02, 2021 10:07 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: 3- presence monitoring download

Added features / changes in v7.137.533@ 2021-07-02
===================================================

1. switch bot now supports remote commands through ssh (ie iphone short cuts)
ssh pi@ ip# password then
echo '{"mac#":"xx:xx:xx:xx:xx","onOff":"1"}' > /home/pi/pibeacon/temp/switchbot.cmd

1. create shortcut
2. name it anything you like
add action: ssh (use find function)
fill out like shown below with the ip# of your rpi, userid =pi, password = your rpi password
replace the mac # with your switch bot mac # (use uppercase letters (A instead of a)
save, done

click on shortcut, it might ask you if you want to connect (only the first time)
then your switch bot short work

to use it over vpn
first start vpn, then click on shortcut, then wait , then disable vpn, will check if vpn activation can be added to the shortcut


Karl
Attachments
Screen Shot 2021-07-02 at 23.06.20.png
Screen Shot 2021-07-02 at 23.06.20.png (219.94 KiB) Viewed 4476 times

Who is online

Users browsing this forum: No registered users and 9 guests

cron