eyalcha / read_your_meter

Home Assistant sensor to read water meter
Apache License 2.0
37 stars 2 forks source link

add a hassio integeration #2

Closed ohadlevy closed 4 years ago

ohadlevy commented 4 years ago

it would be nice if the required containers could be bundled as hassio (e.g. https://github.com/hassio-addons/addon-example)

Thanks!

arnonsha commented 4 years ago

+1 vote from me

Many people in the community run plain hass.io. I believe the hardest thing (at least for me) is sellenium, which I couldn't find how to install under hass.io.

thanks !

Dmxsir commented 4 years ago

+1 vote from me

Many people in the community run plain hass.io. I believe the hardest thing (at least for me) is sellenium, which I couldn't find how to install under hass.io.

thanks !

You can install it from the ha cli.

ohadlevy commented 4 years ago

I'm not sure if the extension itself can run multiple containers, but at worse you can install portainer and run it as well.

On Sat, Jul 25, 2020 at 1:33 PM Dmxsir notifications@github.com wrote:

+1 vote from me

Many people in the community run plain hass.io. I believe the hardest thing (at least for me) is sellenium, which I couldn't find how to install under hass.io.

thanks !

You can install it from the ha cli.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eyalcha/read_your_meter/issues/2#issuecomment-663839722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAE5R3ZTTY6FZQFKQC2UMTR5KYI3ANCNFSM4OZPO6HA .

ohadlevy commented 4 years ago

or perhaps create two addons, one for selenium and another for the read your meter?

arnonsha commented 4 years ago

thanks !

You can install it from the ha cli.

I'd appreciate if you could be more specific on how to do that. I need root privileges I believe which I don't have in the ha cli

Dmxsir commented 4 years ago

thanks !

You can install it from the ha cli.

I'd appreciate if you could be more specific on how to do that. I need root privileges I believe which I don't have in the ha cli

from the Terminal addon just copy/past docker run -d -p 4444:4444 --name selenium selenium/standalone-chrome

then go to portainer addon ' and go to selenium image/Container . scroll down to Restart policies and change to Always, and click update.

ohadlevy commented 4 years ago

from the Terminal addon just copy/past

docker is not available in the terminal (its just another container that mounts /config and can run the ha cli).

if you already have portainer, then you can install it from there to begin with..

maorcc commented 4 years ago

Due to the difficulty to install the required Selenium in Hassio, I've developed a simpler alternative implementation that has no dependencies and is trivial to setup with HACS. Have a look at https://github.com/maorcc/citymind_water_meter