<aside> 💡 THE STARTING POINT (actually the template is completed and usable for all different cases):

Cron-Plus function for AddShift.json

</aside>

<aside> 💡 This function shall be place on a server up and running 24/7 or at least before machines get turned on.

</aside>


  1. Install Cron-Plus…
  2. The flow starts with a manual insertion of a timestamp and the cron-plus function for regular shift insertion, whenever the customer lets its shift begin.

Untitled

  1. Connect both to the shift function:
msg.payload = {
  "timestamp_ms": Date.now(),
  "timestamp_ms_end": Date.now()+28800000
}
msg.topic = "ia/factoryinsight/dccaachen/warping/addShift"
return msg;
  1. After that you just need a regular MQTT-OUT node building a connection to your server.