[MyDomoAtHome] Bêta version in nodeJS Topic is solved

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.
Justintime
Posts: 312
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: RE: Re: RE: Re: [MyDomoAtHome] Bêta version in nodeJS

Postby Justintime » Sunday 27 March 2016 2:01

epierre wrote:
Justintime wrote:
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 ?

YW for the wiki. I was stuck on that one. :)

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?


The "intrernal page" just reflects your configuration in /etc/mydomoathome/config.json

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

Nothing unfortunately i get connection refused.

Also changed the port in Nginx. But has nothing to do with internal connection I think.

Image

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Sunday 27 March 2016 9:04

Hello,

Who is on 3002 ? nginx or MDAH ?
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

Justintime
Posts: 312
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby Justintime » Sunday 27 March 2016 10:30

On 3002 is MDAh gateway page. But when i type 192.168.1.165:3002/devices it says connection refused. Like former post.

I changed the port for MDAH in the Nginx from 3001(old) to 3002.

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Sunday 27 March 2016 12:22

@Justintime: sorry there is something I don't understand, please correct where I'm wrong:

PI 1 version
3001: Nginx redirecting to 3002
3002: MDAH new version
You can access http://192.168.1.165:3002 but not http://192.168.1.165:3002/devices

What do you have in:
sudo service mydomoathome status
ps ax | grep node
cat /var/log/mydomoathome/mdah.log
cat /var/log/mydomoathome/usage.log
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

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 12:49

I see the setup has changed for MDAH.
I've got issues installing MDAH at the moment.
Can anyone provide assistance with this?

Code: Select all

root@raspberrypi:~# sudo apt-get install MyDomoAtHome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  MyDomoAtHome
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
Need to get 0 B/123 kB of archives.
After this operation, 827 kB disk space will be freed.
(Reading database ... 39733 files and directories currently installed.)
Preparing to unpack .../MyDomoAtHome_0.0.47_all.deb ...
dpkg: error processing archive /var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb


I tried deleting the archive folder but nothing changed, still ended in the same result above.
Stuart
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Sunday 27 March 2016 13:36

are you installing it as root or sudoing ? sudoing is the only way at the moment
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

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 14:38

Logging in as a user rather than root comes up with this
Spoiler: show
pi@raspberrypi:~$ sudo apt-get install MyDomoAtHome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
MyDomoAtHome
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
Need to get 0 B/123 kB of archives.
After this operation, 827 kB disk space will be freed.
(Reading database ... 39733 files and directories currently installed.)
Preparing to unpack .../MyDomoAtHome_0.0.47_all.deb ...
dpkg: error processing archive /var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$


The errors also appear when trying to install npm

