// await sendNotification(fcmTokens, 'Motor Started', `Motor ID: ${motorId} started successfully at ${timestamp}. Current Water Level: ${waterLevel} Ltrs`);
// const message = `Water supply from '${blockName}' to '${tankName}' started at ${startTime} by '${motorOnType}' mode and will stop after ${stopCriteria}. Current Water Level: ${waterLevel} Ltrs.`;
// const message = `Tank Name: '${tankName}', Pump started at '${startTime}' by Initiated by user(s): ${userNames} '${motorOnType}' and will stop after '${stopTime}'`;
constmessage=
`Tank Name: '${tankName}'\n`+
`Pump started at: '${startTime}'\n`+
`Initiated by user(s): ${userNames}\n`+
`Pump started by: '${motorOnType.toUpperCase()}'\n`+
`Will stop at: '${stopTime}'`;
// Send the notification
awaitsendNotification(fcmTokens,'Arminta Water Management',message);
}catch(error){
console.error('Error in motorStart event:',error);