Web-based editor

OK, Are you sure that you did run npm install inside of the ha-editor folder? Because the errors that you experience are all linked to dependencies not being installed.

Try the npm install command once again, if that doesn’t work you will have to do npm install body-parser --save
And will have to do that a couple more times for all of the dependencies.

These are the dependencies that ha-editor relies on:
“body-parser”
“bootstrap”
“ejs”
“express”
“jquery”
“monaco-editor”

/Emil

I have the same problem with raspberry pi, i have tried without the docker, didnt had errors when install npm (sudo apt-get install npm)

I verified the release that is currently on github, there is no problem there.

Are you able to run the command node in it self?

Here is a guide to install node and npm for raspberry pi.

yes, i am able to run node commands

it is now working , but it is doesnt show the files, do i need to enter the internal ip to the duck address?
i have http ssl

Port 3000 is the same as the Grafana plugin from bestlibre

But easy to remap it with docker… e.g.
docker run -d -p 3333:3000 -v /usr/share/hassio/homeassistant:/usr/src/app/configFolder voxic/ha-editor

I have created a hassio addon config.json for local install, but I am getting errors when starting it.
I think the image in dockerhub is for ARM64 arch - is this correct?

I changed port in APP.JS … Wirke nice but error message appears anyway

Finally got around to trying to install the Docker on my Synology. The GUI detects port 3000 but doesn’t run. Getting the following error in docker logs:

Start container voxic-ha-editor1 failed: rpc error: code = 2 desc = "oci runtime error: exec format error"

I have it setup at follows:

/docker/hass (the location of my Home Assistant configurations.yaml etc)
`/config’ (Mount Path)

Should the mount path be /usr/src/app/configFolder voxic/ha-editor

Any ideas?

anyway to have node.js as part of the docker?

how can i make it to auto start when raspberry start?

Hi

I think it has something to do with clicking on a file before the editor is fully loaded. Will change it so that the files are presented after the editor is fully loaded.

/Emil

The docker image is built on a RaspberryPi 3, I’m quite new on this whole docker thing so haven’t figured everything out yet.

/Emil

1 Like

I guess that the image needs to be modified for it to run on a Synology.

/Emil

Are you running the docker image or whit nodejs?

/Emil

The whole nodejs runtime is packed in the docker image. It is based on baron.
So if you go the docker way you don’t need node runtime locally.

//Emil

I looked at your docker file. Rather than using your arm arch image for hassio addon I’ll try doing full local build with your dockerfile. (When I get time :slight_smile: )

I got it working via http but as my entire setup is https is there an option to allow https in the editor - couldnt see anything at first glance … but looks good so far just the browser refuses to include an http iframe in an https session obviously…

1 Like

nodejs, no docker

HTTPS is down to the hosting of the application. The editor is basically a web application. The standalone version is run with the built-in nodejs server, so if you want https you need to serve the application with something like nginx.

The docker version runs on a base image called boron (nodejs). Maby there is a possibility to enable https in the docker image.

/Emil

When running the docker container with the command

sudo docker run -d -p 3000:3000 --mount type=bind,source="$(pwd)"/,target=/usr/src/app/configFolder voxic/ha-editor

This line

--mount type=bind,source="$(pwd)"/,target=/usr/src/app/configFolder

Mounts the current working local directory to the directory /usr/src/app/configFolder inside of the docker container.

So if you could specify your path to your home assistant configuration by modifying that command
Like:

--mount type=bind,source=/full/path/to/config,target=/usr/src/app/configFolder

/Emil