min/max/ average plugin discussion

Posted on
Wed Feb 15, 2017 1:35 pm
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

The log output locks fine. No error messages
Can you try max instead of min.
Do you names have spaces? Can you try with a device that has no spaces?

I am out of town for 2 weeks. Will try to check remotely




Sent from my iPhone using Tapatalk

Posted on
Wed Feb 15, 2017 4:14 pm
Busta999 offline
User avatar
Posts: 714
Joined: Mar 30, 2016
Location: Wales UK

Re: min/max/ average plugin discussion

Will do thanks

Will report back

Much appreciated :-)

Mike

Posted on
Thu Feb 16, 2017 7:09 am
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

And could you post a screen shot of the device def page?


Sent from my iPhone using Tapatalk

Posted on
Thu Feb 16, 2017 7:34 am
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

And could you post a screen shot of the device def page?


Sent from my iPhone using Tapatalk

Posted on
Thu Feb 16, 2017 8:15 am
Busta999 offline
User avatar
Posts: 714
Joined: Mar 30, 2016
Location: Wales UK

Re: min/max/ average plugin discussion

Ok

I have tried to capture everything in one go
minMax - Oregon setup.jpeg
minMax - Oregon setup.jpeg (32.21 KiB) Viewed 3156 times
minMax Config.jpeg
minMax Config.jpeg (43.46 KiB) Viewed 3156 times
Oregon1 Temp Sensor.jpeg
Oregon1 Temp Sensor.jpeg (62.42 KiB) Viewed 3156 times


[img]
minMax%20-%20Oregon%20setup.jpeg
[/img]
[img]
minMax%20Config.jpeg
[/img]
[img]
Oregon1%20Temp%20Sensor.jpeg
[/img]

Code: Select all
minMax                          UiValuesDict : (dict)
     buttonCOnfirmdevstate :  (string)
     buttonConfirm :  (string)
     buttonRemove :  (string)
     device : 181303829 (string)
     ignoreGreater : +9876543210. (string)
     ignoreLess : -9876543210. (string)
     infoLabel1 :  (string)
     infoLabelParameters :  (string)
     lastDayAve : false (bool)
     lastDayDate : false (bool)
     lastDayMax : false (bool)
     lastDayMin : false (bool)
     lastHourAve : false (bool)
     lastHourDate : false (bool)
     lastHourMax : false (bool)
     lastHourMin : false (bool)
     lastMonthAve : false (bool)
     lastMonthDate : false (bool)
     lastMonthMax : false (bool)
     lastMonthMin : false (bool)
     lastWeekAve : false (bool)
     lastWeekDate : false (bool)
     lastWeekMax : false (bool)
     lastWeekMin : false (bool)
     showM : false (bool)
     state :  (string)
     thisDayAve : false (bool)
     thisDayDate : false (bool)
     thisDayMax : false (bool)
     thisDayMin : false (bool)
     thisHourAve : false (bool)
     thisHourDate : false (bool)
     thisHourMax : false (bool)
     thisHourMin : false (bool)
     thisMonthAve : false (bool)
     thisMonthDate : false (bool)
     thisMonthMax : false (bool)
     thisMonthMin : false (bool)
     thisWeekAve : false (bool)
     thisWeekDate : false (bool)
     thisWeekMax : false (bool)
     thisWeekMin : false (bool)
   minMax                          UiValuesDict : (dict)
     buttonCOnfirmdevstate :  (string)
     buttonConfirm :  (string)
     buttonRemove :  (string)
     device : 181303829 (string)
     ignoreGreater : +9876543210. (string)
     ignoreLess : -9876543210. (string)
     infoLabel1 :  (string)
     infoLabelParameters :  (string)
     lastDayAve : false (bool)
     lastDayDate : false (bool)
     lastDayMax : false (bool)
     lastDayMin : false (bool)
     lastHourAve : false (bool)
     lastHourDate : false (bool)
     lastHourMax : false (bool)
     lastHourMin : false (bool)
     lastMonthAve : false (bool)
     lastMonthDate : false (bool)
     lastMonthMax : false (bool)
     lastMonthMin : false (bool)
     lastWeekAve : false (bool)
     lastWeekDate : false (bool)
     lastWeekMax : false (bool)
     lastWeekMin : false (bool)
     showM : false (bool)
     state :  (string)
     thisDayAve : false (bool)
     thisDayDate : false (bool)
     thisDayMax : false (bool)
     thisDayMin : false (bool)
     thisHourAve : false (bool)
     thisHourDate : false (bool)
     thisHourMax : false (bool)
     thisHourMin : false (bool)
     thisMonthAve : false (bool)
     thisMonthDate : false (bool)
     thisMonthMax : false (bool)
     thisMonthMin : false (bool)
     thisWeekAve : false (bool)
     thisWeekDate : false (bool)
     thisWeekMax : false (bool)
     thisWeekMin : false (bool)

