GithubHelp home page GithubHelp logo

Comments (5)

bbenjamin11 avatar bbenjamin11 commented on June 8, 2024 1

I have remove the volume and the image, repull the image, recreate the volume and it work !

Thanks for your help !!
See you,
Benjamin.

from zwave2mqtt.

robertsLando avatar robertsLando commented on June 8, 2024

from zwave2mqtt.

bbenjamin11 avatar bbenjamin11 commented on June 8, 2024

Hi, thanks for your help.

I have try your all docker image form docker-hub without success. So I have try with your repo to build the app (npm install). And to finish, clone your Zwave2mqtt-docker and build from this source.

All installs went well but none worked properly on my Rpi0w.

Thanks,
Benjamin

from zwave2mqtt.

robertsLando avatar robertsLando commented on June 8, 2024

I have just successfully installed it on my Rpi 3 Model B+ following the "manual" install:

# Install Openzwave
wget "https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.79/openzwave_1.4.79.gfaea7dd_armhf.deb"
wget "https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.79/libopenzwave1.3_1.4.79.gfaea7dd_armhf.deb"
wget "https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.79/libopenzwave1.3-dev_1.4.79.gfaea7dd_armhf.deb"
sudo dpkg -i *openzwave*.deb
export LD_LIBRARY_PATH=/usr/local/lib
sudo sed -i '$a LD_LIBRARY_PATH=/usr/local/lib' /etc/environment
sudo ldconfig

# Clone and build app
git clone https://github.com/robertsLando/Zwave2Mqtt.git
cd Zwave2Mqtt
npm install
npm run build

# Start app
npm start

I have also tried with docker and it works:

pi@raspberrypi:~ $ sudo docker run --rm -it -p 8091:8091 --device=/dev/ttyACM0 --mount source=zwave2mqtt,target=/usr/src/app robertslando/zwave2mqtt:arm32v7-latest
Unable to find image 'robertslando/zwave2mqtt:arm32v7-latest' locally
arm32v7-latest: Pulling from robertslando/zwave2mqtt
d8d287cbc574: Pull complete 
74af0ebc085c: Pull complete 
6e873d5f914a: Pull complete 
a2075eca02a7: Pull complete 
b409dfb16e6e: Pull complete 
58aa07503bf7: Pull complete 
Digest: sha256:2175669ef69d5ede28b0a0a20799b78feae6b05bbd6bf79cb666edefe91b56bd
Status: Downloaded newer image for robertslando/zwave2mqtt:arm32v7-latest
  z2m:Store settings.json not found +0ms
  z2m:Store scenes.json not found +10ms
  z2m:App Application path:/usr/src/app +0ms
  z2m:Gateway Gateway needs both MQTT and Zwave Configuration to work +0ms
  z2m:App Listening on port 8091 +0ms
GET / 200 21.211 ms - 1432
GET /static/js/manifest.2ae2e69a05c33dfc65f8.js 200 12.001 ms - 857
GET /static/css/app.6767e8280089a963b7ff2532eaea9424.css 200 12.656 ms - 210253
GET /static/js/app.dd547788f2afe0892d2a.js 200 10.006 ms - 49171
GET /static/js/vendor.bdbd6d4fd3cc9baa1adb.js 200 13.290 ms - 812044
GET /static/logo.png 200 7.817 ms - 10014
  z2m:App New connection xlmDmozEgQJ7b3hbAAAA +4s
GET /static/favicons/favicon-32x32.png 200 7.778 ms - 1831

I don't have a Pi0w to test this but if it doesn't work using docker it must work by compiling the library yourself (first method I show you there, maybe you would need to compile openzwave yourself too)

Let me know

** UPDATE **

When you run an image with the script I have provided remember to delete the volume because it contains the old executable and it would cause errors. So in your case:

docker volume rm zwave2mqtt
docker run --rm -it -p 8091:8091 --device=/dev/ttyACM0 --mount source=zwave2mqtt,target=/usr/src/app robertslando/zwave2mqtt:arm32v6-latest

Try to run these commands first @bbenjamin11

from zwave2mqtt.

robertsLando avatar robertsLando commented on June 8, 2024

I have also just pushed a commit (e8029dc) to better handle logs of 404 Not Found errors.

Anyway this doesn't fix your problem, you receive 302 because I redirect by default all 404 to /. I think you forgot to run the command npm run build or maybe you are missing something because everything works in my tests

from zwave2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.