Hi, is it possible to execute a rule every 1st day (01.04.16) (or every 1st monday e.g. (04.04.16) via pimatic? or is there a workaroung like for every weekday?
Thanks a lot!
-
every 1st of month
pimatic-google-calendar | pimatic-wmi | pimatic-snmp | pimatic-wakeonlan |
Like my work? Then consider a donation
Follow me: www.thorstenreichelt.de -
@thost96 According to https://github.com/pimatic/pimatic/issues/412 it should work, but I think it does not work for “months”, i.e. you cannot use “IF every 1 month”. What you can do is “IF every 30 days”.
EDIT:
There may be other ways of doing this.Having briefly discussed the matter with sweetpi, we came to the conclusion thatits "1st of month"
should work."It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Well, the question is, when does the action take place if using 1st of month. As I am thinking of the logic behind all, 1st of Month is when switching from last day of Month 23:59 to 0:00 to the 1st day then. So if this is true, 1st of nonth is a good choice to execute commands when the months are switching over, i.e. copy Energy Meter counters to a logfile or similar.
Last of Month would then be when switching over from 30. January to 31. January for example. But then a whole day is missing at whatever you want to do with the rule. Hope you understand what I meam.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
xCite86 has give me a workaround how you can start a rule the first day of month (or every day of month you want)
You can read this here:
-
yes, i know what you’re mean… hmm… that mean that the rule could only work in combination with timestamps well? or?
if its "first day of month 00:00" then xxx
or
if its "last day of month 23:59" then xxx
-
I have not tried it yet but you don’t need a timestamp when using it like
IF it is "1st of month THEN do some stuff...
the rule will be triggered when the last day passes 23:59:59 to the 1st day 0:00:000@sweetpi @mwittig or anybody else pls. correct me if I am wrong
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@xCite86’s example gives you the first day of the month.
This command gives the last day of the current month:
date -d "-$(date +%d) days +1 month" | cut -d " " -f3