WLED on Ikea SKAFTSÄRV

I appear to be using this to blog the progress…

Waar ben jij nou helemaal mee bezig?! - #211 by bertrik Gives more detail on the xml of the Dutch data.

I wrote c++ code which successfully crunched through the Ontario data using tinyxml2 and it was nice and fast and snappy and then I realized that the xml was 800kb and my code had a maximum memory footprint of 950kb processing it. I’ve not succeeded in making sense of spxml (and I’m not sure it would be that much more memory efficient, even if it does stream the data), but writing the tinyxml2 code made me think enough about what I’m trying to do that I now have 200 lines of c++ which can chew through the Ontario data in 512 byte chunks and I think I should be able to fit it up with NetworkClient.

So some form of progress. In the meantime we are going to plug the older child’s python into a launchd job on a 15 minute cycle and let it drive plugged in WLED-modded lights in the house. Still using the JSON from @bertrik’s server.

And if I can fit my xml-slurper into my esp32 then I may try looking at the Dutch xml data to see if I can write a version for that.

3 Likes