You can use an inject node and a very simple function node.
[{"id":"8a7ca794.3fa14","type":"function","z":"f954564f.03e718","name":"is tomorrow the 1st?","func":"let date = new Date(msg.payload+86400000); //create a date object from the timestamp plus one day\nlet day = date.getDate(); //get the corresponding day\nif(day==1){ //check if tomorrow is the 1st\n return msg;\n}else{\n return null; //else do nothing\n}","outputs":1,"noerr":0,"x":440,"y":3840,"wires":[["26e1d7e1.e15c5"]]},{"id":"67f730c5.493e6","type":"inject","z":"f954564f.03e718","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"50 23 * * *","once":false,"onceDelay":0.1,"x":230,"y":3840,"wires":[["8a7ca794.3fa14"]]},{"id":"26e1d7e1.e15c5","type":"debug","z":"f954564f.03e718","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":3840,"wires":[]}]
A timestamp is injected at 23:50 everyday and we than check in a function if tomorrow is the first, otherwise we return nothing:
let date = new Date(msg.payload+86400000); //create a date object from the timestamp plus one day
let day = date.getDate(); //get the corresponding day
if(day==1){ //check if tomorrow is the 1st
return msg;
}else{
return null; //else do nothing
}
Johannes