piBeacon: presence monitoring plugin discussions

Posted on
Fri Jan 05, 2018 4:20 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Fri Jan 05, 2018 5:58 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: piBeacon: presence monitoring plugin discussions

I don't understand the question.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jan 05, 2018 9:50 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

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 3036 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 3037 times

Posted on
Sat Jan 06, 2018 5:49 am
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Sat Jan 06, 2018 1:10 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Sat Jan 06, 2018 2:07 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

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


Sent from my iPhone using Tapatalk

Posted on
Sun Jan 07, 2018 12:25 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

Glenn,

new plugin released on git hub with your requests.


Karl

Posted on
Wed Jan 10, 2018 4:39 am
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Wed Jan 10, 2018 9:37 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

Thanks for checking.


Sent from my iPhone using Tapatalk

Posted on
Sat Jan 13, 2018 11:29 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

piBeacon: presence monitoring plugin discussions

Hi Karl

Thanks for everything - seemingly going well.

How up are you to further suggestions???

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

Posted on
Sun Jan 14, 2018 8:38 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Sun Jan 14, 2018 2:09 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Sun Jan 14, 2018 7:32 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

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

Posted on
Thu Jan 25, 2018 8:35 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

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 2696 times

Posted on
Sat Jan 27, 2018 10:03 am
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: piBeacon: presence monitoring plugin discussions

A heads up, latest version has this error:

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

JP

Page 63 of 78 1 ... 60, 61, 62, 63, 64, 65, 66 ... 78

Who is online

Users browsing this forum: No registered users and 3 guests

cron