dammIT

A rantbox

NS API 2019 edition


I just merged a new version of my trusty old NS API Python library. Last year I would have thought to not be touching it for quite a while, as nowadays I'm in the luxurious position of being able to bike to work and not wanting to do basically a rewrite now the NS re-did their API in JSON (it used to be a funny Dutch XML one). Discovering quite a bunch of people are using it in the excellent Home Assistant home automation project, I decided to dust it off again anyway. Turned out, Squixx wrote a really nice pull request, fixing basically All The Things(tm), which was a really pleasant surprise, as I am used to have to do all the work myself to my hobby projects.

Downside was, they converted all the files to Windows line endings for some reason, which broke the Git diffing (Everything Has Changed Sir), and added some Microsoft copyrighted Docker files, which was cool in itself, but the copyrightedness was not. After waiting for a bit on my review of said changes, I decided to go ahead and use the changes in a more useful pull request, which you find linked above.

I made some further adjustments and uploaded version 3.0.0 of the library to PyPi. It would be really cool if people could start using it again :)

I'm a fan of Home Assistant myself, but I really need to spend some time setting it up on the Pi I got for the purpose, together with the rfxcom sender/receiver box (great little device by a fellow Dutchman).

First step would be to create a new API account on the [NS API Portal(https://apiportal.ns.nl/), which works through Microsoft Azure. Yay. Oh well, one can't have everything.