piBeacon: presence monitoring plugin discussions

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

to JAY/MATT

why can the non custom states / properties not be used in iTouch pages? or how can they be used? e.g. description , lastChanged etc?

before I add extra states, I would like to know if there is an option to do it, or if it is planned or not at all.

thanks

Karl
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by jay (support) »

I don't understand the question.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

when setting up an iTouch page there is not option to show
"dev.lastChanged"
only "device.states["xxx"] are available, where xxx are the regular and custom states, no access to property "lastChanged"

it would be nice to be able to show dev.lastChanged on the page with the value of e.g. sensor data (temp, rain,...)


Karl
Attachments
Screen Shot 2018-01-05 at 21.50.40.png
Screen Shot 2018-01-05 at 21.50.40.png (26.2 KiB) Viewed 3724 times
Screen Shot 2018-01-05 at 21.48.23.png
Screen Shot 2018-01-05 at 21.48.23.png (32.66 KiB) Viewed 3725 times
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

kw123 wrote:Glenn,

temp, hum,press, air quality have now min/max today and yesterday coded.
also temp,... states are now numbers.

Still need to do some debugging with number of digits shown (decimal places for raw values )
this might create increased updates for indigo due to rounding differences. e.g. 24.00000001 C should be compared to 24.00 C. That is much easier with strings
for pressure that is different as it has MANY scales mB, TORR, inch HG .. Pascal ...

but it looks good .

Karl
Great. Well done and thanks Karl. Must have missed this message yesterday.
Hope you had a good New Year!
Glenn
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by jay (support) »

kw123 wrote:when setting up an iTouch page there is not option to show
"dev.lastChanged"
only "device.states["xxx"] are available, where xxx are the regular and custom states, no access to property "lastChanged"

it would be nice to be able to show dev.lastChanged on the page with the value of e.g. sensor data (temp, rain,...)l
I believe we have that on the request list, but I'll make sure it's there.

FYI, a much better place to put this type of request would be in the Plugin SDK forum rather than on one of your topics.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Yes to other forum ... Was just a request posted by a user here.


Sent from my iPhone using Tapatalk
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Glenn,

new plugin released on git hub with your requests.


Karl
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

kw123 wrote:Glenn,

new plugin released on git hub with your requests.


Karl
Great, thanks Karl. Have been giving it a whirl and all seems to be working really well. (Was giving 48 hours to check updating of yesterday min’s etc)
Thanks again.
Glenn
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Thanks for checking.


Sent from my iPhone using Tapatalk
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

Hi Karl

Thanks for everything - seemingly going well.

How up are you to further suggestions??? Image Image

For Example:
- Using locale to set default time/date preferences e.g Day/Month/Year version Month/Day/Year particularly
with locale.

Code: Select all

import locale
#set locale to user default locale
 locale.setlocale(locale.LC_ALL, '')
Then

Code: Select all

t.strftime('%x')+' '+t.strftime('%X')
To get the default locale specific date and time format?
Which for me gives:
14/01/2018 16:24:22

It is a relatively minor thing (and haven't changed all my plugins yet) but didn't realise was relatively easy to do.

(Edit: although for some reason I yet to debug it does not seem to be consistently applied )


Glenn
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Have think about it. The date is also used to decide time actions
So messing with date stamps is a little more involved.
If we go this route I would prefer to have a variable set in config were the user can define the date string eg like this :
%y-%m-%d %H:%M:%S
Then you can do anything you like. But I still need to check the time comparisons.



Sent from my iPhone using Tapatalk

also
state eg "created" is only touched once. ==> set up a change method to all states with different date time stamp defs,
the state column has a sub string " up/down/expired month-day HH:HH:SS" to indicate last time status was changed, in a shortened form. the number of blanks is not constant and as this column uses variable length font the number of blanks is not simply a function of number characters.. allowing eg Jan instead of 01 would make that a little more challenging .. cool
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

kw123 wrote:Have think about it. The date is also used to decide time actions
So messing with date stamps is a little more involved.
If we go this route I would prefer to have a variable set in config were the user can define the date string eg like this :
%y-%m-%d %H:%M:%S
Then you can do anything you like. But I still need to check the time comparisons.



Sent from my iPhone using Tapatalk

also
state eg "created" is only touched once. ==> set up a change method to all states with different date time stamp defs,
the state column has a sub string " up/down/expired month-day HH:HH:SS" to indicate last time status was changed, in a shortened form. the number of blanks is not constant and as this column uses variable length font the number of blanks is not simply a function of number characters.. allowing eg Jan instead of 01 would make that a little more challenging .. cool
Thanks.
I think the user defined date is probably the right way to go (if possible)

Would only need to apply to LastUpdate new time field (so shouldn't have major time actions impact?)

(I am having inconsistent results with locale based %x- works if I run in a debugging console within indigo; but not without console)
Glenn
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

After looking at it I have decided against it.

Changing the date format for historical data is really messy. It is used in various decisions.
Mixing date formats would lead to unpredictable results and could lead to loosing (expiring) beacons ...

sorry

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

coming up:

IR camera (AMG88x33 ) images, triggers .. images available in the plugin
Attachments
Screen Shot 2018-01-25 at 20.33.36.png
Screen Shot 2018-01-25 at 20.33.36.png (170.3 KiB) Viewed 3384 times
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: piBeacon: presence monitoring plugin discussions

Post by roquej »

A heads up, latest version has this error:

calcPostion in Line '9143' has error='float division by zero'

JP
Post Reply

Return to “piBeacon”