[MyDomoAtHome] Bêta version in nodeJS Topic is solved
Moderator: leecollings
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
sure this way but not suitable for many people, some would like just a package, going on ssh and shell can br too hard... compared with a pré-installed domoticz image
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
Hello,
need some testers on :
- blinds devices
- push on / off buttons
- docker image
need some testers on :
- blinds devices
- push on / off buttons
- docker image
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
0.0.19 version out with correction to waterflow, gas, multiswitch, dimmer
we'regetting close, need some tester on blinds please !
we'regetting close, need some tester on blinds please !
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 58
- Joined: Friday 29 May 2015 7:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
@epierre
Good morning,
I have tried to install the beta version in nodejs. I followed your install procedure as described on github.
- downloaded nodejs_4.4.2_armhf.deb and npm_2.14.7_armhf.deb from http://www.e-nef.com/domoticz/mdah
- sudo dpkg -i nodejs_4.4.2_armhf.deb gave me errormessages -> npm not found
- sudo dpkg -i npm_2.14.7_armhf.deb gave me errormessages -> nodejs not installed
Please advise.
Thanks a lot in advance for your help
Cheers
Josh
Good morning,
I have tried to install the beta version in nodejs. I followed your install procedure as described on github.
- downloaded nodejs_4.4.2_armhf.deb and npm_2.14.7_armhf.deb from http://www.e-nef.com/domoticz/mdah
- sudo dpkg -i nodejs_4.4.2_armhf.deb gave me errormessages -> npm not found
- sudo dpkg -i npm_2.14.7_armhf.deb gave me errormessages -> nodejs not installed
Please advise.
Thanks a lot in advance for your help
Cheers
Josh
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
@josh send me your email so we discuss it on the slack support.
nodejs includes npm, your error is strange.
nodejs includes npm, your error is strange.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 82
- Joined: Saturday 13 December 2014 21:20
- Target OS: Linux
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
Maybe a dumb question, please forgive me if it is.
- Ive installed the nodejs version which installs fine and runs in usr/share and runs on a different port then the old mydomoathome
- I also still have the old mydomotathome in /home/pi/domoticz running on a different port
When I start the domoticz service, always both are starting up.
Is there a way to uninstall the old mydomoathome so it doesn't try to start that service anymore ?
- Ive installed the nodejs version which installs fine and runs in usr/share and runs on a different port then the old mydomoathome
- I also still have the old mydomotathome in /home/pi/domoticz running on a different port
When I start the domoticz service, always both are starting up.
Is there a way to uninstall the old mydomoathome so it doesn't try to start that service anymore ?
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
@bdormael to migrate:
- sudo service MyDomoAtHome.sh stop
- sudo rm /etc/init.d/MyDomoAtHome.sh
To have the new on same port:
- sudo vi /etc/mydomoathome/config.json
and change the port number
To completely remove it: rm -rf /home/pi/domoticz/MyDomoAthome if your user is pi
- sudo service MyDomoAtHome.sh stop
- sudo rm /etc/init.d/MyDomoAtHome.sh
To have the new on same port:
- sudo vi /etc/mydomoathome/config.json
and change the port number
To completely remove it: rm -rf /home/pi/domoticz/MyDomoAthome if your user is pi
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 82
- Joined: Saturday 13 December 2014 21:20
- Target OS: Linux
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
Perfect, thxepierre wrote:@bdormael to migrate:
- sudo service MyDomoAtHome.sh stop
- sudo rm /etc/init.d/MyDomoAtHome.sh
To have the new on same port:
- sudo vi /etc/mydomoathome/config.json
and change the port number
To completely remove it: rm -rf /home/pi/domoticz/MyDomoAthome if your user is pi
-
- Posts: 20
- Joined: Tuesday 26 January 2016 22:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
Hello ..I'am Testing dimmer .
Domoticz server: http://192.168.0.200:8080
Node version: 4.3.2
MDAH version: 0.0.28
On and Off works ok..
But when setting level :
And sometime works ok .,:
On MDAH version: 0.0.19 all works ok .,
Edit:. MDAH version: 0.0.28 started this morning and it works., (cache , etc.) but works fine.,
and again got response 500 ., and now 200 .. I can not find a reason .
Domoticz server: http://192.168.0.200:8080
Node version: 4.3.2
MDAH version: 0.0.28
On and Off works ok..
But when setting level :
Code: Select all
http://192.168.0.200:8080undefined
::ffff:192.168.0.104 - - [21/Mar/2016:21:40:35 +0000] "GET /devices/73/action/setLevel/46 HTTP/1.1" 500 36 "-" "-"
Code: Select all
http://192.168.0.200:8080/json.htm?type=command¶m=switchlight&idx=73&switchcmd=Set%20Level&level=12&passcode=
::ffff:192.168.0.104 - - [21/Mar/2016:20:55:45 +0000] "GET /devices/73/action/setLevel/75 HTTP/1.1" 200 16 "-" "-"
Code: Select all
::ffff:192.168.0.104 - - [21/Mar/2016:21:54:34 +0000] "GET /devices/73/action/setLevel/74 HTTP/1.1" 200 16
and again got response 500 ., and now 200 .. I can not find a reason .
-
- Posts: 20
- Joined: Tuesday 26 January 2016 22:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
Found that in : case 'setLevel' whet device_tab[deviceId].Action has Null value then go to :default and it works .
But more often have value "1" so go to case 1: .. so i add to case 1:
Don't know why it happens ..
But more often have value "1" so go to case 1: .. so i add to case 1:
Code: Select all
...
else {
lsetLevel = Math.ceil(actionParam * (device_tab[deviceId].MaxDimLevel) / 100);
my_url = "/json.htm?type=command¶m=switchlight&idx=" + deviceId + "&switchcmd=Set%20Level&level=" + lsetLevel + "&passcode=";
}
-
- Posts: 228
- Joined: Thursday 21 May 2015 9:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
I cant get my devices listed. My gateway is running.
When i give the command http://gateway_ip:gateway_port/devices the webpage returns at connection refused.
tried to set the 127.0.0.1 as domo_path. but same result.
If i set the domo_path to my domoticz ip adres 192.168.1.165:xxx in the gateway it will stay like this:
is that correct?
AppName: MyDomoAtHome
MDAH: http://192.168.1.165:3002
Domoticz: http://127.0.0.1:8080
NodeJS: v4.2.2
Webmanager: EJS
Renderer: Express
When i give the command http://gateway_ip:gateway_port/devices the webpage returns at connection refused.
tried to set the 127.0.0.1 as domo_path. but same result.
If i set the domo_path to my domoticz ip adres 192.168.1.165:xxx in the gateway it will stay like this:
is that correct?
AppName: MyDomoAtHome
MDAH: http://192.168.1.165:3002
Domoticz: http://127.0.0.1:8080
NodeJS: v4.2.2
Webmanager: EJS
Renderer: Express
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
@Iowca is that better now ? version 0.0.37 around with instll fixes
@Justintime thanks for the Wiki correction
have you tried accessing the html page http://192.168.1.165:3002 ?
@Justintime thanks for the Wiki correction
have you tried accessing the html page http://192.168.1.165:3002 ?
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 228
- Joined: Thursday 21 May 2015 9:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: RE: Re: [MyDomoAtHome] Bêta version in nodeJS
YW for the wiki. I was stuck on that one.epierre wrote:@Iowca is that better now ? version 0.0.37 around with instll fixes
@Justintime thanks for the Wiki correction
have you tried accessing the html page http://192.168.1.165:3002 ?
Yes I can access the html page gateway.
In the other post you can see what it's reading.
When I change the json.htm in my internal ip and port it Wil stay on 127.0.0.1 in the html page. Is that correct?
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: RE: Re: [MyDomoAtHome] Bêta version in nodeJS
The "intrernal page" just reflects your configuration in /etc/mydomoathome/config.jsonJustintime wrote:YW for the wiki. I was stuck on that one.epierre wrote:@Iowca is that better now ? version 0.0.37 around with instll fixes
@Justintime thanks for the Wiki correction
have you tried accessing the html page http://192.168.1.165:3002 ?
Yes I can access the html page gateway.
In the other post you can see what it's reading.
When I change the json.htm in my internal ip and port it Wil stay on 127.0.0.1 in the html page. Is that correct?
if you click on the links here you should see the results based on this configuration.
If you call http://192.168.1.165:3002/devices you should have a result, not a 4xx or 5xx code
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 20
- Joined: Tuesday 26 January 2016 22:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
info: Node version: 4.3.2
info: MDAH version: MyDomoAtHome 0.0.45
Unfortunately, the same .. i use mysensors 2.0 without radio as dimmer , maybe i do something wrong ,.
But add code from defautl: to case 1: i case 'lsetLevel' do the job ,. so its no problem .,
Btw: Great job.
info: MDAH version: MyDomoAtHome 0.0.45
Unfortunately, the same .. i use mysensors 2.0 without radio as dimmer , maybe i do something wrong ,.
But add code from defautl: to case 1: i case 'lsetLevel' do the job ,. so its no problem .,
Btw: Great job.
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
@lowca can you send me the /json.htm?type=devices&filter=all&used=true&order=Name of your device ?
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 20
- Joined: Tuesday 26 January 2016 22:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
epierre wrote:@lowca can you send me the /json.htm?type=devices&filter=all&used=true&order=Name of your device ?
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Set Level: 46 %",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 19,
"HardwareName" : "Mysensor2",
"HardwareType" : "MySensors Gateway with LAN interface",
"HardwareTypeVal" : 42,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000000",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-03-26 21:39:29",
"Level" : 46,
"LevelInt" : 7,
"MaxDimLevel" : 15,
"Name" : "Dimm1",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Set Level: 46 %",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "dimmer",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "76"
},
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
@lowca thanks for reporting, I've found things lost in translation, a v0.0.47 is out, can you test it ?
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 20
- Joined: Tuesday 26 January 2016 22:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
Short tests but it looks ok. Thxepierre wrote:@lowca thanks for reporting, I've found things lost in translation, a v0.0.47 is out, can you test it ?
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Bêta version in nodeJS
my pleasure !
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
Who is online
Users browsing this forum: No registered users and 1 guest