The post you linked to is very, very old and using a a command line with curl to get rest data. It is likely that it not longer works that way. There are however way more recent integrations to get local luftdaten.
This one is using a rest sensor version that does not need an external command to run:
And this one is an integration you can install though hacs: