piBeacon: presence monitoring plugin discussions
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
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
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: piBeacon: presence monitoring plugin discussions
I don't understand the question.
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
"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 (26.2 KiB) Viewed 3722 times
-
- Screen Shot 2018-01-05 at 21.48.23.png (32.66 KiB) Viewed 3723 times
Re: piBeacon: presence monitoring plugin discussions
Great. Well done and thanks Karl. Must have missed this message yesterday.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
Hope you had a good New Year!
Glenn
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: piBeacon: presence monitoring plugin discussions
I believe we have that on the request list, but I'll make sure it's there.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
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.
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
Sent from my iPhone using Tapatalk
Re: piBeacon: presence monitoring plugin discussions
Glenn,
new plugin released on git hub with your requests.
Karl
new plugin released on git hub with your requests.
Karl
Re: piBeacon: presence monitoring plugin discussions
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)kw123 wrote:Glenn,
new plugin released on git hub with your requests.
Karl
Thanks again.
Glenn
Re: piBeacon: presence monitoring plugin discussions
Thanks for checking.
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
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.
Then
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
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, '')
Code: Select all
t.strftime('%x')+' '+t.strftime('%X')
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
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
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
Re: piBeacon: presence monitoring plugin discussions
Thanks.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
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
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
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
Re: piBeacon: presence monitoring plugin discussions
coming up:
IR camera (AMG88x33 ) images, triggers .. images available in the plugin
IR camera (AMG88x33 ) images, triggers .. images available in the plugin
- Attachments
-
- Screen Shot 2018-01-25 at 20.33.36.png (170.3 KiB) Viewed 3382 times
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
calcPostion in Line '9143' has error='float division by zero'
JP