diff --git a/status.js b/status.js index b7eebb6..74f16b8 100644 --- a/status.js +++ b/status.js @@ -24,6 +24,8 @@ const WATCHED_VEHICLES = [ "10-64-1", "10-03-1", "10-04-1", + "10-05-1", + "10-05-21", ]; // Intervall in ms @@ -53,7 +55,12 @@ async function hasStatusChanged(newData, oldData) { if (vehicle.fmsstatus_id != oldVehicle.fmsstatus_id || !oldVehicle) { // Divera Nachricht console.log("[INFO] Statusabfrage!"); - if (vehicle.fmsstatus_id == 6 || vehicle.fmsstatus_id == 2 || vehicle.fmsstatus_id == 3) { + if ( + vehicle.fmsstatus_id == 6 || + vehicle.fmsstatus_id == 2 || + vehicle.fmsstatus_id == 3 || + vehicle.fmsstatus_id == 4 + ) { // console.log(`Status Änderung: FL. AUR ${vehicle.name} Status ${vehicle.fmsstatus_id}`); await axios .post("https://app.divera247.com/api/v2/news?accesskey=" + process.env.divera_accesskey_aurich, {