Skip to content

Commit

Permalink
quickfix for #154
Browse files Browse the repository at this point in the history
  • Loading branch information
empierre committed Nov 6, 2017
1 parent e91a16a commit 98cf716
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs
#RUN apt-get install npm
RUN npm install -g [email protected]
RUN wget http://www.e-nef.com/domoticz/mdah/node-mydomoathome-0.2.30.deb
RUN dpkg -i node-mydomoathome-0.2.30.deb
RUN wget http://www.e-nef.com/domoticz/mdah/node-mydomoathome-0.2.31.deb
RUN dpkg -i node-mydomoathome-0.2.31.deb
RUN mv /etc/mydomoathome/config.json /etc/mydomoathome/config.json.old
VOLUME /etc/mydomoathome/

Expand Down
5 changes: 3 additions & 2 deletions mdah.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,10 @@ function DevMultiSwitch(data) {

var ret = data.LevelNames.split('|');
var mydev = {MaxDimLevel: null, Action: null, graph: null, Selector: ret};
//console.log(mydev);
console.log(mydev);
device_tab[data.idx] = mydev;
var lvl = (data.Level) / 10;
var lvl = Math.round((data.Level) / 10);
console.log(lvl);
params.push({"key": "Value", "value": ret[lvl].toString()});
params.push({"key": "Choices", "value": res});
myfeed.params = params;
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.2.29"
version="0.2.30"
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="42d7dad177f3a89c35a75df87779fbe9"
checksum="7acc99c9393ad16b7336909b91f74129"
checkport="yes"
startable="yes"
helpurl="https://github.com/empierre/MyDomoAtHome/"
Expand Down

0 comments on commit 98cf716

Please sign in to comment.