feat: automatische Moduserkennung für fetchAnalogInputsService.ts implementiert

- Modus wird anhand von window.location.hostname bestimmt
- Lokale Umgebung (localhost/127.0.0.1) nutzt Mock-API
- Produktionsumgebung lädt analogInputs.json via CGI
- Kein Bedarf mehr für manuelle .env-Konfiguration
This commit is contained in:
ISA
2025-07-09 09:59:53 +02:00
parent eca52f35cb
commit 340990573f
7 changed files with 85 additions and 51 deletions

View File

@@ -1,21 +1,63 @@
{
"win_analogInputsValues": [
4.771072, 5.665244, 0.005467, -0.007468, 0.000002, 0.000001, 0.000001,
0.000007
"126.630287",
"5.667177",
"-0.000531",
"0.012762",
"-0.000001",
"0.000009",
"-0.000002",
"-0.000012"
],
"win_analogInputsLabels": [
"AE 1",
"AE 2",
"AE 3",
"AE 4",
"AE 5",
"AE 6",
"AE 7",
"AE 8"
"'AE 1'",
"'Temperatur'",
"'AE 3'",
"'AE 4'",
"'AE 5'",
"'AE 6'",
"'AE 7'",
"'AE 8'"
],
"win_analogInputsOffset": [10.988, 0, 0, 0, 0, 0, 0, 0],
"win_analogInputsFactor": [11.988, 1, 1, 1, 1, 1, 1, 1],
"win_analogInputsUnits": ["V", "V", "V", "V", "mA", "mA", "mA", "mA"],
"win_analogInputsLoggerIntervall": [7, 10, 10, 10, 10, 10, 10, 10],
"win_analogInputsWeighting": [0, 0, 0, 0, 0, 0, 0, 0]
"win_analogInputsUnits": [
"'V'",
"'V'",
"'V'",
"'V'",
"'mA'",
"'mA'",
"'mA'",
"'mA'"
],
"win_analogInputsFactor": [
"21.999",
"1.000",
"1.000",
"1.000",
"1.000",
"1.000",
"1.000",
"1.000"
],
"win_analogInputsOffset": [
"21.999",
"0.000",
"0.000",
"0.000",
"0.000",
"0.000",
"0.000",
"0.000"
],
"win_analogInputsWeighting": ["0", "0", "0", "0", "0", "0", "0", "0"],
"win_analogInputsLoggerIntervall": [
"21",
"10",
"10",
"10",
"10",
"10",
"10",
"10"
]
}