Skip to content

Commit

Permalink
missing getdevice migration
Browse files Browse the repository at this point in the history
  • Loading branch information
empierre committed Nov 21, 2023
1 parent 0b73693 commit 131da26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# DOCKER-VERSION 0.3.4
# DOCKER-VERSION 0.3.6
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.5"
LABEL Description="This image is used to start the MyDomoAtHome executable" Vendor="Domoticz" Version="0.3.6"

##################################################
# Install tools #
Expand Down Expand Up @@ -55,8 +55,8 @@ 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.4.deb
RUN dpkg --force-all -i node-mydomoathome-0.3.4.deb
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 mv /etc/mydomoathome/config.json /etc/mydomoathome/config.json.old
VOLUME /etc/mydomoathome/

Expand Down
2 changes: 1 addition & 1 deletion mdah.js
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,7 @@ function getDeviceType(deviceId) {
};

function getDeviceSubType(deviceId) {
var url = getURL() + "?type=command&param=devices&rid=" + deviceId;
var url = getURL() + "?type=command&param=getdevices&rid=" + deviceId;
logger.info(url);
var res = requester('GET', url);
if (res.statusCode!=200) {return({})};
Expand Down

0 comments on commit 131da26

Please sign in to comment.