FiatChamp icon indicating copy to clipboard operation
FiatChamp copied to clipboard

fiatchamp does not work in a standalone container

Open marcobto58 opened this issue 11 months ago • 2 comments

HI Congratulations for the excellent work. I would like to migrate home assistant from the supervised version (where it works perfectly) to the one that uses containers. Unfortunately I can't if I can't get Fiatchamp to work I tried using the example configuration. I generated the token but I get this error:

ERROR: Call failed. Resource temporarily unavailable (supervisor:80): GET http://supervisor/core/api/states

see logs attached

Thanks in advance

portainer.fiatchamp.log

_FiatChamp_logs.txt

Originally posted by @marcobto58 in https://github.com/wubbl0rz/FiatChamp/issues/22#issuecomment-1713751717

marcobto58 avatar Sep 12 '23 07:09 marcobto58

i think you need to set these two environment variables in your docker config.

export FiatChamp_HomeAssistantUrl="https://hass.example.com"

and the token for the home assistant api.

export FiatChamp_SupervisorToken="jhiswgfrhjsfgdhjsgfhjfgsjhfghjfgshjgfhjfgdhjfgdhjgdf"

im not really sure :thinking: the problem is the standalone mode was not planned to be used and exists only that i can test it locally without loading a new addon in home assistant everytime. but im working on the next version which can be used both as standalone or as home assistant addon. with its own minimal webinterface for configuration.

wubbl0rz avatar Sep 18 '23 12:09 wubbl0rz

Thanks for the reply with the simple url of home assistant (without references to the supervisor path) it now works!!! Great!! I look forward to the next standalone version.

Thank you

Marco

marcobto58 avatar Sep 18 '23 17:09 marcobto58