Page 3 of 5

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

Posted: Sunday 27 March 2016 1:01
by Justintime
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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 9:04
by epierre
Hello,

Who is on 3002 ? nginx or MDAH ?

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 10:30
by Justintime
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.

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 12:22
by epierre
@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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 12:49
by stuiow
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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 13:36
by epierre
are you installing it as root or sudoing ? sudoing is the only way at the moment

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 14:38
by stuiow
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:~$

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 14:45
by epierre
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 [email protected]

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 14:50
by stuiow
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 [email protected]
Spoiler: show
pi@raspberrypi:~$ sudo npm install -g [email protected]
pi@raspberrypi:~$

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 15:04
by epierre
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 [email protected]
so good, finish MDAH install

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 16:10
by stuiow
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 [email protected]
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:~$

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 16:42
by epierre
if there is /usr/local/bin node or npm remove it

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 17:00
by stuiow
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 [email protected]
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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 17:23
by stuiow
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 [email protected]

Then

Code: Select all

sudo apt-get install MyDomoAtHome  
Its still install the above line, but not got that far before!

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 17:34
by stuiow
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 [email protected]
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) ...
[email protected] node_modules/npm-install-missing
âââ [email protected] ([email protected])
âââ [email protected]
/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 [email protected]
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
[email protected] /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 [email protected]
[email protected] node_modules/basic-auth

[email protected] node_modules/underscore

[email protected] node_modules/cors
âââ [email protected]

[email protected] node_modules/method-override
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])

[email protected] node_modules/morgan
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])

[email protected] node_modules/express-session
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])

[email protected] node_modules/body-parser
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected]
âââ [email protected] ([email protected], [email protected])

[email protected] node_modules/errorhandler
âââ [email protected]
âââ [email protected] ([email protected], [email protected])

[email protected] node_modules/ejs

[email protected] node_modules/express
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/winston
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]

[email protected] node_modules/sync-request
âââ [email protected]
âââ [email protected] ([email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/multer
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])

[email protected] node_modules/nconf
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/request
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/forever
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] 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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 27 March 2016 20:43
by Justintime
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.

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Monday 28 March 2016 21:53
by epierre
@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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Monday 28 March 2016 22:49
by Justintime
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"

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Tuesday 29 March 2016 9:14
by epierre
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

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Thursday 31 March 2016 10:39
by epierre
@Justintime 0.0.49 should correct this one: Roller blinds switch