BigTimer as a "window"

Hi, probably I am overthinking this or it is not even possible at all.

I currently use the time range node to determine during a certain time to block the flow.

I wanted to do this more extended to also block the flow during some “months” (winter). So I decided to use Bigtimer. But I have no success in just using it as an “in flow” node.
I had configured it to do not do certain actions during winter a this night actions started :see_no_evil:.

This is the node config:

[{“id”:“12e6b7e0.3e3fd8”,“type”:“bigtimer”,“z”:“80438958.3845e8”,“outtopic”:“”,“outpayload1”:“”,“outpayload2”:“”,“name”:“April-September”,“comment”:“”,“lat”:“52”,“lon”:“4”,“starttime”:“0”,“endtime”:“0”,“starttime2”:0,“endtime2”:0,“startoff”:“15”,“endoff”:0,“startoff2”:0,“endoff2”:0,“offs”:0,“outtext1”:“”,“outtext2”:“”,“timeout”:1440,“sun”:true,“mon”:true,“tue”:true,“wed”:true,“thu”:true,“fri”:true,“sat”:true,“jan”:false,“feb”:false,“mar”:false,“apr”:true,“may”:true,“jun”:true,“jul”:true,“aug”:true,“sep”:true,“oct”:false,“nov”:false,“dec”:false,“day1”:0,“month1”:0,“day2”:0,“month2”:0,“day3”:0,“month3”:0,“day4”:0,“month4”:0,“day5”:0,“month5”:0,“day6”:0,“month6”:0,“day7”:0,“month7”:0,“day8”:0,“month8”:0,“day9”:0,“month9”:0,“day10”:0,“month10”:0,“day11”:0,“month11”:0,“day12”:0,“month12”:0,“d1”:0,“w1”:0,“d2”:0,“w2”:0,“d3”:0,“w3”:0,“d4”:0,“w4”:0,“d5”:0,“w5”:0,“d6”:0,“w6”:0,“xday1”:0,“xmonth1”:0,“xday2”:0,“xmonth2”:0,“xday3”:0,“xmonth3”:0,“xday4”:0,“xmonth4”:0,“xday5”:0,“xmonth5”:0,“xday6”:0,“xmonth6”:0,“xday7”:“”,“xmonth7”:“”,“xday8”:“”,“xmonth8”:“”,“xday9”:“”,“xmonth9”:“”,“xday10”:“”,“xmonth10”:“”,“xday11”:“”,“xmonth11”:“”,“xday12”:“”,“xmonth12”:“”,“xd1”:0,“xw1”:0,“xd2”:0,“xw2”:0,“xd3”:0,“xw3”:0,“xd4”:0,“xw4”:0,“xd5”:0,“xw5”:0,“xd6”:0,“xw6”:0,“suspend”:false,“random”:false,“randon1”:true,“randoff1”:false,“randon2”:false,“randoff2”:false,“repeat”:false,“atstart”:false,“odd”:false,“even”:false,“x”:2060,“y”:1400,“wires”:[,,]}]

Is this possible with bigtimer?

I am not able to import your code to nodered as there seems some syntax issues. But from what you have said instead of big timer, you can use a function node like below to cut the payloads in specific months. i have given the details within function code.If anything please ask.

[{"id":"df738e6b.48bf","type":"function","z":"51045e07.bbf87","name":"","func":"var today = new Date();\nif( today.getMonth() == 4 || today.getMonth() == 5 ) {\nreturn null;}\nelse {\nreturn msg;}\n\n//To select months, please change \"4\" and \"5\" with the integers\n//of specific months as shown below. you can add more month by\n//copy pasting the \"|| today.getMonth() == 5\" in if condition\n\n//0 = january\n//1 = feb\n//.....\n//11 = dec\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":460,"y":220,"wires":[["1e6cd87a.8e0e88"]]}]

Hi, thank you for you quick reply!

Yes that is the one option, to use a function node to delimit certain months. I have to admit I like “visual” coding (hence node red :-)) more than cli coding and would still like to know if what I want to acheive is possible with bigtimer.

So not to to use bigtimer as a trigger but only as a “in between node”.

If not possible at all I will have to use a function…

EDIT: Ok I went the function route…

But I keep getting the output although I think I did it right…?

[{“id”:“316070b3.8c2768”,“type”:“function”,“z”:“80438958.3845e8”,“name”:“Allow May-September”,“func”:“var today = new Date();\nif( today.getMonth() == 5 || today.getMonth() == 6 || today.getMonth() == 7 || today.getMonth() == 8 || today.getMonth() == 9 ) {\nreturn null;}\nelse {\nreturn msg;}\n\n//To select months, please change "4" and "5" with the integers\n//of specific months as shown below. you can add more month by\n//copy pasting the "|| today.getMonth() == 5" in if condition\n\n//0 = january\n//1 = feb\n//…\n//11 = dec\n”,“outputs”:1,“noerr”:0,“initialize”:“”,“finalize”:“”,“x”:1920,“y”:1180,“wires”:[[“f0325b1.c8846a8”]]},{“id”:“58fdc8b3.55cdf”,“type”:“inject”,“z”:“80438958.3845e8”,“name”:“on”,“props”:[{“p”:“payload”}],“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“topic”:“”,“payload”:“on”,“payloadType”:“str”,“x”:1730,“y”:1240,“wires”:[[“316070b3.8c2768”,“44bc4a37.a98b94”]]},{“id”:“f0325b1.c8846a8”,“type”:“debug”,“z”:“80438958.3845e8”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“statusVal”:“”,“statusType”:“auto”,“x”:2130,“y”:1180,“wires”:},{“id”:“44bc4a37.a98b94”,“type”:“debug”,“z”:“80438958.3845e8”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“statusVal”:“”,“statusType”:“auto”,“x”:2130,“y”:1240,“wires”:}]