add: You can switch in /config/config.js linesColorApi or GisLinesStatus , locally or remotely API-Endpoint-Function from Webservice

This commit is contained in:
ISA
2024-06-18 14:59:35 +02:00
parent 6c75b4e14b
commit ed48023abb
3 changed files with 51 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
// http://10.10.0.13/talas5/ClientData/WebServiceMap.asmx/GisStationsStatusDistrict
export default function handler(req, res) {
const linesColor = {
/* const linesColor = {
Statis: [
{
IdModul: 1,
@@ -32,6 +32,46 @@ export default function handler(req, res) {
Icon: 0,
},
],
}; */
const linesColor = {
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: "KÜG 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: "Kü705-FO",
Message: "KÜG 04: 42/13 Bad Hersfeld Gaswerk Messwerkausfall kommend",
Level: 4,
PrioColor: "#FF00FF",
PrioName: "system",
Value: "?",
},
],
};
res.status(200).json({ linesColor });