master^2
Bhaskar 9 months ago
parent de57e6c38b
commit 45565401a7

@ -1700,10 +1700,10 @@ eventEmitter.on(
const message =
`🚰 Motor Name: ${motorName}\n` +
`🚰 Tank Name: '${tankName}'\n` +
`🚰 Block Name: '${blockName}'\n` +
`🏢 Block Name: '${blockName}'\n` +
`👤 Started by: ${userNames}\n` +
`📱 Mode: '${startMethod}'\n` +
`🕒 Pump started at: ${startTime} (Time: ${formattedTime} on ${formattedDate})\n` +
`🕒 Pump started at: ${startTime} \n` +
`Will stop after: '${manual_threshold_time}' mins`;
// Send the notification
@ -1736,11 +1736,11 @@ eventEmitter.on(
// Prepare the message
const message =
`🚰 Motor Name: ${motorName}\n` +
`🚰 Tank Name: '${tankName}'\n` +
`🚰 Block Name: '${blockName}'\n` +
`🛢️ Tank Name: '${tankName}'\n` +
`🏢 Block Name: '${blockName}'\n` +
`👤 Stopped by: ${userNames}\n` +
`📱 Mode: '${stopMethod}'\n` +
`🕒 Pump stopped at: ${stopTime} (Time: ${formattedTime} on ${formattedDate})\n` +
`🕒 Pump stopped at: ${stopTime}\n` +
`💧 Total water pumped: ${totalWaterPumped} liters\n`; // Ensure this line is properly terminated
// Send the notification
@ -1774,11 +1774,11 @@ eventEmitter.on(
// Prepare the message
const message =
`🚰 Motor Name: ${motorName}\n` +
`🚰 Tank Name: '${tankName}'\n` +
`🚰 Block Name: '${blockName}'\n` +
`🛢️ Tank Name: '${tankName}'\n` +
`🏢 Block Name: '${blockName}'\n` +
`👤 Started by: '${startMethod}' \n` +
`📱 Mode: "Atomatic System" \n` +
`🕒 Pump started at: ${startTime} (Time: ${formattedTime} on ${formattedDate})\n` +
`🕒 Pump started at: ${startTime} \n` +
`Will stop after: '${threshold}' `;
// Send the notification
@ -1960,11 +1960,11 @@ eventEmitter.on(
// Prepare the notification message
const message =
`🚰 Motor Name: ${motorName}\n` +
`🚰 Tank Name: '${tankName}'\n` +
`🛢️ Tank Name: '${tankName}'\n` +
`🏢 Block Name: '${blockName}'\n` +
`👤 Started by: ${userNames}\n` +
`📱 Mode: '${startMethod}'\n` +
`🕒 Pump started at: ${startTime} (Time: ${formattedTime} on ${formattedDate})\n` +
`🕒 Pump started at: ${startTime} \n` +
stopConditionMessage; // Add only the relevant stop condition
// Send the notification
@ -2083,10 +2083,10 @@ eventEmitter.on(
// Prepare the notification message
const message =
`🚰 Motor Name: ${motorName}\n` +
`🚰 Tank Name: '${tankName}'\n` +
`🛢️ Tank Name: '${tankName}'\n` +
`🏢 Block Name: '${blockName}'\n` +
`📱 Mode: '${stopMethod}'\n` +
`🕒 Pump stopped at: ${stopTime} (Time: ${formattedTime} on ${formattedDate})\n` +
`🕒 Pump stopped at: ${stopTime}\n` +
stopConditionMessage;
// Send the notification
@ -3784,9 +3784,9 @@ const motorActionAuto = async (req, reply) => {
const stopMessage =
`🚰 Motor Name: ${tankName}-${blockName}-${typeOfWater}\n` +
`🚰 Tank Name: '${tankName}'\n` +
`🚰 Block Name: '${blockName}'\n` +
`🕒 Pump stopped at: ${stopTime} (Time: ${formattedTime} on ${formattedDate})\n` +
`🛢️ Tank Name: '${tankName}'\n` +
`🏢 Block Name: '${blockName}'\n` +
`🕒 Pump stopped at: ${stopTime}\n` +
`⏳ Operation Duration: ${threshold} `;
// Send stop notification

Loading…
Cancel
Save