Skip to content

Commit

Permalink
head off the devices !
Browse files Browse the repository at this point in the history
  • Loading branch information
empierre committed Nov 22, 2023
1 parent ab812ed commit 49e7e05
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# DOCKER-VERSION 0.3.6
# DOCKER-VERSION 0.3.8
FROM node:current-bookworm-slim
#FROM google/nodejs
#FROM node:4.4-wheezy
MAINTAINER Emmanuel PIERRE [email protected]
USER root
LABEL Description="This image is used to start the MyDomoAtHome executable" Vendor="Domoticz" Version="0.3.6"
LABEL Description="This image is used to start the MyDomoAtHome executable" Vendor="Domoticz" Version="0.3.8"

##################################################
# Install tools #
Expand Down Expand Up @@ -54,9 +54,10 @@ RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesourc
RUN apt-get update
RUN apt-get install -y nodejs
#RUN apt-get install -y npm
RUN npm install -g [email protected]
RUN wget http://www.e-nef.com/domoticz/mdah/node-mydomoathome-0.3.5.deb
RUN dpkg --force-all -i node-mydomoathome-0.3.5.deb
//RUN npm install -g [email protected]
RUN npm install
RUN wget http://www.e-nef.com/domoticz/mdah/node-mydomoathome-0.3.6.deb
RUN dpkg --force-all -i node-mydomoathome-0.3.6.deb
RUN mv /etc/mydomoathome/config.json /etc/mydomoathome/config.json.old
VOLUME /etc/mydomoathome/

Expand Down
4 changes: 2 additions & 2 deletions mdah.js
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ app.get("/devices", auth, function (req, res) {
res.type('json');

var options = {
url: getURL(req) + "?type=devices&filter=utility&order=Name",
url: getURL(req) + "?type=command&param=getdevices&filter=utility&order=Name",
headers: {
'User-Agent': 'request'
}
Expand All @@ -2371,7 +2371,7 @@ app.get("/devices", auth, function (req, res) {
})

var options = {
url: getURL(req) + "?type=devices&filter=all&used=true&order=Name",
url: getURL(req) + "?type=command&param=getdevices&filter=all&used=true&order=Name",
headers: {
'User-Agent': 'request'
}
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/deb-src/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: MyDomoAtHome
Version: 0.3.4
Version: 0.3.5
Section: base
Priority: extra
Provides: MyDomoAtHome
Expand Down
4 changes: 2 additions & 2 deletions packaging/synology/build/INFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package="MyDomoAtHome"
version="0.3.4"
version="0.3.5"
description="Node MyDomoAtHome! The installable NodeJS System Service for Imperihome ISS to Domoticz gateway"
support_url="https://github.com/empierre/MyDomoAtHome/issues"
arch="noarch"
Expand All @@ -13,7 +13,7 @@ displayname="MyDomoAtHome"
dsmuidir="app"
adminport="3002"
changelog="First version"
checksum="74487bb095ab97c858c26cc345655e06"
checksum="b69de7cb4ac07d55fb07128d6c9d520e"
checkport="yes"
startable="yes"
helpurl="https://github.com/empierre/MyDomoAtHome/"
Expand Down

0 comments on commit 49e7e05

Please sign in to comment.