Hass.io: Add 'xmllint' to the Command Line

Currently, I am using a awkward series of curl, grep and awk commands with the command line sensor to parse some XML data from a REST service that does not display JSON. I have seen a few setups using similar methods to get data from XML.

It would be beneficial to have xmllint available on the command line of hassio as then a much simpler solution of combining the command line sensor and grabbing data through xmllint using an xpath statement can be used.

If you are using the core SSH addon for this, then you might want to take a look at the community SSH addon version, which allows to configure custom packages.

1 Like

Is it possible to access the custom packages from a command line sensor for example ?
I used to have a command line sensor like command: ā€˜nodejs foo.jsā€™ but I switch to hassio and this is not possible anymore.
I donā€™t really want to code an add-on just for a command line sensorā€¦

The add-on support the execution of custom ā€œinitā€ commands. You make your tools available for download some where and let the add-on download it on start.

Thanks for your help.

Iā€™m not sure to understand, newbie user here :roll_eyes:
Letā€™s say I add the package ā€˜nodejsā€™ in the config, how can I access nodejs from the sensor component ?
Is there something specific to do ? command: ā€˜nodejs foo.jsā€™ will just work ?