diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index b09ceb9a..cd0f4bf3 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1710,10 +1710,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 @@ -1746,11 +1746,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 @@ -1784,11 +1784,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 @@ -1970,11 +1970,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 @@ -2093,10 +2093,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 @@ -3794,9 +3794,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