chore(eslint): ignore irregular whitespace in comments (keep rule strict for code)
This commit is contained in:
@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=false
|
NEXT_PUBLIC_EXPORT_STATIC=false
|
||||||
NEXT_PUBLIC_USE_CGI=false
|
NEXT_PUBLIC_USE_CGI=false
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.697
|
NEXT_PUBLIC_APP_VERSION=1.6.698
|
||||||
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=true
|
NEXT_PUBLIC_EXPORT_STATIC=true
|
||||||
NEXT_PUBLIC_USE_CGI=true
|
NEXT_PUBLIC_USE_CGI=true
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.697
|
NEXT_PUBLIC_APP_VERSION=1.6.698
|
||||||
NEXT_PUBLIC_CPL_MODE=production
|
NEXT_PUBLIC_CPL_MODE=production
|
||||||
@@ -31,6 +31,15 @@
|
|||||||
"react-hooks/exhaustive-deps": "warn",
|
"react-hooks/exhaustive-deps": "warn",
|
||||||
"react/react-in-jsx-scope": "off",
|
"react/react-in-jsx-scope": "off",
|
||||||
"@next/next/no-img-element": "warn",
|
"@next/next/no-img-element": "warn",
|
||||||
"react/no-unescaped-entities": "warn"
|
"react/no-unescaped-entities": "warn",
|
||||||
|
"no-irregular-whitespace": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"skipComments": true,
|
||||||
|
"skipStrings": true,
|
||||||
|
"skipTemplates": true,
|
||||||
|
"skipRegExps": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
29
CHANGELOG.md
29
CHANGELOG.md
@@ -1,3 +1,32 @@
|
|||||||
|
## [1.6.698] – 2025-08-12
|
||||||
|
|
||||||
|
- fetchCableData.mjs
|
||||||
|
Sends Authorization: Basic <base64(user:pass)> with configurable credentials.
|
||||||
|
Accepts --user and --pass, or env CPL_USER/CPL_PASS; defaults to Littwin/Littwin.
|
||||||
|
Uses an https.Agent({ rejectUnauthorized: false }) when --insecure is set.
|
||||||
|
Corrected output folder to cable-monitoring-data.
|
||||||
|
CLI parser supports both --key=value and --key value (PowerShell friendly).
|
||||||
|
Quick usage (PowerShell)
|
||||||
|
|
||||||
|
All 32 slots, both types (iso=3, rsl=4), all DIA modes, last 30 days:
|
||||||
|
npm run mocks:cable
|
||||||
|
Specific date range (e.g., 2025-07-13 to 2025-08-12), all slots and types:
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --from 2025-07-13 --to 2025-08-12 --insecure
|
||||||
|
Only slot 0, Isolationswiderstand, DIA1:
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --modes DIA1 --types iso --from 2025-07-13 --to 2025-08-12 --insecure
|
||||||
|
Provide credentials explicitly:
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --user Littwin --pass Littwin --insecure
|
||||||
|
Or via environment variables for the session:
|
||||||
|
$env:CPL_USER = "Littwin"; $env:CPL_PASS = "Littwin"
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --insecure
|
||||||
|
Output structure
|
||||||
|
|
||||||
|
mocks/device-cgi-simulator/cable-monitoring-data/slot{0..31}/
|
||||||
|
isolationswiderstand/DIA0.json, DIA1.json, DIA2.json
|
||||||
|
schleifenwiderstand/DIA0.json, DIA1.json, DIA2.json
|
||||||
|
I smoke-tested slot 0, DIA1, iso with login and it produced DIA1.json under slot0/isolationswiderstand. If you need me to also add a convenience npm script with user/pass placeholders, say the credentials source you prefer (env vs args), and I’ll wire it.
|
||||||
|
|
||||||
|
---
|
||||||
## [1.6.697] – 2025-08-12
|
## [1.6.697] – 2025-08-12
|
||||||
|
|
||||||
- loop DatePicke
|
- loop DatePicke
|
||||||
|
|||||||
@@ -211,3 +211,37 @@ main().catch((e) => {
|
|||||||
console.error("Unerwarteter Fehler:", e);
|
console.error("Unerwarteter Fehler:", e);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
kann ich auch mit node die isolationswiderstand DIA0 bis DIA2 für den Slot 0 aufrufen
|
||||||
|
|
||||||
|
fetchCableData.mjs
|
||||||
|
:175
|
||||||
|
I’ll show the exact Node commands to fetch Isolationswiderstand (type 3) for slot 0 across DIA0–DIA2 with the new script.
|
||||||
|
|
||||||
|
Checklist
|
||||||
|
|
||||||
|
Slot 0 only
|
||||||
|
Type iso (Isolationswiderstand)
|
||||||
|
All modes DIA0, DIA1, DIA2
|
||||||
|
Optional explicit date range
|
||||||
|
Basic Auth + self-signed TLS
|
||||||
|
Run (last 30 days, all DIA modes)
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --types iso --insecure
|
||||||
|
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --types iso --insecure
|
||||||
|
Run with explicit date range (e.g., 2025-07-13 → 2025-08-12)
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --types iso --from 2025-07-13 --to 2025-08-12 --insecure
|
||||||
|
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --types iso --from 2025-07-13 --to 2025-08-12 --insecure
|
||||||
|
Add credentials explicitly (if needed)
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --types iso --from 2025-07-13 --to 2025-08-12 --user Littwin --pass Littwin --insecure
|
||||||
|
|
||||||
|
node .\mocks\scripts\fetchCableData.mjs --slots 0 --types iso --from 2025-07-13 --to 2025-08-12 --user Littwin --pass Littwin --insecure
|
||||||
|
Notes
|
||||||
|
|
||||||
|
By default, the script fetches all modes DIA0,DIA1,DIA2; you can restrict with: --modes DIA0,DIA1,DIA2.
|
||||||
|
Output goes to:
|
||||||
|
mocks/device-cgi-simulator/cable-monitoring-data/slot0/isolationswiderstand/DIA{0|1|2}.json
|
||||||
|
The --insecure flag accepts the device’s self‑signed certificate.
|
||||||
|
*/
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.697",
|
"version": "1.6.698",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.697",
|
"version": "1.6.698",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/roboto": "^5.1.0",
|
"@fontsource/roboto": "^5.1.0",
|
||||||
"@headlessui/react": "^2.2.4",
|
"@headlessui/react": "^2.2.4",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.697",
|
"version": "1.6.698",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user