Spoiler: show
pi@raspberrypi:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mydomoathome (0.0.26) ...
dpkg: error processing package mydomoathome (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mydomoathome
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Sunday 27 March 2016 14:45

some reported issues before, can you install this ?

Code: Select all

wget -q http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb
    sudo dpkg -i nodejs_4.4.2_armhf.deb
    sudo apt-get install npm
    sudo npm install -g npm@2.x
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

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 14:50

wget -q http://www.e-nef.com/domoticz/mdah/node ... _armhf.deb
Spoiler: show
pi@raspberrypi:~$ wget -q http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf . deb
pi@raspberrypi:~$ sudo dpkg -i nodejs_4.4.2_armhf.deb
(Reading database ... 39733 files and directories currently installed.)
Preparing to unpack nodejs_4.4.2_armhf.deb ...
Unpacking nodejs (4.2.2) over (4.2.2) ...
Setting up nodejs (4.2.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
pi@raspberrypi:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.
pi@raspberrypi:~$

sudo dpkg -i nodejs_4.4.2_armhf.deb
Spoiler: show
pi@raspberrypi:~$ sudo dpkg -i nodejs_4.4.2_armhf.deb
(Reading database ... 39733 files and directories currently installed.)
Preparing to unpack nodejs_4.4.2_armhf.deb ...
Unpacking nodejs (4.2.2) over (4.2.2) ...
Setting up nodejs (4.2.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
pi@raspberrypi:~$


sudo apt-get install npm
Spoiler: show
pi@raspberrypi:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mydomoathome (0.0.26) ...
dpkg: error processing package mydomoathome (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mydomoathome
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$


sudo npm install -g npm@2.x
Spoiler: show
pi@raspberrypi:~$ sudo npm install -g npm@2.x
pi@raspberrypi:~$
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Sunday 27 March 2016 15:04

so bad I left a wrong line

Code: Select all

wget -q http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb
    sudo dpkg -i nodejs_4.4.2_armhf.deb
    sudo npm install -g npm@2.x


so good, finish MDAH install
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

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 16:10

Spoiler: show
pi@raspberrypi:~$ wget -q http://www.e-nef.com/domoticz/mdah/node ... _armhf.deb
pi@raspberrypi:~$ sudo dpkg -i nodejs_4.4.2_armhf.deb
(Reading database ... 39748 files and directories currently installed.)
Preparing to unpack nodejs_4.4.2_armhf.deb ...
Unpacking nodejs (4.2.2) over (4.2.2) ...
Setting up nodejs (4.2.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
pi@raspberrypi:~$ sudo npm install -g npm@2.x
pi@raspberrypi:~$


I then sudo apt-get install MyDomoAtHome

Spoiler: show
pi@raspberrypi:~$ sudo apt-get install MyDomoAtHome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
MyDomoAtHome
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 123 kB of archives.
After this operation, 827 kB disk space will be freed.
Get:1 http://www.e-nef.com/domoticz/mdah/ MyDomoAtHome 0.0.47 [123 kB]
Fetched 123 kB in 6s (18.8 kB/s)
(Reading database ... 39748 files and directories currently installed.)
Preparing to unpack .../MyDomoAtHome_0.0.47_all.deb ...
dpkg: error processing archive /var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Sunday 27 March 2016 16:42

if there is /usr/local/bin node or npm remove 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

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 17:00

Spoiler: show
node was in there, I deleted it.
Didn't result in any different response though, still getting the same error.
Spoiler: show
pi@raspberrypi:~$ sudo dpkg -i nodejs_4.4.2_armhf.deb
(Reading database ... 39748 files and directories currently installed.)
Preparing to unpack nodejs_4.4.2_armhf.deb ...
Unpacking nodejs (4.2.2) over (4.2.2) ...
Setting up nodejs (4.2.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
pi@raspberrypi:~$ sudo npm install -g npm@2.x
pi@raspberrypi:~$ sudo apt-get install MyDomoAtHome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
MyDomoAtHome
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 123 kB of archives.
After this operation, 827 kB disk space will be freed.
Get:1 http://www.e-nef.com/domoticz/mdah/ MyDomoAtHome 0.0.47 [123 kB]
Fetched 123 kB in 0s (143 kB/s)
(Reading database ... 39748 files and directories currently installed.)
Preparing to unpack .../MyDomoAtHome_0.0.47_all.deb ...
dpkg: error processing archive /var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/MyDomoAtHome_0.0.47_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$


I did delete MyDomoAtHome_0.0.47_all.deb from the /var/cache/apt/archives folder too, so it can get a fresh copy. (well that's my thinking) - but no difference in result
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 17:23

Still working on things, but using this commands gives me more success.

Code: Select all

sudo apt-get install nodejs


Then

Code: Select all

sudo npm install -g npm@2.x


Then

Code: Select all

sudo apt-get install MyDomoAtHome 


Its still install the above line, but not got that far before!
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

stuiow
Posts: 157
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby stuiow » Sunday 27 March 2016 17:34

Ok, quick update, its working. All URL's appear to work, my mobile is talking to MDAH and I can switch switches and view live data.

Here is as much of my command window as I could paste to show what I did.

Spoiler: show
Errors were encountered while processing:
mydomoathome
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$ sudo npm install -g npm@2.x
sudo: npm: command not found
pi@raspberrypi:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ax25-node libax25 libfile-copy-recursive-perl openbsd-inetd update-inetd
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
rlwrap
The following packages will be REMOVED:
node npm
The following NEW packages will be installed:
rlwrap
The following packages will be upgraded:
nodejs
1 upgraded, 1 newly installed, 2 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 7,902 kB of archives.
After this operation, 3,347 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main rlwrap armhf 0.41-1 [70.3 kB]
Get:2 https://deb.nodesource.com/node_4.x/ jessie/main nodejs armhf 4.4.0-1nodesource1~jessie1 [7,832 kB]
Fetched 7,902 kB in 7s (1,057 kB/s)
(Reading database ... 39748 files and directories currently installed.)
Removing npm (2.14.7) ...
Removing node (0.3.2-7.4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package rlwrap.
(Reading database ... 37233 files and directories currently installed.)
Preparing to unpack .../rlwrap_0.41-1_armhf.deb ...
Unpacking rlwrap (0.41-1) ...
Preparing to unpack .../nodejs_4.4.0-1nodesource1~jessie1_armhf.deb ...
Unpacking nodejs (4.4.0-1nodesource1~jessie1) over (4.2.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up rlwrap (0.41-1) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
Setting up nodejs (4.4.0-1nodesource1~jessie1) ...
Setting up mydomoathome (0.0.26) ...
npm-install-missing@0.1.4 node_modules/npm-install-missing
âââ async@2.0.0-rc.2 (lodash@4.6.1)
âââ npm@3.8.3
/var/lib/dpkg/info/mydomoathome.postinst: line 11: npm-install-missing: command not found
dpkg: error processing package mydomoathome (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
mydomoathome
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:~$ sudo apt-get upgrade npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nodejs : Conflicts: npm
E: Broken packages
pi@raspberrypi:~$ sudo npm install -g npm@2.x
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
npm@2.15.2 /usr/lib/node_modules/npm
pi@raspberrypi:~$ sudo apt-get install MyDomoAtHome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ax25-node libax25 libfile-copy-recursive-perl openbsd-inetd update-inetd
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
MyDomoAtHome
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/123 kB of archives.
After this operation, 827 kB disk space will be freed.
(Reading database ... 40509 files and directories currently installed.)
Preparing to unpack .../MyDomoAtHome_0.0.47_all.deb ...
Unpacking mydomoathome (0.0.47) over (0.0.26) ...
Processing triggers for systemd (215-17+deb8u3) ...
Setting up mydomoathome (0.0.47) ...
npm WARN optional dep failed, continuing fsevents@1.0.9
basic-auth@1.0.3 node_modules/basic-auth

underscore@1.4.4 node_modules/underscore

cors@2.7.1 node_modules/cors
âââ vary@1.1.0

method-override@2.3.5 node_modules/method-override
âââ vary@1.0.1
âââ methods@1.1.2
âââ parseurl@1.3.1
âââ debug@2.2.0 (ms@0.7.1)

morgan@1.7.0 node_modules/morgan
âââ on-headers@1.0.1
âââ depd@1.1.0
âââ on-finished@2.3.0 (ee-first@1.1.1)
âââ debug@2.2.0 (ms@0.7.1)

express-session@1.13.0 node_modules/express-session
âââ cookie-signature@1.0.6
âââ utils-merge@1.0.0
âââ on-headers@1.0.1
âââ parseurl@1.3.1
âââ cookie@0.2.3
âââ depd@1.1.0
âââ crc@3.4.0
âââ uid-safe@2.0.0 (base64-url@1.2.1)
âââ debug@2.2.0 (ms@0.7.1)

body-parser@1.15.0 node_modules/body-parser
âââ content-type@1.0.1
âââ bytes@2.2.0
âââ depd@1.1.0
âââ on-finished@2.3.0 (ee-first@1.1.1)
âââ qs@6.1.0
âââ debug@2.2.0 (ms@0.7.1)
âââ raw-body@2.1.6 (unpipe@1.0.0, bytes@2.3.0)
âââ http-errors@1.4.0 (statuses@1.2.1, inherits@2.0.1)
âââ iconv-lite@0.4.13
âââ type-is@1.6.12 (media-typer@0.3.0, mime-types@2.1.10)

errorhandler@1.4.3 node_modules/errorhandler
âââ escape-html@1.0.3
âââ accepts@1.3.2 (negotiator@0.6.0, mime-types@2.1.10)

ejs@2.4.1 node_modules/ejs

express@4.13.4 node_modules/express
âââ escape-html@1.0.3
âââ cookie-signature@1.0.6
âââ utils-merge@1.0.0
âââ methods@1.1.2
âââ vary@1.0.1
âââ content-type@1.0.1
âââ parseurl@1.3.1
âââ array-flatten@1.1.1
âââ cookie@0.1.5
âââ merge-descriptors@1.0.1
âââ fresh@0.3.0
âââ etag@1.7.0
âââ range-parser@1.0.3
âââ path-to-regexp@0.1.7
âââ serve-static@1.10.2
âââ content-disposition@0.5.1
âââ depd@1.1.0
âââ qs@4.0.0
âââ on-finished@2.3.0 (ee-first@1.1.1)
âââ finalhandler@0.4.1 (unpipe@1.0.0)
âââ debug@2.2.0 (ms@0.7.1)
âââ proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5)
âââ type-is@1.6.12 (media-typer@0.3.0, mime-types@2.1.10)
âââ accepts@1.2.13 (negotiator@0.5.3, mime-types@2.1.10)
âââ send@0.13.1 (destroy@1.0.4, ms@0.7.1, statuses@1.2.1, mime@1.3.4, http-errors@1.3.1)

winston@1.1.2 node_modules/winston
âââ cycle@1.0.3
âââ stack-trace@0.0.9
âââ isstream@0.1.2
âââ eyes@0.1.8
âââ async@1.0.0
âââ pkginfo@0.3.1
âââ colors@1.0.3

sync-request@3.0.0 node_modules/sync-request
âââ http-response-object@1.1.0
âââ concat-stream@1.5.1 (inherits@2.0.1, typedarray@0.0.6, readable-stream@2.0.6)
âââ then-request@2.2.0 (caseless@0.11.0, http-basic@2.5.1, qs@6.1.0, promise@7.1.1)

multer@0.1.8 node_modules/multer
âââ qs@1.2.2
âââ mkdirp@0.3.5
âââ type-is@1.5.7 (media-typer@0.3.0, mime-types@2.0.14)
âââ busboy@0.2.13 (readable-stream@1.1.13, dicer@0.2.5)

nconf@0.8.4 node_modules/nconf
âââ ini@1.3.4
âââ secure-keys@1.0.0
âââ async@1.5.2
âââ yargs@3.32.0 (decamelize@1.2.0, camelcase@2.1.1, y18n@3.2.1, window-size@0.1.4, cliui@3.1.1, string-width@1.0.1, os-locale@1.4.0)

request@2.69.0 node_modules/request
âââ aws-sign2@0.6.0
âââ forever-agent@0.6.1
âââ tunnel-agent@0.4.2
âââ caseless@0.11.0
âââ oauth-sign@0.8.1
âââ is-typedarray@1.0.0
âââ stringstream@0.0.5
âââ isstream@0.1.2
âââ json-stringify-safe@5.0.1
âââ extend@3.0.0
âââ tough-cookie@2.2.2
âââ node-uuid@1.4.7
âââ qs@6.0.2
âââ combined-stream@1.0.5 (delayed-stream@1.0.0)
âââ mime-types@2.1.10 (mime-db@1.22.0)
âââ form-data@1.0.0-rc4 (async@1.5.2)
âââ aws4@1.3.2 (lru-cache@4.0.1)
âââ bl@1.0.3 (readable-stream@2.0.6)
âââ hawk@3.1.3 (cryptiles@2.0.5, boom@2.10.1, sntp@1.0.9, hoek@2.16.3)
âââ http-signature@1.1.1 (assert-plus@0.2.0, jsprim@1.2.2, sshpk@1.7.4)
âââ har-validator@2.0.6 (pinkie-promise@2.0.0, commander@2.9.0, chalk@1.1.1, is-my-json-valid@2.13.1)

forever@0.15.1 node_modules/forever
âââ path-is-absolute@1.0.0
âââ object-assign@3.0.0
âââ clone@1.0.2
âââ colors@0.6.2
âââ timespan@2.3.0
âââ cliff@0.1.10 (eyes@0.1.8, colors@1.0.3)
âââ optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
âââ nssocket@0.5.3 (eventemitter2@0.4.14, lazy@1.0.11)
âââ prettyjson@1.1.3 (colors@1.1.2, minimist@1.2.0)
âââ winston@0.8.3 (cycle@1.0.3, async@0.2.10, stack-trace@0.0.9, eyes@0.1.8, isstream@0.1.2, pkginfo@0.3.1)
âââ utile@0.2.1 (async@0.2.10, deep-equal@1.0.1, i@0.3.4, ncp@0.4.2, mkdirp@0.5.1, rimraf@2.5.2)
âââ nconf@0.6.9 (ini@1.3.4, async@0.2.9, optimist@0.6.0)
âââ shush@1.0.0 (strip-json-comments@0.1.3, caller@0.0.1)
âââ flatiron@0.4.3 (director@1.2.7, optimist@0.6.0, prompt@0.2.14, broadway@0.3.6)
âââ forever-monitor@1.6.0 (minimatch@2.0.10, ps-tree@0.0.3, broadway@0.3.6, chokidar@1.4.3)

moment@2.12.0 node_modules/moment
Synchronizing state for mydomoathome.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mydomoathome defaults
Executing /usr/sbin/update-rc.d mydomoathome enable
pi@raspberrypi:~$ sudo service mydomoathome restart
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground

Justintime
Posts: 312
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby Justintime » Sunday 27 March 2016 20:43

Dont ask me how i did it. But Stuiow helped me a bit on the way with his ssh put outs... I saw some same errors coming by.

So i am running too.

Three issues:
-I am missing a blinds Switch
- Delivered power today is not showing. (mysensors)
- Today used water (mysensor) is trange by the way because water flow is visable
How can i help to deliver you the data you need to investigate.

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Monday 28 March 2016 21:53

@justintime I need the /json.htm?type=devices&filter=all&used=true&order=Name for those devices missing (points 1 and 2)
for the 3rd, I would need the above plus what you would expect to see from 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

Justintime
Posts: 312
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby Justintime » Monday 28 March 2016 22:49

epierre wrote:@justintime I need the /json.htm?type=devices&filter=all&used=true&order=Name for those devices missing (points 1 and 2)
for the 3rd, I would need the above plus what you would expect to see from it



Okay here we go:

Roller blinds switch:

Spoiler: show
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Closed",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 3,
"HardwareName" : "RFXCOM",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "009A25",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-03-28 20:15:03",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 0,
"Name" : "Duo Rolgordijn",
"Notifications" : "false",
"PlanID" : "2",
"PlanIDs" : [ 2 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Closed",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "RollerTrol, Hasta new",
"SwitchType" : "Venetian Blinds EU",
"SwitchTypeVal" : 15,
"Timers" : "true",
"Type" : "Blinds",
"TypeImg" : "blinds",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "153",
"YOffset" : "885",
"idx" : "14"


ENergy counter missing "counter today"

Spoiler: show
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "395.215",
"CounterDeliv" : "0.000",
"CounterDelivToday" : "0.000 kWh",
"CounterToday" : "11.472 kWh",
"CustomImage" : 0,
"Data" : "175750;219465;0;0;404;0",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 22,
"HardwareName" : "Elektra usb",
"HardwareType" : "P1 Smart Meter USB",
"HardwareTypeVal" : 4,
"HaveTimeout" : false,
"ID" : "1",
"LastUpdate" : "2016-03-28 22:41:09",
"Name" : "Power",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "404 Watt",
"UsageDeliv" : "0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "287"


Water: missing "data"or "counter" and missing "counter today"

Spoiler: show
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "90.386 m3",
"CounterToday" : "447 Liter",
"CustomImage" : 0,
"Data" : "90.386 m3",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 19,
"HardwareName" : "Mysensors",
"HardwareType" : "MySensors Gateway USB",
"HardwareTypeVal" : 41,
"HaveTimeout" : false,
"ID" : "0601",
"LastUpdate" : "2016-03-28 21:53:40",
"Name" : "Water Meter",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "RFXMeter counter",
"SwitchTypeVal" : 2,
"Timers" : "false",
"Type" : "RFXMeter",
"TypeImg" : "counter",
"Unit" : 0,
"Used" : 1,
"ValueQuantity" : "",
"ValueUnits" : "",
"XOffset" : "0",
"YOffset" : "0",
"idx" : "133"

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Tuesday 29 March 2016 9:14

Energy counter missing "counter today": this is a new P1 Meter, we have a discussion on what to display for this for there are many data in it, proposal was to make this:

"Counter":"7506.026", --> Energy usage total (=data1+data2)
"CounterDeliv":"5372.345", --> Energy return total (=data3+data4)
"CounterDelivToday":"11.069 kWh", --> Energy return today
"CounterToday":"3.427 kWh", --> Energy usage today
"Unit":1,"Usage":"0 Watt", --> Energy usage current (=data5)
"UsageDeliv":"1020 Watt", --> Energy return current (=data6)


I've set 3 issues to track this: https://github.com/empierre/MyDomoAtHome/issues
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

User avatar
epierre
Posts: 726
Joined: Wednesday 05 March 2014 14:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Bêta version in nodeJS

Postby epierre » Thursday 31 March 2016 10:39

@Justintime 0.0.49 should correct this one: Roller blinds switch
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


Return to “Third party and supplementary tools”

Who is online

Users browsing this forum: No registered users and 1 guest