add: add linescolor from API

This commit is contained in:
ISA
2024-06-18 15:35:32 +02:00
parent ed48023abb
commit 07f343e25a
2 changed files with 53 additions and 3 deletions

View File

@@ -2,7 +2,55 @@
// http://10.10.0.13/talas5/ClientData/WebServiceMap.asmx/GisStationsStatusDistrict
export default function handler(req, res) {
/* const linesColor = {
const response = {
Name: "Liste aller Statis der Linien",
Zeitstempel: new Date().toISOString(), // Aktuellen Zeitstempel hinzufügen
IdMap: "10",
Statis: [
{
IdLD: 25440,
Modul: 1,
DpName: "KUE01_Ausfall",
ModulName: "42 Wippershain Sender",
ModulTyp: "nicht vorhanden",
Message: "KUEG 01: 42 Wippershain Sender Messwerkausfall kommend",
Level: 4,
PrioColor: "#FF00FF",
PrioName: "system",
Value: "?",
},
{
IdLD: 25440,
Modul: 3,
DpName: "KUE03_Ausfall",
ModulName: "42 Solz Sender",
ModulTyp: "nicht vorhanden",
Message: "KUEG 03: 42 Solz Sender Messwerkausfall kommend",
Level: 4,
PrioColor: "#FF00FF",
PrioName: "system",
Value: "?",
},
{
IdLD: 25440,
Modul: 4,
DpName: "KUE04_Ausfall",
ModulName: "42/13 Bad Hersfeld Gaswerk",
ModulTyp: "Kue705-FO",
Message: "KUEG 04: 42/13 Bad Hersfeld Gaswerk Messwerkausfall kommend",
Level: 4,
PrioColor: "#FF00FF",
PrioName: "system",
Value: "?",
},
],
};
res.status(200).json(response);
}
/* export default function handler(req, res) {
const linesColor = {
Statis: [
{
IdModul: 1,
@@ -32,7 +80,7 @@ export default function handler(req, res) {
Icon: 0,
},
],
}; */
};
const linesColor = {
Statis: [
{
@@ -75,4 +123,4 @@ export default function handler(req, res) {
};
res.status(200).json({ linesColor });
}
} */