Trying to add persistence but when I use the /app
directory dotnet can not start or function
So can the config.json live somewhere else besides the base directory?
I need to document this (and actually test it too) - in theory, if you set an environment variable called HACC:ConfigLocation
to a valid, existing directory, it will instruct HACC to write the config.json
file to that folder instead of the current app folder.
So… something like HACC:ConfigLocation=/var/hacc
might make it write to /var/hacc/config.json
possibly?
If someone reports getting this to work, I’ll add it to the wiki on GH!
@atomicpapa Add your thoughts for alarm panels here: https://github.com/qJake/HADotNet.CommandCenter/issues/7
I’m not sure what entity types comprise an alarm panel or what services have to be called, but if someone can add those details, I may be able to get one up and running!
I don’t think that will make it any easier, plus it didn’t work for me I tried it briefly @atomicpapa suggestion of creating the actual file first works great!
If I compile it from sources on Rpi - will it work on it?
comment added
I tried awhile ago, spent a bunch of time on it, and got a weird error - but hey, it’s open source - why not give it a try?! It’s not like I can stop you!
For those that don’t know, if you need to back up the config.json file from within the container, do
docker ps
that will give you a container ID like 3b82c9116eec
Then make sure you aren’t going to overwrite a file named config.json in your current working directory, then do
docker cp 3b82c9116eec:/app/config.json config.json
This will copy the file from the container to your current working directory.
Once you have updated your docker image and restarted it, it will get a new container ID. If you want to copy the config file back into the container, it is just the same command in reverse.
docker cp config.json newcontainerid:/app/config.json
Forgive my ignorance, but do you need both TZ= and a link to localtime?
I’m getting an error when I attempt to bring the docker image up
Starting hacc ... done
Attaching to hacc
hacc | standard_init_linux.go:211: exec user process caused "exec format error"
hacc exited with code 1
My docker-compose file is here:
version: "3"
services:
hacc:
ports:
- 8095:8095
image: qjake/hacc
container_name: "hacc"
network_mode: host
volumes:
- '/home/pi/hacc:/app/'
- '/etc/localtime:/etc/localtime:ro'
Sorry I can’t be of more help, not certain what the standard_init_linux.go
is.
if you use network_mode host you dont need to expose ports
this is my docker-compose
version: '3'
services:
HACC:
image: qjake/hacc
container_name: HACC
volumes:
- /srv/docker/hacc/config.json:/app/config.json
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=Australia/Brisbane
ports:
- 8095:8095
restart: always
I made that change, but the same error is still occurring:
hacc | standard_init_linux.go:211: exec user process caused "exec format error"
did you try creating a empty config.json file in your /home/pi/hacc directory
doing a quick google search for your error, seems to indicate a mismatch between architectures
which architecture is this docker image made for? I’m running on a pi4 (armf, I believe, but not certain).
We don’t support Pis yet (ARMv8), support will be coming soon for that.
Hi,
great addon, easy to install and to configure.
I’m having issue with theme and font layout. Modification on theme is not saved. I don’t know why.
And i cannot do a square with on tile 2x1 at the top and two tiles 1x1 at the bottom. (I want to have ‘Salon’ tile at the top and 2 tiles below but i can’t)
I have the same issue as @stban1983. Also every time I click save layout the top left most tile will shift down about 5-10 pixels and it is reflected on the dashboard. Additionally, person tiles don’t populate. I just get the 4 pulsing boxes on the dashboard. It does it with person entities or device tracker entities.