Closed sylvaindd closed 3 years ago
Yep the map data is deflated and base64 encoded (optional) now and needs to be inflated first
I made it work without base64 encoding.
zlib.inflate(message, (err, result) => {
if(!err) {
this.updateMapTopic(JSON.parse(result));
} else {
console.error(err);
}
});
Tried this for base64 encoded, but didn't work :
zlib.inflate(Buffer.from(message, 'base64'), (err, result) => {
if(!err) {
this.updateMapTopic(JSON.parse(result));
} else {
console.error(err);
}
});
Error: incorrect header check
at Zlib.zlibOnError [as onerror] (zlib.js:182:17) {
errno: -3,
code: 'Z_DATA_ERROR'
}
Having same issue with getting the map into home assistant Is there a workaround available in home assistant?
same for me
I sort of patched it but CPU and RAM usage are really high (about 25% CPU and 600MB RAM on a Synology 718+ NAS)...
any news/solution?
Any news?
Are there any news how ICantBelieveItsNotValetudo can run with 2021.01.1?
Should be fixed by #46
I made further improvements in my fork.
Feel free to port it back to upstream - in my fork, I decide to remove some features I don't need.
The fork:
@mikispag As far as I'm concerned, all these changes can be merged into this repo
Oh, cool. Filed #47.
Issue was fixed in #46
Thanks
It doesn't seem to be working with the new Valetudo version 2021.01.1.
Unfortunatly I removed my old topic, but I guess the map_data was previously in JSON as it tries to parse it as JSON.