Posted on
Thu Feb 16, 2017 9:19 am
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

You need to select what to do: check at least one checkbox in define device
It looks as if nothing is selected.

You can select one or many min/max/average values :hour/day/...
If nothing is select it will not do anything


Sent from my iPhone using Tapatalk

Posted on
Thu Feb 16, 2017 9:32 am
Busta999 offline
User avatar
Posts: 714
Joined: Mar 30, 2016
Location: Wales UK

Re: min/max/ average plugin discussion

EXCELLENT !!!

WORKING NOW

I did not see the list below.

Only when you said on e of the boxes did it occur there should be more than one.

Thank you !!!

Mike

Posted on
Wed Nov 14, 2018 3:56 pm
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

nop.

will extend the visible part of the menu to make it clearer .

Karl

Posted on
Wed Nov 28, 2018 6:44 am
Seeker offline
Posts: 432
Joined: Aug 05, 2013

Re: min/max/ average plugin discussion

in configuration, i get 'error validating fields' when i click on for config.

what am i doing wrong?

minMax Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 154, in validatePrefsConfigUi
KeyError: key debugLevel not found in dict

Posted on
Wed Nov 28, 2018 9:34 am
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

fixed in v 7.6.4

Karl

Posted on
Fri Nov 30, 2018 6:09 am
Seeker offline
Posts: 432
Joined: Aug 05, 2013

Re: min/max/ average plugin discussion

thanks, 7.6.4 allowed enabling.

i do not see any variables under the minmax folder. i have sql logger running.

Posted on
Fri Nov 30, 2018 9:10 am
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

Could you post a screen shot of your menu setup for the selection of tracking devices?


Sent from my iPhone using Tapatalk

Posted on
Fri Nov 30, 2018 12:49 pm
Seeker offline
Posts: 432
Joined: Aug 05, 2013

Re: min/max/ average plugin discussion

does this help? if not i'll get the images.

Nov 30, 2018 at 12:23:18 PM
minMax /usr/bin/sqlite3 -separator ";" '/Library/Application Support/Perceptive Automation/Indigo 7.2/logs/indigo_history.sqlite' "select strftime('%Y-%m-%d-%H:%M:%S',ts,'localtime'), temperatureInput1 from device_history_857805275 where ts > '2018-09-30-00:03:17';"
minMax data-out: 2018-11-30-05:50:01;66.0
2018-11-30-05:55:49;66.0
2018-11-30-06:07:53;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:20;66.0
2018-11-30-09:51:39;65.0
2018-11-30-10:06:52;66.0
2018-11-30-10:22:50;65.0
2018-11-30-10:26:38;66.0

minMax err-out:
minMax ['2018-11-30-05:50:01', '66.0']
minMax variName Thermostat_temperatureInput1

Nov 30, 2018 at 12:28:18 PM
minMax /usr/bin/sqlite3 -separator ";" '/Library/Application Support/Perceptive Automation/Indigo 7.2/logs/indigo_history.sqlite' "select strftime('%Y-%m-%d-%H:%M:%S',ts,'localtime'), temperatureInput1 from device_history_857805275 where ts > '2018-09-30-00:03:17';"
minMax data-out: 2018-11-30-05:50:01;66.0
2018-11-30-05:55:49;66.0
2018-11-30-06:07:53;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:20;66.0
2018-11-30-09:51:39;65.0
2018-11-30-10:06:52;66.0
2018-11-30-10:22:50;65.0
2018-11-30-10:26:38;66.0

minMax err-out:
minMax ['2018-11-30-05:50:01', '66.0']
minMax variName Thermostat_temperatureInput1

Nov 30, 2018 at 12:33:18 PM
minMax /usr/bin/sqlite3 -separator ";" '/Library/Application Support/Perceptive Automation/Indigo 7.2/logs/indigo_history.sqlite' "select strftime('%Y-%m-%d-%H:%M:%S',ts,'localtime'), temperatureInput1 from device_history_857805275 where ts > '2018-09-30-00:03:17';"
minMax data-out: 2018-11-30-05:50:01;66.0
2018-11-30-05:55:49;66.0
2018-11-30-06:07:53;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:20;66.0
2018-11-30-09:51:39;65.0
2018-11-30-10:06:52;66.0
2018-11-30-10:22:50;65.0
2018-11-30-10:26:38;66.0

minMax err-out:
minMax ['2018-11-30-05:50:01', '66.0']
minMax variName Thermostat_temperatureInput1

