Weekly schedule executes every day

Posted on
Mon Mar 01, 2021 2:49 am
jaknudsen offline
User avatar
Posts: 41
Joined: Nov 16, 2015

Weekly schedule executes every day

I get an e-mail every day from this schedule, when I only want the schedule to happen on Mondays. I can't see what I am doing wrong. Any help is appreciated :)

Screenshot 2021-03-01 at 09.44.12.png
Screenshot 2021-03-01 at 09.44.12.png (477.11 KiB) Viewed 3696 times

Screenshot 2021-03-01 at 09.44.41.png
Screenshot 2021-03-01 at 09.44.41.png (424.57 KiB) Viewed 3696 times

Screenshot 2021-03-01 at 09.44.55.png
Screenshot 2021-03-01 at 09.44.55.png (386.89 KiB) Viewed 3696 times

Posted on
Mon Mar 01, 2021 4:11 am
CliveS offline
Posts: 761
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Weekly schedule executes every day

Just wrap your embedded battery script with

Code: Select all
Today = indigo.server.getTime().strftime("%A")
if str(Today) == "Monday":
   indigo.server.log(" Day of Week is " + str(Today)) # Line can be removed

   # Put your battery script here

else:
   pass   

and let it run every day, it will only send on Mondays

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Mon Mar 01, 2021 5:02 am
colin_d offline
Posts: 34
Joined: Nov 08, 2014
Location: East Sussex

Re: Weekly schedule executes every day

I think you've inadvertently selected every day except Monday in the 'Days of week' boxes.
Easily done as it defaults to all selected to start with, I always have to double check when I use this.
:D

Posted on
Mon Mar 01, 2021 8:22 am
jaknudsen offline
User avatar
Posts: 41
Joined: Nov 16, 2015

Re: Weekly schedule executes every day

colin_d wrote:
I think you've inadvertently selected every day except Monday in the 'Days of week' boxes.

Thank you, that sounds like a plausible explanation! … If it wasn't for the fact that I received an email today (Monday). I'll try to select/deselect and see what happens tomorrow. May I ask; how do you double check? :lol:

(And also thanks for the suggestion @CliveS, but I'd like to learn why my schedule settings aren't working to my expectations.)

Posted on
Mon Mar 01, 2021 9:11 am
CliveS offline
Posts: 761
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Weekly schedule executes every day

jaknudsen wrote:
colin_d wrote:
I think you've inadvertently selected every day except Monday in the 'Days of week' boxes.

Thank you, that sounds like a plausible explanation! … If it wasn't for the fact that I received an email today (Monday). I'll try to select/deselect and see what happens tomorrow. May I ask; how do you double check? :lol:

(And also thanks for the suggestion @CliveS, but I'd like to learn why my schedule settings aren't working to my expectations.)


Take a look at the Date section of
[url]https://wiki.indigodomo.com/doku.php?id=indigo_7.5_documentation:overview&s[]=schedule#schedules[/url]

Absolute days of the week - execute only on certain days of the week (not that darkened days are selected, lightened aren't)

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Mon Mar 01, 2021 9:13 am
colin_d offline
Posts: 34
Joined: Nov 08, 2014
Location: East Sussex

Re: Weekly schedule executes every day

Hi, not sure why it ran today!
If you look at your main schedules page, under 'Description' it shows the days/times the action will run.
I had to remember where I'd seen that!
Colin
Attachments
Screenshot 2021-03-01 at 14.59.52.png
Screenshot 2021-03-01 at 14.59.52.png (34.7 KiB) Viewed 3634 times

Posted on
Mon Mar 01, 2021 10:22 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Weekly schedule executes every day

Yep, the standard macOS behavior for those buttons is dark=ON and light=OFF.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Mar 01, 2021 1:13 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Weekly schedule executes every day

Just my 2¢ but darker, grayed out buttons should be the non-selected buttons.

Carl

Posted on
Mon Mar 01, 2021 1:36 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Weekly schedule executes every day

ckeyes888 wrote:
Just my 2¢ but darker, grayed out buttons should be the non-selected buttons.


As I said, the behavior is what's built-in to macOS - we didn't change anything about that behavior. Given the somewhat radical changes to the UI in the intervening years, it's likely that if we were using newer controls the behavior would be different, but changing look & feel feels like a much lower priority than everything else on the feature request list.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Mar 02, 2021 1:22 pm
jaknudsen offline
User avatar
Posts: 41
Joined: Nov 16, 2015

Re: Weekly schedule executes every day

The schedule didn't run today, hooray!

And blame can in no way be put on Indigo here, they are following macOS design guidelines and have even clarified it in their docs. Great job!

I did however note a small typo …

execute only on certain days of the week (not that darkened days are selected, lightened aren't)

I think not should be note here.

Posted on
Tue Mar 02, 2021 1:32 pm
CliveS offline
Posts: 761
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Weekly schedule executes every day

jaknudsen wrote:
I think not should be note here.

Yes I did notice that but thought it was one of those strange 'American English' words that they mispell like aluminium, neighbour and colour. :mrgreen:

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests