Send a data on a specific time from NodeMCU to Node-Red via MQTT using RTC

so i just have to use simple alarm rtc code, modify it using if else, include the mqtt connection and the publish code?