Nov 30, 2018 at 12:38:18 PM
minMax /usr/bin/sqlite3 -separator ";" '/Library/Application Support/Perceptive Automation/Indigo 7.2/logs/indigo_history.sqlite' "select strftime('%Y-%m-%d-%H:%M:%S',ts,'localtime'), temperatureInput1 from device_history_857805275 where ts > '2018-09-30-00:03:17';"
minMax data-out: 2018-11-30-05:50:01;66.0
2018-11-30-05:55:49;66.0
2018-11-30-06:07:53;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:20;66.0
2018-11-30-09:51:39;65.0
2018-11-30-10:06:52;66.0
2018-11-30-10:22:50;65.0
2018-11-30-10:26:38;66.0

minMax err-out:
minMax ['2018-11-30-05:50:01', '66.0']
minMax variName Thermostat_temperatureInput1

Nov 30, 2018 at 12:43:19 PM
minMax /usr/bin/sqlite3 -separator ";" '/Library/Application Support/Perceptive Automation/Indigo 7.2/logs/indigo_history.sqlite' "select strftime('%Y-%m-%d-%H:%M:%S',ts,'localtime'), temperatureInput1 from device_history_857805275 where ts > '2018-09-30-00:03:17';"
minMax data-out: 2018-11-30-05:50:01;66.0
2018-11-30-05:55:49;66.0
2018-11-30-06:07:53;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:20;66.0
2018-11-30-09:51:39;65.0
2018-11-30-10:06:52;66.0
2018-11-30-10:22:50;65.0
2018-11-30-10:26:38;66.0

minMax err-out:
minMax ['2018-11-30-05:50:01', '66.0']

Posted on
Fri Nov 30, 2018 2:06 pm
kw123 offline
User avatar
Posts: 8042
Joined: May 12, 2013
Location: Dallas, TX

Re: min/max/ average plugin discussion

Need the screen print out. Or just restart the plugin. It will print the info.


Sent from my iPhone using Tapatalk

Posted on
Fri Nov 30, 2018 2:29 pm
Seeker offline
Posts: 432
Joined: Aug 05, 2013

Re: min/max/ average plugin discussion

thanks for looking at this.


Code: Select all
Nov 30, 2018 at 2:27:42 PM
   Reloading plugin "minMax 7.6.4"
   Stopping plugin "minMax 7.6.4" (pid 10760)
   minMax                          stopConcurrentThread called 1
   minMax                          stopConcurrentThread called 2
   Stopped plugin "minMax 7.6.4"
   Starting plugin "minMax 7.6.4" (pid 26656)
   Started plugin "minMax 7.6.4"
   minMax                          myLogSet setting parameters -- logFileActive= standard;  logFile= ;  debugLevel= ['Loop', 'Sql', 'Setup', 'all']; maxFileSize= 5000000
   minMax                          Configuration: Dev-Name    DevID            State       ignoreLess  ignoreGreater; tracking states: -------
   minMax                          Thermostat          ; 857805275 ; temperatureInput1      -9876543210      9876543210
   minMax                          first-Date:  2018-09-30-00:27:47
   minMax                          date-limits: [['2018-11-30-14:00:00', '2018-11-30-15:00:00'], ['2018-11-30-13:00:00', '2018-11-30-14:00:00'], ['2018-11-30-00:00:00', '2018-12-01-00:00:00'], ['2018-11-29-00:00:00', '2018-11-30-00:00:00'], ['2018-11-26-00:00:00', '2018-12-01-14:27:47'], ['2018-11-19-00:00:00', '2018-11-26-00:00:00'], ['2018-10-31-00:00:00', '2018-12-01-14:27:47'], ['2018-10-01-00:00:00', '2018-10-31-00:00:00'], ['2018-11-23-00:00:00', '2018-11-30-14:27:47']]
   minMax                          /usr/bin/sqlite3  -separator ";" '/Library/Application Support/Perceptive Automation/Indigo 7.2/logs/indigo_history.sqlite' "select strftime('%Y-%m-%d-%H:%M:%S',ts,'localtime'), temperatureInput1 from device_history_857805275  where ts > '2018-09-30-00:27:47';"
   minMax                          data-out: 2018-11-30-05:50:01;66.0
2018-11-30-05:55:49;66.0
2018-11-30-06:07:53;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:18;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:19;66.0
2018-11-30-07:28:20;66.0
2018-11-30-09:51:39;65.0
2018-11-30-10:06:52;66.0
2018-11-30-10:22:50;65.0
2018-11-30-10:26:38;66.0

   minMax                          err-out: 
   minMax                          ['2018-11-30-05:50:01', '66.0']
   minMax                          variName Thermostat_temperatureInput1



Who is online

Users browsing this forum: No registered users and 10 guests

cron