From dad62613f647c47d6f675a9be7df8c184184d08a Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 12:12:08 +0200 Subject: [PATCH 1/8] update packages --- interface/package.json | 2 +- mock-api/package.json | 16 +- mock-api/yarn.lock | 733 ++++++++++++++++++++++++++++++++++++++++- 3 files changed, 747 insertions(+), 4 deletions(-) diff --git a/interface/package.json b/interface/package.json index 02caa9ce3..349e90556 100644 --- a/interface/package.json +++ b/interface/package.json @@ -1,6 +1,6 @@ { "name": "EMS-ESP", - "version": "3.6.0", + "version": "3.6", "description": "build EMS-ESP WebUI", "homepage": "https://emsesp.github.io/docs", "author": "proddy", diff --git a/mock-api/package.json b/mock-api/package.json index 6b3347fa8..96f7d9146 100644 --- a/mock-api/package.json +++ b/mock-api/package.json @@ -1,4 +1,18 @@ { - "name": "mock-api", + "name": "api", + "version": "1.0.0", + "description": "mock api for EMS-ESP", + "author": "proddy", + "main": "server.js", + "scripts": { + "dev": "node --watch ./server.js localhost 3080", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "dependencies": { + "@msgpack/msgpack": "^2.8.0", + "compression": "^1.7.4", + "express": "^4.18.2", + "multer": "^1.4.5-lts.1" + }, "packageManager": "yarn@4.0.0-rc.53" } diff --git a/mock-api/yarn.lock b/mock-api/yarn.lock index 8e6afe184..ff64be4fd 100644 --- a/mock-api/yarn.lock +++ b/mock-api/yarn.lock @@ -5,8 +5,737 @@ __metadata: version: 8 cacheKey: 10 -"mock-api@workspace:.": +"@msgpack/msgpack@npm:^2.8.0": + version: 2.8.0 + resolution: "@msgpack/msgpack@npm:2.8.0" + checksum: d90ab780c2c96fa5af22f38e0b76871d7c77d06fcf40786b64ada4e0ae02e17b216b38a5505fb4b7d1c339d95caee0669f5ec9004a2b392ce0cbe16afdbd9333 + languageName: node + linkType: hard + +"accepts@npm:~1.3.5, accepts@npm:~1.3.8": + version: 1.3.8 + resolution: "accepts@npm:1.3.8" + dependencies: + mime-types: "npm:~2.1.34" + negotiator: "npm:0.6.3" + checksum: 67eaaa90e2917c58418e7a9b89392002d2b1ccd69bcca4799135d0c632f3b082f23f4ae4ddeedbced5aa59bcc7bdf4699c69ebed4593696c922462b7bc5744d6 + languageName: node + linkType: hard + +"api@workspace:.": version: 0.0.0-use.local - resolution: "mock-api@workspace:." + resolution: "api@workspace:." + dependencies: + "@msgpack/msgpack": "npm:^2.8.0" + compression: "npm:^1.7.4" + express: "npm:^4.18.2" + multer: "npm:^1.4.5-lts.1" languageName: unknown linkType: soft + +"append-field@npm:^1.0.0": + version: 1.0.0 + resolution: "append-field@npm:1.0.0" + checksum: afb50f5ff668af1cb66bc5cfebb55ed9a1d99e24901782ee83d00aed1a499835f9375a149cf27b17f79595ecfcc3d1de0cd5b020b210a5359c43eaf607c217de + languageName: node + linkType: hard + +"array-flatten@npm:1.1.1": + version: 1.1.1 + resolution: "array-flatten@npm:1.1.1" + checksum: e13c9d247241be82f8b4ec71d035ed7204baa82fae820d4db6948d30d3c4a9f2b3905eb2eec2b937d4aa3565200bd3a1c500480114cff649fa748747d2a50feb + languageName: node + linkType: hard + +"body-parser@npm:1.20.1": + version: 1.20.1 + resolution: "body-parser@npm:1.20.1" + dependencies: + bytes: "npm:3.1.2" + content-type: "npm:~1.0.4" + debug: "npm:2.6.9" + depd: "npm:2.0.0" + destroy: "npm:1.2.0" + http-errors: "npm:2.0.0" + iconv-lite: "npm:0.4.24" + on-finished: "npm:2.4.1" + qs: "npm:6.11.0" + raw-body: "npm:2.5.1" + type-is: "npm:~1.6.18" + unpipe: "npm:1.0.0" + checksum: 5f8d128022a2fb8b6e7990d30878a0182f300b70e46b3f9d358a9433ad6275f0de46add6d63206da3637c01c3b38b6111a7480f7e7ac2e9f7b989f6133fe5510 + languageName: node + linkType: hard + +"buffer-from@npm:^1.0.0": + version: 1.1.2 + resolution: "buffer-from@npm:1.1.2" + checksum: 0448524a562b37d4d7ed9efd91685a5b77a50672c556ea254ac9a6d30e3403a517d8981f10e565db24e8339413b43c97ca2951f10e399c6125a0d8911f5679bb + languageName: node + linkType: hard + +"busboy@npm:^1.0.0": + version: 1.6.0 + resolution: "busboy@npm:1.6.0" + dependencies: + streamsearch: "npm:^1.1.0" + checksum: bee10fa10ea58e7e3e7489ffe4bda6eacd540a17de9f9cd21cc37e297b2dd9fe52b2715a5841afaec82900750d810d01d7edb4b2d456427f449b92b417579763 + languageName: node + linkType: hard + +"bytes@npm:3.0.0": + version: 3.0.0 + resolution: "bytes@npm:3.0.0" + checksum: a2b386dd8188849a5325f58eef69c3b73c51801c08ffc6963eddc9be244089ba32d19347caf6d145c86f315ae1b1fc7061a32b0c1aa6379e6a719090287ed101 + languageName: node + linkType: hard + +"bytes@npm:3.1.2": + version: 3.1.2 + resolution: "bytes@npm:3.1.2" + checksum: a10abf2ba70c784471d6b4f58778c0beeb2b5d405148e66affa91f23a9f13d07603d0a0354667310ae1d6dc141474ffd44e2a074be0f6e2254edb8fc21445388 + languageName: node + linkType: hard + +"call-bind@npm:^1.0.0": + version: 1.0.2 + resolution: "call-bind@npm:1.0.2" + dependencies: + function-bind: "npm:^1.1.1" + get-intrinsic: "npm:^1.0.2" + checksum: ca787179c1cbe09e1697b56ad499fd05dc0ae6febe5081d728176ade699ea6b1589240cb1ff1fe11fcf9f61538c1af60ad37e8eb2ceb4ef21cd6085dfd3ccedd + languageName: node + linkType: hard + +"compressible@npm:~2.0.16": + version: 2.0.18 + resolution: "compressible@npm:2.0.18" + dependencies: + mime-db: "npm:>= 1.43.0 < 2" + checksum: 58321a85b375d39230405654721353f709d0c1442129e9a17081771b816302a012471a9b8f4864c7dbe02eef7f2aaac3c614795197092262e94b409c9be108f0 + languageName: node + linkType: hard + +"compression@npm:^1.7.4": + version: 1.7.4 + resolution: "compression@npm:1.7.4" + dependencies: + accepts: "npm:~1.3.5" + bytes: "npm:3.0.0" + compressible: "npm:~2.0.16" + debug: "npm:2.6.9" + on-headers: "npm:~1.0.2" + safe-buffer: "npm:5.1.2" + vary: "npm:~1.1.2" + checksum: 469cd097908fe1d3ff146596d4c24216ad25eabb565c5456660bdcb3a14c82ebc45c23ce56e19fc642746cf407093b55ab9aa1ac30b06883b27c6c736e6383c2 + languageName: node + linkType: hard + +"concat-stream@npm:^1.5.2": + version: 1.6.2 + resolution: "concat-stream@npm:1.6.2" + dependencies: + buffer-from: "npm:^1.0.0" + inherits: "npm:^2.0.3" + readable-stream: "npm:^2.2.2" + typedarray: "npm:^0.0.6" + checksum: 71db903c84fc073ca35a274074e8d26c4330713d299f8623e993c448c1f6bf8b967806dd1d1a7b0f8add6f15ab1af7435df21fe79b4fe7efd78420c89e054e28 + languageName: node + linkType: hard + +"content-disposition@npm:0.5.4": + version: 0.5.4 + resolution: "content-disposition@npm:0.5.4" + dependencies: + safe-buffer: "npm:5.2.1" + checksum: b7f4ce176e324f19324be69b05bf6f6e411160ac94bc523b782248129eb1ef3be006f6cff431aaea5e337fe5d176ce8830b8c2a1b721626ead8933f0cbe78720 + languageName: node + linkType: hard + +"content-type@npm:~1.0.4": + version: 1.0.5 + resolution: "content-type@npm:1.0.5" + checksum: 585847d98dc7fb8035c02ae2cb76c7a9bd7b25f84c447e5ed55c45c2175e83617c8813871b4ee22f368126af6b2b167df655829007b21aa10302873ea9c62662 + languageName: node + linkType: hard + +"cookie-signature@npm:1.0.6": + version: 1.0.6 + resolution: "cookie-signature@npm:1.0.6" + checksum: f4e1b0a98a27a0e6e66fd7ea4e4e9d8e038f624058371bf4499cfcd8f3980be9a121486995202ba3fca74fbed93a407d6d54d43a43f96fd28d0bd7a06761591a + languageName: node + linkType: hard + +"cookie@npm:0.5.0": + version: 0.5.0 + resolution: "cookie@npm:0.5.0" + checksum: aae7911ddc5f444a9025fbd979ad1b5d60191011339bce48e555cb83343d0f98b865ff5c4d71fecdfb8555a5cafdc65632f6fce172f32aaf6936830a883a0380 + languageName: node + linkType: hard + +"core-util-is@npm:~1.0.0": + version: 1.0.3 + resolution: "core-util-is@npm:1.0.3" + checksum: 9de8597363a8e9b9952491ebe18167e3b36e7707569eed0ebf14f8bba773611376466ae34575bca8cfe3c767890c859c74056084738f09d4e4a6f902b2ad7d99 + languageName: node + linkType: hard + +"debug@npm:2.6.9": + version: 2.6.9 + resolution: "debug@npm:2.6.9" + dependencies: + ms: "npm:2.0.0" + checksum: e07005f2b40e04f1bd14a3dd20520e9c4f25f60224cb006ce9d6781732c917964e9ec029fc7f1a151083cd929025ad5133814d4dc624a9aaf020effe4914ed14 + languageName: node + linkType: hard + +"depd@npm:2.0.0": + version: 2.0.0 + resolution: "depd@npm:2.0.0" + checksum: c0c8ff36079ce5ada64f46cc9d6fd47ebcf38241105b6e0c98f412e8ad91f084bcf906ff644cc3a4bd876ca27a62accb8b0fff72ea6ed1a414b89d8506f4a5ca + languageName: node + linkType: hard + +"destroy@npm:1.2.0": + version: 1.2.0 + resolution: "destroy@npm:1.2.0" + checksum: 0acb300b7478a08b92d810ab229d5afe0d2f4399272045ab22affa0d99dbaf12637659411530a6fcd597a9bdac718fc94373a61a95b4651bbc7b83684a565e38 + languageName: node + linkType: hard + +"ee-first@npm:1.1.1": + version: 1.1.1 + resolution: "ee-first@npm:1.1.1" + checksum: 1b4cac778d64ce3b582a7e26b218afe07e207a0f9bfe13cc7395a6d307849cfe361e65033c3251e00c27dd060cab43014c2d6b2647676135e18b77d2d05b3f4f + languageName: node + linkType: hard + +"encodeurl@npm:~1.0.2": + version: 1.0.2 + resolution: "encodeurl@npm:1.0.2" + checksum: e50e3d508cdd9c4565ba72d2012e65038e5d71bdc9198cb125beb6237b5b1ade6c0d343998da9e170fb2eae52c1bed37d4d6d98a46ea423a0cddbed5ac3f780c + languageName: node + linkType: hard + +"escape-html@npm:~1.0.3": + version: 1.0.3 + resolution: "escape-html@npm:1.0.3" + checksum: 6213ca9ae00d0ab8bccb6d8d4e0a98e76237b2410302cf7df70aaa6591d509a2a37ce8998008cbecae8fc8ffaadf3fb0229535e6a145f3ce0b211d060decbb24 + languageName: node + linkType: hard + +"etag@npm:~1.8.1": + version: 1.8.1 + resolution: "etag@npm:1.8.1" + checksum: 571aeb3dbe0f2bbd4e4fadbdb44f325fc75335cd5f6f6b6a091e6a06a9f25ed5392f0863c5442acb0646787446e816f13cbfc6edce5b07658541dff573cab1ff + languageName: node + linkType: hard + +"express@npm:^4.18.2": + version: 4.18.2 + resolution: "express@npm:4.18.2" + dependencies: + accepts: "npm:~1.3.8" + array-flatten: "npm:1.1.1" + body-parser: "npm:1.20.1" + content-disposition: "npm:0.5.4" + content-type: "npm:~1.0.4" + cookie: "npm:0.5.0" + cookie-signature: "npm:1.0.6" + debug: "npm:2.6.9" + depd: "npm:2.0.0" + encodeurl: "npm:~1.0.2" + escape-html: "npm:~1.0.3" + etag: "npm:~1.8.1" + finalhandler: "npm:1.2.0" + fresh: "npm:0.5.2" + http-errors: "npm:2.0.0" + merge-descriptors: "npm:1.0.1" + methods: "npm:~1.1.2" + on-finished: "npm:2.4.1" + parseurl: "npm:~1.3.3" + path-to-regexp: "npm:0.1.7" + proxy-addr: "npm:~2.0.7" + qs: "npm:6.11.0" + range-parser: "npm:~1.2.1" + safe-buffer: "npm:5.2.1" + send: "npm:0.18.0" + serve-static: "npm:1.15.0" + setprototypeof: "npm:1.2.0" + statuses: "npm:2.0.1" + type-is: "npm:~1.6.18" + utils-merge: "npm:1.0.1" + vary: "npm:~1.1.2" + checksum: 869ae89ed6ff4bed7b373079dc58e5dddcf2915a2669b36037ff78c99d675ae930e5fe052b35c24f56557d28a023bb1cbe3e2f2fb87eaab96a1cedd7e597809d + languageName: node + linkType: hard + +"finalhandler@npm:1.2.0": + version: 1.2.0 + resolution: "finalhandler@npm:1.2.0" + dependencies: + debug: "npm:2.6.9" + encodeurl: "npm:~1.0.2" + escape-html: "npm:~1.0.3" + on-finished: "npm:2.4.1" + parseurl: "npm:~1.3.3" + statuses: "npm:2.0.1" + unpipe: "npm:~1.0.0" + checksum: 635718cb203c6d18e6b48dfbb6c54ccb08ea470e4f474ddcef38c47edcf3227feec316f886dd701235997d8af35240cae49856721ce18f539ad038665ebbf163 + languageName: node + linkType: hard + +"forwarded@npm:0.2.0": + version: 0.2.0 + resolution: "forwarded@npm:0.2.0" + checksum: 29ba9fd347117144e97cbb8852baae5e8b2acb7d1b591ef85695ed96f5b933b1804a7fac4a15dd09ca7ac7d0cdc104410e8102aae2dd3faa570a797ba07adb81 + languageName: node + linkType: hard + +"fresh@npm:0.5.2": + version: 0.5.2 + resolution: "fresh@npm:0.5.2" + checksum: 64c88e489b5d08e2f29664eb3c79c705ff9a8eb15d3e597198ef76546d4ade295897a44abb0abd2700e7ef784b2e3cbf1161e4fbf16f59129193fd1030d16da1 + languageName: node + linkType: hard + +"function-bind@npm:^1.1.1": + version: 1.1.2 + resolution: "function-bind@npm:1.1.2" + checksum: 185e20d20f10c8d661d59aac0f3b63b31132d492e1b11fcc2a93cb2c47257ebaee7407c38513efd2b35cafdf972d9beb2ea4593c1e0f3bf8f2744836928d7454 + languageName: node + linkType: hard + +"get-intrinsic@npm:^1.0.2": + version: 1.2.1 + resolution: "get-intrinsic@npm:1.2.1" + dependencies: + function-bind: "npm:^1.1.1" + has: "npm:^1.0.3" + has-proto: "npm:^1.0.1" + has-symbols: "npm:^1.0.3" + checksum: aee631852063f8ad0d4a374970694b5c17c2fb5c92bd1929476d7eb8798ce7aebafbf9a34022c05fd1adaa2ce846d5877a627ce1986f81fc65adf3b81824bd54 + languageName: node + linkType: hard + +"has-proto@npm:^1.0.1": + version: 1.0.1 + resolution: "has-proto@npm:1.0.1" + checksum: eab2ab0ed1eae6d058b9bbc4c1d99d2751b29717be80d02fd03ead8b62675488de0c7359bc1fdd4b87ef6fd11e796a9631ad4d7452d9324fdada70158c2e5be7 + languageName: node + linkType: hard + +"has-symbols@npm:^1.0.3": + version: 1.0.3 + resolution: "has-symbols@npm:1.0.3" + checksum: 464f97a8202a7690dadd026e6d73b1ceeddd60fe6acfd06151106f050303eaa75855aaa94969df8015c11ff7c505f196114d22f7386b4a471038da5874cf5e9b + languageName: node + linkType: hard + +"has@npm:^1.0.3": + version: 1.0.4 + resolution: "has@npm:1.0.4" + checksum: c245f332fe78c7b6b8753857240ac12b3286f995f656a33c77e0f5baab7d0157e6ddb1c34940ffd2bffc51f75ede50cd8b29ff65c13e336376aca8cf3df58043 + languageName: node + linkType: hard + +"http-errors@npm:2.0.0": + version: 2.0.0 + resolution: "http-errors@npm:2.0.0" + dependencies: + depd: "npm:2.0.0" + inherits: "npm:2.0.4" + setprototypeof: "npm:1.2.0" + statuses: "npm:2.0.1" + toidentifier: "npm:1.0.1" + checksum: 0e7f76ee8ff8a33e58a3281a469815b893c41357378f408be8f6d4aa7d1efafb0da064625518e7078381b6a92325949b119dc38fcb30bdbc4e3a35f78c44c439 + languageName: node + linkType: hard + +"iconv-lite@npm:0.4.24": + version: 0.4.24 + resolution: "iconv-lite@npm:0.4.24" + dependencies: + safer-buffer: "npm:>= 2.1.2 < 3" + checksum: 6d3a2dac6e5d1fb126d25645c25c3a1209f70cceecc68b8ef51ae0da3cdc078c151fade7524a30b12a3094926336831fca09c666ef55b37e2c69638b5d6bd2e3 + languageName: node + linkType: hard + +"inherits@npm:2.0.4, inherits@npm:^2.0.3, inherits@npm:~2.0.3": + version: 2.0.4 + resolution: "inherits@npm:2.0.4" + checksum: cd45e923bee15186c07fa4c89db0aace24824c482fb887b528304694b2aa6ff8a898da8657046a5dcf3e46cd6db6c61629551f9215f208d7c3f157cf9b290521 + languageName: node + linkType: hard + +"ipaddr.js@npm:1.9.1": + version: 1.9.1 + resolution: "ipaddr.js@npm:1.9.1" + checksum: 864d0cced0c0832700e9621913a6429ccdc67f37c1bd78fb8c6789fff35c9d167cb329134acad2290497a53336813ab4798d2794fd675d5eb33b5fdf0982b9ca + languageName: node + linkType: hard + +"isarray@npm:~1.0.0": + version: 1.0.0 + resolution: "isarray@npm:1.0.0" + checksum: f032df8e02dce8ec565cf2eb605ea939bdccea528dbcf565cdf92bfa2da9110461159d86a537388ef1acef8815a330642d7885b29010e8f7eac967c9993b65ab + languageName: node + linkType: hard + +"media-typer@npm:0.3.0": + version: 0.3.0 + resolution: "media-typer@npm:0.3.0" + checksum: 38e0984db39139604756903a01397e29e17dcb04207bb3e081412ce725ab17338ecc47220c1b186b6bbe79a658aad1b0d41142884f5a481f36290cdefbe6aa46 + languageName: node + linkType: hard + +"merge-descriptors@npm:1.0.1": + version: 1.0.1 + resolution: "merge-descriptors@npm:1.0.1" + checksum: 5abc259d2ae25bb06d19ce2b94a21632583c74e2a9109ee1ba7fd147aa7362b380d971e0251069f8b3eb7d48c21ac839e21fa177b335e82c76ec172e30c31a26 + languageName: node + linkType: hard + +"methods@npm:~1.1.2": + version: 1.1.2 + resolution: "methods@npm:1.1.2" + checksum: a385dd974faa34b5dd021b2bbf78c722881bf6f003bfe6d391d7da3ea1ed625d1ff10ddd13c57531f628b3e785be38d3eed10ad03cebd90b76932413df9a1820 + languageName: node + linkType: hard + +"mime-db@npm:1.52.0, mime-db@npm:>= 1.43.0 < 2": + version: 1.52.0 + resolution: "mime-db@npm:1.52.0" + checksum: 54bb60bf39e6f8689f6622784e668a3d7f8bed6b0d886f5c3c446cb3284be28b30bf707ed05d0fe44a036f8469976b2629bbea182684977b084de9da274694d7 + languageName: node + linkType: hard + +"mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": + version: 2.1.35 + resolution: "mime-types@npm:2.1.35" + dependencies: + mime-db: "npm:1.52.0" + checksum: 89aa9651b67644035de2784a6e665fc685d79aba61857e02b9c8758da874a754aed4a9aced9265f5ed1171fd934331e5516b84a7f0218031b6fa0270eca1e51a + languageName: node + linkType: hard + +"mime@npm:1.6.0": + version: 1.6.0 + resolution: "mime@npm:1.6.0" + bin: + mime: cli.js + checksum: b7d98bb1e006c0e63e2c91b590fe1163b872abf8f7ef224d53dd31499c2197278a6d3d0864c45239b1a93d22feaf6f9477e9fc847eef945838150b8c02d03170 + languageName: node + linkType: hard + +"minimist@npm:^1.2.6": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 908491b6cc15a6c440ba5b22780a0ba89b9810e1aea684e253e43c4e3b8d56ec1dcdd7ea96dde119c29df59c936cde16062159eae4225c691e19c70b432b6e6f + languageName: node + linkType: hard + +"mkdirp@npm:^0.5.4": + version: 0.5.6 + resolution: "mkdirp@npm:0.5.6" + dependencies: + minimist: "npm:^1.2.6" + bin: + mkdirp: bin/cmd.js + checksum: 0c91b721bb12c3f9af4b77ebf73604baf350e64d80df91754dc509491ae93bf238581e59c7188360cec7cb62fc4100959245a42cfe01834efedc5e9d068376c2 + languageName: node + linkType: hard + +"ms@npm:2.0.0": + version: 2.0.0 + resolution: "ms@npm:2.0.0" + checksum: 0e6a22b8b746d2e0b65a430519934fefd41b6db0682e3477c10f60c76e947c4c0ad06f63ffdf1d78d335f83edee8c0aa928aa66a36c7cd95b69b26f468d527f4 + languageName: node + linkType: hard + +"ms@npm:2.1.3": + version: 2.1.3 + resolution: "ms@npm:2.1.3" + checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d + languageName: node + linkType: hard + +"multer@npm:^1.4.5-lts.1": + version: 1.4.5-lts.1 + resolution: "multer@npm:1.4.5-lts.1" + dependencies: + append-field: "npm:^1.0.0" + busboy: "npm:^1.0.0" + concat-stream: "npm:^1.5.2" + mkdirp: "npm:^0.5.4" + object-assign: "npm:^4.1.1" + type-is: "npm:^1.6.4" + xtend: "npm:^4.0.0" + checksum: 957c09956f3b7f79d8586cac5e2a50e9a5c3011eb841667b5e4590c5f31d9464f5b46aecd399c83e183a15b88b019cccf0e4fa5620db40bf16b9e3af7fab3ac6 + languageName: node + linkType: hard + +"negotiator@npm:0.6.3": + version: 0.6.3 + resolution: "negotiator@npm:0.6.3" + checksum: 2723fb822a17ad55c93a588a4bc44d53b22855bf4be5499916ca0cab1e7165409d0b288ba2577d7b029f10ce18cf2ed8e703e5af31c984e1e2304277ef979837 + languageName: node + linkType: hard + +"object-assign@npm:^4.1.1": + version: 4.1.1 + resolution: "object-assign@npm:4.1.1" + checksum: fcc6e4ea8c7fe48abfbb552578b1c53e0d194086e2e6bbbf59e0a536381a292f39943c6e9628af05b5528aa5e3318bb30d6b2e53cadaf5b8fe9e12c4b69af23f + languageName: node + linkType: hard + +"object-inspect@npm:^1.9.0": + version: 1.13.0 + resolution: "object-inspect@npm:1.13.0" + checksum: d64609c3738a916d4c6d8306436427bfab87d5a68c017306aee9e8ebf39c9c08e6619f8397e520a64ff9b8545a2dcee9f4704157020700e324ccd179bd5ef931 + languageName: node + linkType: hard + +"on-finished@npm:2.4.1": + version: 2.4.1 + resolution: "on-finished@npm:2.4.1" + dependencies: + ee-first: "npm:1.1.1" + checksum: 8e81472c5028125c8c39044ac4ab8ba51a7cdc19a9fbd4710f5d524a74c6d8c9ded4dd0eed83f28d3d33ac1d7a6a439ba948ccb765ac6ce87f30450a26bfe2ea + languageName: node + linkType: hard + +"on-headers@npm:~1.0.2": + version: 1.0.2 + resolution: "on-headers@npm:1.0.2" + checksum: 870766c16345855e2012e9422ba1ab110c7e44ad5891a67790f84610bd70a72b67fdd71baf497295f1d1bf38dd4c92248f825d48729c53c0eae5262fb69fa171 + languageName: node + linkType: hard + +"parseurl@npm:~1.3.3": + version: 1.3.3 + resolution: "parseurl@npm:1.3.3" + checksum: 407cee8e0a3a4c5cd472559bca8b6a45b82c124e9a4703302326e9ab60fc1081442ada4e02628efef1eb16197ddc7f8822f5a91fd7d7c86b51f530aedb17dfa2 + languageName: node + linkType: hard + +"path-to-regexp@npm:0.1.7": + version: 0.1.7 + resolution: "path-to-regexp@npm:0.1.7" + checksum: 701c99e1f08e3400bea4d701cf6f03517474bb1b608da71c78b1eb261415b645c5670dfae49808c89e12cea2dccd113b069f040a80de012da0400191c6dbd1c8 + languageName: node + linkType: hard + +"process-nextick-args@npm:~2.0.0": + version: 2.0.1 + resolution: "process-nextick-args@npm:2.0.1" + checksum: 1d38588e520dab7cea67cbbe2efdd86a10cc7a074c09657635e34f035277b59fbb57d09d8638346bf7090f8e8ebc070c96fa5fd183b777fff4f5edff5e9466cf + languageName: node + linkType: hard + +"proxy-addr@npm:~2.0.7": + version: 2.0.7 + resolution: "proxy-addr@npm:2.0.7" + dependencies: + forwarded: "npm:0.2.0" + ipaddr.js: "npm:1.9.1" + checksum: f24a0c80af0e75d31e3451398670d73406ec642914da11a2965b80b1898ca6f66a0e3e091a11a4327079b2b268795f6fa06691923fef91887215c3d0e8ea3f68 + languageName: node + linkType: hard + +"qs@npm:6.11.0": + version: 6.11.0 + resolution: "qs@npm:6.11.0" + dependencies: + side-channel: "npm:^1.0.4" + checksum: 5a3bfea3e2f359ede1bfa5d2f0dbe54001aa55e40e27dc3e60fab814362d83a9b30758db057c2011b6f53a2d4e4e5150194b5bac45372652aecb3e3c0d4b256e + languageName: node + linkType: hard + +"range-parser@npm:~1.2.1": + version: 1.2.1 + resolution: "range-parser@npm:1.2.1" + checksum: ce21ef2a2dd40506893157970dc76e835c78cf56437e26e19189c48d5291e7279314477b06ac38abd6a401b661a6840f7b03bd0b1249da9b691deeaa15872c26 + languageName: node + linkType: hard + +"raw-body@npm:2.5.1": + version: 2.5.1 + resolution: "raw-body@npm:2.5.1" + dependencies: + bytes: "npm:3.1.2" + http-errors: "npm:2.0.0" + iconv-lite: "npm:0.4.24" + unpipe: "npm:1.0.0" + checksum: 280bedc12db3490ecd06f740bdcf66093a07535374b51331242382c0e130bb273ebb611b7bc4cba1b4b4e016cc7b1f4b05a6df885a6af39c2bc3b94c02291c84 + languageName: node + linkType: hard + +"readable-stream@npm:^2.2.2": + version: 2.3.8 + resolution: "readable-stream@npm:2.3.8" + dependencies: + core-util-is: "npm:~1.0.0" + inherits: "npm:~2.0.3" + isarray: "npm:~1.0.0" + process-nextick-args: "npm:~2.0.0" + safe-buffer: "npm:~5.1.1" + string_decoder: "npm:~1.1.1" + util-deprecate: "npm:~1.0.1" + checksum: 8500dd3a90e391d6c5d889256d50ec6026c059fadee98ae9aa9b86757d60ac46fff24fafb7a39fa41d54cb39d8be56cc77be202ebd4cd8ffcf4cb226cbaa40d4 + languageName: node + linkType: hard + +"safe-buffer@npm:5.1.2, safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1": + version: 5.1.2 + resolution: "safe-buffer@npm:5.1.2" + checksum: 7eb5b48f2ed9a594a4795677d5a150faa7eb54483b2318b568dc0c4fc94092a6cce5be02c7288a0500a156282f5276d5688bce7259299568d1053b2150ef374a + languageName: node + linkType: hard + +"safe-buffer@npm:5.2.1": + version: 5.2.1 + resolution: "safe-buffer@npm:5.2.1" + checksum: 32872cd0ff68a3ddade7a7617b8f4c2ae8764d8b7d884c651b74457967a9e0e886267d3ecc781220629c44a865167b61c375d2da6c720c840ecd73f45d5d9451 + languageName: node + linkType: hard + +"safer-buffer@npm:>= 2.1.2 < 3": + version: 2.1.2 + resolution: "safer-buffer@npm:2.1.2" + checksum: 7eaf7a0cf37cc27b42fb3ef6a9b1df6e93a1c6d98c6c6702b02fe262d5fcbd89db63320793b99b21cb5348097d0a53de81bd5f4e8b86e20cc9412e3f1cfb4e83 + languageName: node + linkType: hard + +"send@npm:0.18.0": + version: 0.18.0 + resolution: "send@npm:0.18.0" + dependencies: + debug: "npm:2.6.9" + depd: "npm:2.0.0" + destroy: "npm:1.2.0" + encodeurl: "npm:~1.0.2" + escape-html: "npm:~1.0.3" + etag: "npm:~1.8.1" + fresh: "npm:0.5.2" + http-errors: "npm:2.0.0" + mime: "npm:1.6.0" + ms: "npm:2.1.3" + on-finished: "npm:2.4.1" + range-parser: "npm:~1.2.1" + statuses: "npm:2.0.1" + checksum: ec66c0ad109680ad8141d507677cfd8b4e40b9559de23191871803ed241718e99026faa46c398dcfb9250676076573bd6bfe5d0ec347f88f4b7b8533d1d391cb + languageName: node + linkType: hard + +"serve-static@npm:1.15.0": + version: 1.15.0 + resolution: "serve-static@npm:1.15.0" + dependencies: + encodeurl: "npm:~1.0.2" + escape-html: "npm:~1.0.3" + parseurl: "npm:~1.3.3" + send: "npm:0.18.0" + checksum: 699b2d4c29807a51d9b5e0f24955346911437aebb0178b3c4833ad30d3eca93385ff9927254f5c16da345903cad39d9cd4a532198c95a5129cc4ed43911b15a4 + languageName: node + linkType: hard + +"setprototypeof@npm:1.2.0": + version: 1.2.0 + resolution: "setprototypeof@npm:1.2.0" + checksum: fde1630422502fbbc19e6844346778f99d449986b2f9cdcceb8326730d2f3d9964dbcb03c02aaadaefffecd0f2c063315ebea8b3ad895914bf1afc1747fc172e + languageName: node + linkType: hard + +"side-channel@npm:^1.0.4": + version: 1.0.4 + resolution: "side-channel@npm:1.0.4" + dependencies: + call-bind: "npm:^1.0.0" + get-intrinsic: "npm:^1.0.2" + object-inspect: "npm:^1.9.0" + checksum: c4998d9fc530b0e75a7fd791ad868fdc42846f072734f9080ff55cc8dc7d3899abcda24fd896aa6648c3ab7021b4bb478073eb4f44dfd55bce9714bc1a7c5d45 + languageName: node + linkType: hard + +"statuses@npm:2.0.1": + version: 2.0.1 + resolution: "statuses@npm:2.0.1" + checksum: 18c7623fdb8f646fb213ca4051be4df7efb3484d4ab662937ca6fbef7ced9b9e12842709872eb3020cc3504b93bde88935c9f6417489627a7786f24f8031cbcb + languageName: node + linkType: hard + +"streamsearch@npm:^1.1.0": + version: 1.1.0 + resolution: "streamsearch@npm:1.1.0" + checksum: 612c2b2a7dbcc859f74597112f80a42cbe4d448d03da790d5b7b39673c1197dd3789e91cd67210353e58857395d32c1e955a9041c4e6d5bae723436b3ed9ed14 + languageName: node + linkType: hard + +"string_decoder@npm:~1.1.1": + version: 1.1.1 + resolution: "string_decoder@npm:1.1.1" + dependencies: + safe-buffer: "npm:~5.1.0" + checksum: 7c41c17ed4dea105231f6df208002ebddd732e8e9e2d619d133cecd8e0087ddfd9587d2feb3c8caf3213cbd841ada6d057f5142cae68a4e62d3540778d9819b4 + languageName: node + linkType: hard + +"toidentifier@npm:1.0.1": + version: 1.0.1 + resolution: "toidentifier@npm:1.0.1" + checksum: 952c29e2a85d7123239b5cfdd889a0dde47ab0497f0913d70588f19c53f7e0b5327c95f4651e413c74b785147f9637b17410ac8c846d5d4a20a5a33eb6dc3a45 + languageName: node + linkType: hard + +"type-is@npm:^1.6.4, type-is@npm:~1.6.18": + version: 1.6.18 + resolution: "type-is@npm:1.6.18" + dependencies: + media-typer: "npm:0.3.0" + mime-types: "npm:~2.1.24" + checksum: 0bd9eeae5efd27d98fd63519f999908c009e148039d8e7179a074f105362d4fcc214c38b24f6cda79c87e563cbd12083a4691381ed28559220d4a10c2047bed4 + languageName: node + linkType: hard + +"typedarray@npm:^0.0.6": + version: 0.0.6 + resolution: "typedarray@npm:0.0.6" + checksum: 2cc1bcf7d8c1237f6a16c04efc06637b2c5f2d74e58e84665445cf87668b85a21ab18dd751fa49eee6ae024b70326635d7b79ad37b1c370ed2fec6aeeeb52714 + languageName: node + linkType: hard + +"unpipe@npm:1.0.0, unpipe@npm:~1.0.0": + version: 1.0.0 + resolution: "unpipe@npm:1.0.0" + checksum: 4fa18d8d8d977c55cb09715385c203197105e10a6d220087ec819f50cb68870f02942244f1017565484237f1f8c5d3cd413631b1ae104d3096f24fdfde1b4aa2 + languageName: node + linkType: hard + +"util-deprecate@npm:~1.0.1": + version: 1.0.2 + resolution: "util-deprecate@npm:1.0.2" + checksum: 474acf1146cb2701fe3b074892217553dfcf9a031280919ba1b8d651a068c9b15d863b7303cb15bd00a862b498e6cf4ad7b4a08fb134edd5a6f7641681cb54a2 + languageName: node + linkType: hard + +"utils-merge@npm:1.0.1": + version: 1.0.1 + resolution: "utils-merge@npm:1.0.1" + checksum: 5d6949693d58cb2e636a84f3ee1c6e7b2f9c16cb1d42d0ecb386d8c025c69e327205aa1c69e2868cc06a01e5e20681fbba55a4e0ed0cce913d60334024eae798 + languageName: node + linkType: hard + +"vary@npm:~1.1.2": + version: 1.1.2 + resolution: "vary@npm:1.1.2" + checksum: 31389debef15a480849b8331b220782230b9815a8e0dbb7b9a8369559aed2e9a7800cd904d4371ea74f4c3527db456dc8e7ac5befce5f0d289014dbdf47b2242 + languageName: node + linkType: hard + +"xtend@npm:^4.0.0": + version: 4.0.2 + resolution: "xtend@npm:4.0.2" + checksum: ac5dfa738b21f6e7f0dd6e65e1b3155036d68104e67e5d5d1bde74892e327d7e5636a076f625599dc394330a731861e87343ff184b0047fef1360a7ec0a5a36a + languageName: node + linkType: hard From 3a8495ca5418172f15637f7a71553a81ddb82373 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 12:15:42 +0200 Subject: [PATCH 2/8] lowercase Optional --- interface/src/i18n/de/index.ts | 2 +- interface/src/i18n/en/index.ts | 2 +- interface/src/i18n/fr/index.ts | 2 +- interface/src/i18n/it/index.ts | 2 +- interface/src/i18n/nl/index.ts | 2 +- interface/src/i18n/no/index.ts | 2 +- interface/src/i18n/sv/index.ts | 2 +- interface/src/i18n/tr/index.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/interface/src/i18n/de/index.ts b/interface/src/i18n/de/index.ts index 011ca2b14..24261aaf1 100644 --- a/interface/src/i18n/de/index.ts +++ b/interface/src/i18n/de/index.ts @@ -231,7 +231,7 @@ const de: Translation = { BROKER: 'Broker', CLIENT: 'Client', BASE_TOPIC: 'Base', - OPTIONAL: 'Optional', + OPTIONAL: 'Optional', // TODO translate FORMATTING: 'Formattierung', MQTT_FORMAT: 'Topic/Payload Format', MQTT_NEST_1: 'Eingebettet in einem Gesamttopic', diff --git a/interface/src/i18n/en/index.ts b/interface/src/i18n/en/index.ts index 61a14cf1e..d8edb747e 100644 --- a/interface/src/i18n/en/index.ts +++ b/interface/src/i18n/en/index.ts @@ -231,7 +231,7 @@ const en: Translation = { BROKER: 'Broker', CLIENT: 'Client', BASE_TOPIC: 'Base', - OPTIONAL: 'Optional', + OPTIONAL: 'optional', FORMATTING: 'Formatting', MQTT_FORMAT: 'Topic/Payload Format', MQTT_NEST_1: 'Nested in a single topic', diff --git a/interface/src/i18n/fr/index.ts b/interface/src/i18n/fr/index.ts index 69784aadd..f2b065463 100644 --- a/interface/src/i18n/fr/index.ts +++ b/interface/src/i18n/fr/index.ts @@ -231,7 +231,7 @@ const fr: Translation = { BROKER: 'Broker', CLIENT: 'Client', BASE_TOPIC: 'Base', - OPTIONAL: 'Optionnel', + OPTIONAL: 'optionnel', FORMATTING: 'Mise en forme', MQTT_FORMAT: 'Format du Topic/Payload', MQTT_NEST_1: 'Englobé dans un topic unique', diff --git a/interface/src/i18n/it/index.ts b/interface/src/i18n/it/index.ts index 6a1a433f2..026d00305 100644 --- a/interface/src/i18n/it/index.ts +++ b/interface/src/i18n/it/index.ts @@ -233,7 +233,7 @@ const it: Translation = { BROKER: 'Broker', CLIENT: 'Cliente', BASE_TOPIC: 'Base', - OPTIONAL: 'Opzionale', + OPTIONAL: 'opzionale', FORMATTING: 'Formattazione', MQTT_FORMAT: 'Formato Topic/Payload ', MQTT_NEST_1: 'Inserito in un singolo argomento', diff --git a/interface/src/i18n/nl/index.ts b/interface/src/i18n/nl/index.ts index 3007ba17b..eb17d20af 100644 --- a/interface/src/i18n/nl/index.ts +++ b/interface/src/i18n/nl/index.ts @@ -231,7 +231,7 @@ const nl: Translation = { BROKER: 'Broker', CLIENT: 'Client', BASE_TOPIC: 'Base', - OPTIONAL: 'Optioneel', + OPTIONAL: 'optioneel', FORMATTING: 'Formatteren', MQTT_FORMAT: 'Topic/Payload Formattering', MQTT_NEST_1: 'Genest in 1 topic', diff --git a/interface/src/i18n/no/index.ts b/interface/src/i18n/no/index.ts index 404e31978..e52b65f61 100644 --- a/interface/src/i18n/no/index.ts +++ b/interface/src/i18n/no/index.ts @@ -231,7 +231,7 @@ const no: Translation = { BROKER: 'Broker', CLIENT: 'Client', BASE_TOPIC: 'Base', - OPTIONAL: 'Valgfritt', + OPTIONAL: 'valgfritt', FORMATTING: 'Formatering', MQTT_FORMAT: 'Topic/Payload Format', MQTT_NEST_1: 'Nestet i en topic', diff --git a/interface/src/i18n/sv/index.ts b/interface/src/i18n/sv/index.ts index 881fc728f..75eff2096 100644 --- a/interface/src/i18n/sv/index.ts +++ b/interface/src/i18n/sv/index.ts @@ -231,7 +231,7 @@ const sv: Translation = { BROKER: 'Broker', CLIENT: 'Client', BASE_TOPIC: 'Base', - OPTIONAL: 'Valfritt', + OPTIONAL: 'valfritt', FORMATTING: 'Formatering', MQTT_FORMAT: 'Topic/Payload Format', MQTT_NEST_1: 'Nestlat i en topic.', diff --git a/interface/src/i18n/tr/index.ts b/interface/src/i18n/tr/index.ts index ee03575c8..c068bddd0 100644 --- a/interface/src/i18n/tr/index.ts +++ b/interface/src/i18n/tr/index.ts @@ -231,7 +231,7 @@ const tr: Translation = { BROKER: 'Aracı', CLIENT: 'İstemci', BASE_TOPIC: 'Merkez', - OPTIONAL: 'Seçenekli', + OPTIONAL: 'seçenekli', FORMATTING: 'Biçimlendiriliyor', MQTT_FORMAT: 'Konu/Mesaj Biçimi', MQTT_NEST_1: 'Tek konu üzerine yerleşmiş', From c4d1058133a4104083eefb1779d3cfce17a561ec Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 12:16:04 +0200 Subject: [PATCH 3/8] add rootCA for testing --- mock-api/server.js | 115 +++++++++++++++++++++++---------------------- 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/mock-api/server.js b/mock-api/server.js index a3ee73053..b12b379db 100644 --- a/mock-api/server.js +++ b/mock-api/server.js @@ -269,6 +269,7 @@ mqtt_settings = { publish_time_sensor: 10, publish_time_heartbeat: 60, mqtt_qos: 0, + rootCA: '', mqtt_retain: false, ha_enabled: true, nested_format: 1, @@ -569,7 +570,7 @@ const emsesp_devicedata_1 = { c: 'intoffset', m: -5, x: 5, - s: '0.1' + s: 0.1 }, { v: -11, @@ -578,7 +579,7 @@ const emsesp_devicedata_1 = { c: 'minexttemp', m: -30, x: 0, - s: '1' + s: 1 }, { v: 29.5, @@ -658,7 +659,7 @@ const emsesp_devicedata_1 = { c: 'wwdisinfecthour', m: 0, x: 23, - s: '1' + s: 1 }, { v: 60, @@ -667,7 +668,7 @@ const emsesp_devicedata_1 = { c: 'wwmaxtemp', m: 60, x: 80, - s: '1' + s: 1 }, { v: 'on', @@ -695,14 +696,14 @@ const emsesp_devicedata_1 = { u: 0, id: '00dhw holiday dates', c: 'wwholidays', - h: '< dd.mm.yyyy-dd.mm.yyyy >' + h: 'dd.mm.yyyy-dd.mm.yyyy' }, { v: '01.01.2019-12.01.2019', u: 0, id: '00dhw vacation dates', c: 'wwvacations', - h: '< dd.mm.yyyy-dd.mm.yyyy >' + h: 'dd.mm.yyyy-dd.mm.yyyy' }, { v: 21, @@ -711,7 +712,7 @@ const emsesp_devicedata_1 = { c: 'hc2/seltemp', m: 0, x: 30, - s: '0.5' + s: 0.5 }, { v: 'auto', @@ -732,7 +733,7 @@ const emsesp_devicedata_1 = { c: 'hc2/daytemp', m: 5, x: 30, - s: '0.5' + s: 0.5 }, { v: 17, @@ -741,7 +742,7 @@ const emsesp_devicedata_1 = { c: 'hc2/nighttemp', m: 5, x: 30, - s: '0.5' + s: 0.5 }, { v: 58, @@ -750,7 +751,7 @@ const emsesp_devicedata_1 = { c: 'hc2/designtemp', m: 30, x: 90, - s: '1' + s: 1 }, { v: 0, @@ -759,7 +760,7 @@ const emsesp_devicedata_1 = { c: 'hc2/offsettemp', m: -5, x: 5, - s: '0.5' + s: 0.5 }, { v: 15, @@ -768,7 +769,7 @@ const emsesp_devicedata_1 = { c: 'hc2/holidaytemp', m: 5, x: 30, - s: '0.5' + s: 0.5 }, { v: 34, @@ -782,7 +783,7 @@ const emsesp_devicedata_1 = { c: 'hc2/summertemp', m: 9, x: 25, - s: '1' + s: 1 }, { v: 'winter', @@ -801,7 +802,7 @@ const emsesp_devicedata_1 = { c: 'hc2/nofrosttemp', m: -20, x: 10, - s: '1' + s: 1 }, { v: 'outdoor', @@ -817,7 +818,7 @@ const emsesp_devicedata_1 = { c: 'hc2/roominfluence', m: 0, x: 10, - s: '1' + s: 1 }, { v: 15, @@ -826,7 +827,7 @@ const emsesp_devicedata_1 = { c: 'hc2/minflowtemp', m: 5, x: 70, - s: '1' + s: 1 }, { v: 85, @@ -835,7 +836,7 @@ const emsesp_devicedata_1 = { c: 'hc2/maxflowtemp', m: 30, x: 90, - s: '1' + s: 1 }, { v: 0, @@ -844,7 +845,7 @@ const emsesp_devicedata_1 = { c: 'hc2/flowtempoffset', m: 0, x: 20, - s: '1' + s: 1 }, { v: 'radiator', @@ -879,14 +880,14 @@ const emsesp_devicedata_1 = { u: 0, id: '00hc2 holiday dates', c: 'hc2/holidays', - h: '< dd.mm.yyyy-dd.mm.yyyy >' + h: 'dd.mm.yyyy-dd.mm.yyyy' }, { v: '01.01.2020-12.01.2020', u: 0, id: '00hc2 vacation dates', c: 'hc2/vacations', - h: '< dd.mm.yyyy-dd.mm.yyyy >' + h: 'dd.mm.yyyy-dd.mm.yyyy' }, { v: 'own 1', @@ -902,7 +903,7 @@ const emsesp_devicedata_1 = { c: 'hc2/pause', m: 0, x: 99, - s: '1' + s: 1 }, { v: 0, @@ -911,7 +912,7 @@ const emsesp_devicedata_1 = { c: 'hc2/party', m: 0, x: 99, - s: '1' + s: 1 }, { v: 0, @@ -920,7 +921,7 @@ const emsesp_devicedata_1 = { c: 'hc2/tempautotemp', m: 0, x: 30, - s: '0.5' + s: 0.5 }, { v: -20, @@ -929,7 +930,7 @@ const emsesp_devicedata_1 = { c: 'hc2/noreducetemp', m: -30, x: 10, - s: '1' + s: 1 }, { v: 8, @@ -938,7 +939,7 @@ const emsesp_devicedata_1 = { c: 'hc2/reducetemp', m: -20, x: 10, - s: '1' + s: 1 }, { v: 5, @@ -947,7 +948,7 @@ const emsesp_devicedata_1 = { c: 'hc2/vacreducetemp', m: -20, x: 10, - s: '1' + s: 1 }, { v: 'outdoor', @@ -1039,7 +1040,7 @@ const emsesp_devicedata_3 = { c: 'selflowtemp', m: 0, x: 90, - s: '1' + s: 1 }, { v: 30.7, @@ -1142,7 +1143,7 @@ const emsesp_devicedata_3 = { c: 'heatingtemp', m: 0, x: 90, - s: '1' + s: 1 }, { v: 100, @@ -1151,7 +1152,7 @@ const emsesp_devicedata_3 = { c: 'pumpmodmax', m: 0, x: 100, - s: '1' + s: 1 }, { v: 100, @@ -1160,7 +1161,7 @@ const emsesp_devicedata_3 = { c: 'pumpmodmin', m: 0, x: 100, - s: '1' + s: 1 }, { v: 'deltaP-2', @@ -1176,7 +1177,7 @@ const emsesp_devicedata_3 = { c: 'pumpdelay', m: 0, x: 60, - s: '1' + s: 1 }, { v: 15, @@ -1185,7 +1186,7 @@ const emsesp_devicedata_3 = { c: 'burnminperiod', m: 0, x: 120, - s: '1' + s: 1 }, { v: 0, @@ -1194,7 +1195,7 @@ const emsesp_devicedata_3 = { c: 'burnminpower', m: 0, x: 100, - s: '1' + s: 1 }, { v: 100, @@ -1203,7 +1204,7 @@ const emsesp_devicedata_3 = { c: 'burnmaxpower', m: 0, x: 254, - s: '1' + s: 1 }, { v: -8, @@ -1212,7 +1213,7 @@ const emsesp_devicedata_3 = { c: 'boilhyston', m: -20, x: 0, - s: '1' + s: 1 }, { v: 15, @@ -1221,7 +1222,7 @@ const emsesp_devicedata_3 = { c: 'boilhystoff', m: 0, x: 20, - s: '1' + s: 1 }, { v: -8, @@ -1230,7 +1231,7 @@ const emsesp_devicedata_3 = { c: 'boil2hyston', m: -20, x: 0, - s: '1' + s: 1 }, { v: 8, @@ -1239,7 +1240,7 @@ const emsesp_devicedata_3 = { c: 'boil2hystoff', m: 0, x: 20, - s: '1' + s: 1 }, { v: 34, @@ -1258,7 +1259,7 @@ const emsesp_devicedata_3 = { c: 'selburnpow', m: 0, x: 254, - s: '1' + s: 1 }, { v: 0, @@ -1319,14 +1320,14 @@ const emsesp_devicedata_3 = { c: 'maintenancetime', m: 0, x: 31999, - s: '1' + s: 1 }, { v: '30.06.2023', u: 0, id: '00next maintenance date', c: 'maintenancedate', - h: '< dd.mm.yyyy >' + h: 'dd.mm.yyyy' }, { v: 46, @@ -1340,7 +1341,7 @@ const emsesp_devicedata_3 = { c: 'wwseltemp', m: 0, x: 254, - s: '1' + s: 1 }, { v: 'buffer', @@ -1361,7 +1362,7 @@ const emsesp_devicedata_3 = { c: 'wwflowtempoffset', m: 0, x: 100, - s: '1' + s: 1 }, { v: 'on', @@ -1382,7 +1383,7 @@ const emsesp_devicedata_3 = { c: 'wwhyston', m: -126, x: 126, - s: '1' + s: 1 }, { v: -1, @@ -1391,7 +1392,7 @@ const emsesp_devicedata_3 = { c: 'wwhystoff', m: -126, x: 126, - s: '1' + s: 1 }, { v: 70, @@ -1400,7 +1401,7 @@ const emsesp_devicedata_3 = { c: 'wwdisinfectiontemp', m: 0, x: 254, - s: '1' + s: 1 }, { v: 'continuous', @@ -1538,7 +1539,7 @@ const emsesp_devicedata_5 = { c: 'hc2/flowsettemp', m: 0, x: 254, - s: '1' + s: 1 }, { v: 'off', @@ -1561,7 +1562,7 @@ const emsesp_devicedata_5 = { c: 'hc2/valvesettime', m: 10, x: 120, - s: '10' + s: 10 } ] }; @@ -1595,7 +1596,7 @@ const emsesp_devicedata_6 = { c: 'cylmaxtemp', m: 0, x: 254, - s: '1' + s: 1 }, { v: 'off', @@ -1619,7 +1620,7 @@ const emsesp_devicedata_6 = { c: 'pumpminmod', m: 0, x: 100, - s: '1' + s: 1 }, { v: 10, @@ -1628,7 +1629,7 @@ const emsesp_devicedata_6 = { c: 'turnondiff', m: 0, x: 254, - s: '1' + s: 1 }, { v: 5, @@ -1637,7 +1638,7 @@ const emsesp_devicedata_6 = { c: 'turnoffdiff', m: 0, x: 254, - s: '1' + s: 1 }, { v: 899, @@ -1656,7 +1657,7 @@ const emsesp_devicedata_6 = { c: 'maxflow', m: 0, x: 25, - s: '0.1' + s: 0.1 }, { v: 37, @@ -1665,7 +1666,7 @@ const emsesp_devicedata_6 = { c: 'wwmintemp', m: 0, x: 254, - s: '1' + s: 1 }, { v: 'on', @@ -1681,7 +1682,7 @@ const emsesp_devicedata_6 = { c: 'setting3', m: 0, x: 254, - s: '1' + s: 1 }, { v: 2, @@ -1690,7 +1691,7 @@ const emsesp_devicedata_6 = { c: 'setting4', m: 0, x: 254, - s: '1' + s: 1 }, { v: 0, @@ -1757,7 +1758,7 @@ const emsesp_devicedata_7 = { { v: 'H00', u: 0, id: '00maintenance message' }, { v: 'manual', u: 0, id: '00maintenance scheduled', c: 'maintenance', l: ['off', 'time', 'date', 'manual'] }, { v: 6000, u: 7, id: '00time to next maintenance', c: 'maintenancetime' }, - { v: '01.01.2012', u: 0, id: '00next maintenance date', c: 'maintenancedate', o: 'Format: < dd.mm.yyyy >' }, + { v: '01.01.2012', u: 0, id: '00next maintenance date', c: 'maintenancedate', h: 'dd.mm.yyyy' }, { v: 'on', u: 0, id: '00dhw turn on/off', c: 'wwtapactivated', l: ['off', 'on'] }, { v: 62, u: 1, id: '00dhw set temperature' }, { v: 60, u: 1, id: '00dhw selected temperature', c: 'wwseltemp' }, From dbc59b7c8cfdca8fee69e4179d29a400b7711c5a Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 12:16:25 +0200 Subject: [PATCH 4/8] remove < and > from template texts --- src/locale_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/locale_common.h b/src/locale_common.h index 3eb878b5e..ff4409082 100644 --- a/src/locale_common.h +++ b/src/locale_common.h @@ -200,11 +200,11 @@ MAKE_NOTRANSLATION(L3, "L3") MAKE_NOTRANSLATION(L4, "L4") // templates - this are not translated and will be saved under options_single -MAKE_NOTRANSLATION(tpl_datetime, "< NTP | dd.mm.yyyy-hh:mm:ss-day(0-6)-dst(0/1) >") +MAKE_NOTRANSLATION(tpl_datetime, "NTP | dd.mm.yyyy-hh:mm:ss-day(0-6)-dst(0/1)") MAKE_NOTRANSLATION(tpl_switchtime, " [ not_set | day hh:mm on|off ]") MAKE_NOTRANSLATION(tpl_switchtime1, " [ not_set | day hh:mm Tn ]") -MAKE_NOTRANSLATION(tpl_holidays, "< dd.mm.yyyy-dd.mm.yyyy >") -MAKE_NOTRANSLATION(tpl_date, "< dd.mm.yyyy >") +MAKE_NOTRANSLATION(tpl_holidays, "dd.mm.yyyy-dd.mm.yyyy") +MAKE_NOTRANSLATION(tpl_date, "dd.mm.yyyy") MAKE_NOTRANSLATION(tpl_input, "[]") MAKE_NOTRANSLATION(tpl_input4, "[]") From baa180cc79820a0cc827425fb68168bda6b8ae36 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 12:16:37 +0200 Subject: [PATCH 5/8] added comments --- src/emsdevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 8c1d05476..7ce2b602f 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -941,14 +941,15 @@ void EMSdevice::generate_values_web(JsonObject & output) { } } // handle INTs - // add min and max values and steps, as integer values else { + // add step if it's not 1 if (dv.numeric_operator > 0) { obj["s"] = (float)1 / dv.numeric_operator; } else if (dv.numeric_operator < 0) { obj["s"] = (float)(-1) * dv.numeric_operator; } + // add min and max values, if available int16_t dv_set_min; uint32_t dv_set_max; if (dv.get_min_max(dv_set_min, dv_set_max)) { From c0a3d03a095c971c722f2775891ec1ee50653602 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 12:17:00 +0200 Subject: [PATCH 6/8] fix formatting for ranges not showing --- .../src/project/DashboardDevicesDialog.tsx | 33 +++++++------------ 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/interface/src/project/DashboardDevicesDialog.tsx b/interface/src/project/DashboardDevicesDialog.tsx index a3bb48abd..25449b382 100644 --- a/interface/src/project/DashboardDevicesDialog.tsx +++ b/interface/src/project/DashboardDevicesDialog.tsx @@ -89,27 +89,16 @@ const DashboardDevicesDialog = ({ } }; - const showHelperText = (dv: DeviceValue) => { - if (dv.h) { - return dv.h; - } - if (dv.l) { - return '[ ' + dv.l.join(' | ') + ' ]'; - } - - let helperText = '<'; - if (dv.s) { - helperText += 'n'; - if (dv.m !== undefined && dv.x !== undefined) { - helperText += ' between ' + dv.m + ' and ' + dv.x; - } else { - helperText += ' , step ' + dv.s; - } - } else { - helperText += 'text'; - } - return helperText + '>'; - }; + const showHelperText = (dv: DeviceValue) => + dv.h ? ( + dv.h + ) : dv.l ? ( + dv.l.join(' | ') + ) : dv.m !== undefined && dv.x !== undefined ? ( + <> + {dv.m} → {dv.x} + + ) : undefined; return ( @@ -171,7 +160,7 @@ const DashboardDevicesDialog = ({ {writeable && ( - format: {showHelperText(editItem)} + {showHelperText(editItem)} )} From 2ab247131f38cffde5411cf88dc75597c9e2e60e Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 13:13:13 +0200 Subject: [PATCH 7/8] added WS170 - #1334 --- src/device_library.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device_library.h b/src/device_library.h index 6f35b79e7..ac948ae58 100644 --- a/src/device_library.h +++ b/src/device_library.h @@ -48,7 +48,7 @@ {208, DeviceType::BOILER, "Logamax Plus/GB192/Condens GC9000/Greenstar ErP", DeviceFlags::EMS_DEVICE_FLAG_NONE}, {210, DeviceType::BOILER, "Cascade MC400", DeviceFlags::EMS_DEVICE_FLAG_NONE}, {211, DeviceType::BOILER, "EasyControl Adapter", DeviceFlags::EMS_DEVICE_FLAG_NONE}, -{219, DeviceType::BOILER, "Greenstar HIU", DeviceFlags::EMS_DEVICE_FLAG_HIU}, +{219, DeviceType::BOILER, "Greenstar HIU/Logamax kompakt WS170", DeviceFlags::EMS_DEVICE_FLAG_HIU}, {234, DeviceType::BOILER, "Logamax Plus GB122/Condense 2300", DeviceFlags::EMS_DEVICE_FLAG_NONE}, // Controllers - 0x09 / 0x10 / 0x50 From cb106637351bb129fbc66713faf4384684dc0ac6 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 16 Oct 2023 13:15:30 +0200 Subject: [PATCH 8/8] updated --- CHANGELOG_LATEST.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG_LATEST.md b/CHANGELOG_LATEST.md index cc8ecfb8d..8cfdd7c5e 100644 --- a/CHANGELOG_LATEST.md +++ b/CHANGELOG_LATEST.md @@ -10,9 +10,12 @@ - telegrams for RC100H, hc2 (seen on discord) - names for BC400, GB192i, read temperatures for low loss header and heatblock [#1317](https://github.com/emsesp/EMS-ESP32/discussions/1317) - option for `forceheatingoff` [#1262](https://github.com/emsesp/EMS-ESP32/issues/1262) +- shower_data MQTT payload contains the timestamp [#1329](https://github.com/emsesp/EMS-ESP32/issues/1329) ## Fixed +- fixed helper text in Web Device Entity dialog box for numerical ranges + ## Changed - update to arduino 2.0.14 / idf 4.4.6