Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Run more than one instance? #271

Closed
jds11111 opened this issue Sep 22, 2021 · 6 comments
Closed

Run more than one instance? #271

jds11111 opened this issue Sep 22, 2021 · 6 comments
Labels
ICantBelieveItsNotValetudo ICantBelieveItsNotValetudo Addon

Comments

@jds11111
Copy link

Which addon?
I Can't Believe Its Not Valetudo

Is your feature request related to a problem? Please describe.
No, it works great

Describe the solution you'd like
Be able to run the instance a second time, for another robot

Describe alternatives you've considered
Run it on another machine, not as an addon.

Additional context
ICBINV works for only one robot, but if another instance is run, a different port can be used for a second robot.
I have no idea how easy/difficult it would be to implement here as an addon, so just mentioning.

@Poeschl Poeschl added the ICantBelieveItsNotValetudo ICantBelieveItsNotValetudo Addon label Sep 22, 2021
@github-actions
Copy link

Hi, there.

Please make sure you have the right addon for your software.
The addon you mentioning is the companion for ICantBelieveItsNotValetudo from Hypfer.


This is an automated comment. Responding to the bot or mentioning it won't have any effect.

@Poeschl
Copy link
Owner

Poeschl commented Sep 22, 2021

Running 2 instances of ICBINV can be done like described in #62.

For multiple instances inside a addon it might need some more work, especially for the several individual configs. I guess at least 2 instances is suitable for now.

That said, I'm also happy to retrieve a PR for a "MULTI-ICBINV" 😁

@jds11111
Copy link
Author

Thanks for the response. You are right that running 2 instances of ICBINV is the way to go, since the original works that way. However, I don't understand enough how HA runs docker containers to implement that. Is that just the "Local Build" instructions at the bottom of the "Local Add-On instructions" that you linked to in issue 62? I.e., copy the contents of your ICBINV into /addons, and run something like docker run --rm -ti --name hassio-builder --privileged \ -v /path/to/addon:/data \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ homeassistant/amd64-builder -t /data --all --test \ -i my-test-addon-{arch} -d local

@Poeschl
Copy link
Owner

Poeschl commented Sep 22, 2021

When the addon is copied in the addon folder. It is shown on the Supervisor UI as local addon.

You don't need to interact with docker or command line at all.

@jds11111
Copy link
Author

jds11111 commented Sep 22, 2021

Thanks---that worked. I had to remember to flush the cache of the browser to see it. You can use the configuration of the original to make a webserver:

webserver:
  enabled: true
  port: 3001

which can then be reached by a browser in the network. Now I am just trying to figure out how to get these png files to show up in telegram notifications.

EDIT: In case anyone else needs more details, this link on local addons helped.

@Poeschl
Copy link
Owner

Poeschl commented Sep 22, 2021

The Webserver is enabled by default 😉
This is fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ICantBelieveItsNotValetudo ICantBelieveItsNotValetudo Addon
Projects
None yet
Development

No branches or pull requests

2 participants