Rule monthly action

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
reddo
Normal user
Posts: 7
Joined: 15 Nov 2016, 01:02
Location: The Netherlands

Rule monthly action

#1 Post by reddo » 18 Nov 2018, 00:20

Trying to get my Sonoff to switch something on once a month for a day but will this work ?? Idea is the first of the month it's on for the entire day, the rest of the month it's not.

on %sysmonth%=1 do
gpio 12,1
endon

on %systmonth%!=1 do
gpio 12,0
endon

thanks !

Edit :

seems to work with the following (stupid me, shouldve used sysday of course, besides some code changing :evil: )

on Clock#Time do
if %sysday%=18
gpio 12,1
endif
endon

on Clock#Time do
if %sysday%!=18
gpio 12,0
endif
endon

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests