Page 1 of 5

[MyDomoAtHome] Bêta version in nodeJS

Posted: Monday 16 November 2015 22:14
by epierre
Hello,

DEBIAN PACKAGE:
an betaversion as a debian package on Raspbian (no automatic startup yet), works well on debian.
http://www.e-nef.com/domoticz/mdah/node ... latest.deb

==>> SEE HERE FOR INSTALLATION: https://github.com/empierre/MyDomoAtHome/tree/nodejs

on Raspbian, please install first to have a stable nodeJS :
http://www.e-nef.com/domoticz/mdah/npm_2.14.7_armhf.deb
http://www.e-nef.com/domoticz/mdah/node ... _armhf.deb

on all other, version 4 is required (testing/unstable are fine):
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

you need to edit /etc/mydomoathome/config.json containing(change your ip !):

Code: Select all

{
  "app_name": "MyDomoAtHome",
  "domo_path": "http://192.168.0.28:8080",
  "port": "3002"
}
it runs on port 3002 and App name is "MyDomoAtHome Dev", so you can run legacy and beta at the same time.

FYI new install is in /usr/share/mydomoathome/

TESTING/SUPPORT:
preffered method: https://mydomoathome.slack.com/messages ... s-testing/
==> Please mail me on [email protected] with your email to get an invite

SYNOLOGY PACKAGE:
a very alpha alpha version as a debian package (NOT TESTED):
https://github.com/empierre/MyDomoAtHom ... noarch.spk


UPDATES:
- faster than the legacy perl dancer on a pi B
- sorted out the armv6 nodejs situation (raspbian is compiled for armv6 and works for armv7 too (not the opposite)), specific packages needed available here: http://www.e-nef.com/domoticz/mdah/
- all is there except graphes

CURRENT ISSUES:
- debian package: auto startup ok
- Docker to be tested
- graphs not yet implemented
- synology package: first untested version for all arch
- synology: define where to place configuration file
- have the package hosted on raspian archive

Re: [MyDomoAtHome] Bêta tests

Posted: Monday 16 November 2015 22:17
by epierre
current issues:
- dependencies not installed
- run on startup ?

Re: [MyDomoAtHome] Bêta tests

Posted: Friday 20 November 2015 22:52
by epierre
updates:
- faster than the legacy perl dancer on a pi B
- sorted out the armv6 nodejs situation (raspbian is compiled for armv6 and works for armv7 too (not the opposite)), specific packages needed available here: https://github.com/empierre/MyDomoAtHom ... ejs/binary

current issues:
- debian package: auto startup not possible as is on wheezy class raspbian
- actions/graphs not yet implemented
- synology package: first untested version for armada375

Re: [MyDomoAtHome] Bêta tests

Posted: Saturday 21 November 2015 15:40
by kinghuzi
Hi.. can you add x86 support for syno spk

Re: [MyDomoAtHome] Bêta tests

Posted: Saturday 21 November 2015 16:25
by epierre
kinghuzi wrote:Hi.. can you add x86 support for syno spk
Hello,

I will, but since I do it manually I add the architecture manually... what is you so I make it ?

Re: [MyDomoAtHome] Bêta tests

Posted: Saturday 21 November 2015 17:48
by jumbotroll
epierre wrote:
kinghuzi wrote:Hi.. can you add x86 support for syno spk
Hello,

I will, but since I do it manually I add the architecture manually... what is you so I make it ?
You can use:
arch="noarch"
and it's arch independent

Re: [MyDomoAtHome] Bêta tests

Posted: Saturday 21 November 2015 18:02
by epierre
jumbotroll wrote: You can use:
arch="noarch"
and it's arch independent
Thanks Jumbotroll, it is done !

Re: [MyDomoAtHome] Bêta tests

Posted: Tuesday 24 November 2015 14:10
by epierre
@kinghuzi @jumbotroll have you tested it yet ?

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 20 December 2015 16:48
by raym
Hi epierre, will this nodejs version eventually replace the existing mdah version? If so, am I able to test on Ubuntu?

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 20 December 2015 17:13
by epierre
raym wrote:Hi epierre, will this nodejs version eventually replace the existing mdah version? If so, am I able to test on Ubuntu?
Hello,

yes it will, I've not yet finished, others things went in the middle... too much time one one thing and many solicitations and in the end priority management :D

you can test it, it covers all information but does not yet manages actions (no switches, no graphs...). I still have not tested whether it works fine on raspbian (non systemd), but on ubuntu it is fine !

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 20 December 2015 17:47
by deennoo
Thx for this, which nodejs did you use ?

What about homebridge from sdcard img who need node 0.12.1?.

As it tooks me 3 mounth to make it finally works, i dont want to break it by updating MDAH.

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 20 December 2015 17:51
by epierre
if you have nodejs 0.10 nothing to change, only raspbian is on.0.6 and is thus broken for everything...

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 20 December 2015 21:46
by raym
epierre wrote:
raym wrote:Hi epierre, will this nodejs version eventually replace the existing mdah version? If so, am I able to test on Ubuntu?
Hello,

yes it will, I've not yet finished, others things went in the middle... too much time one one thing and many solicitations and in the end priority management :D

you can test it, it covers all information but does not yet manages actions (no switches, no graphs...). I still have not tested whether it works fine on raspbian (non systemd), but on ubuntu it is fine !
Thanks for your reply. It sounds exciting and I look forward to testing soon.

Where can I find the install procedure for Ubuntu and similar?

Thanks again.

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Monday 22 February 2016 14:14
by epierre
Hi All,

I've restarted yesterday, .deb not updated, but on/off is tested working.

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Monday 22 February 2016 22:47
by epierre
Hello,

version 0.0.13 is open for testing, no graphes though...

modify the config file as fitted, report bugs to github, and discussion here !

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Friday 26 February 2016 13:32
by epierre
version 0.0.14 is open for testing, no graphes yes.

Debian package available.

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Saturday 27 February 2016 22:19
by epierre
0.0.15 tested working on debian with systemd

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Saturday 27 February 2016 23:37
by deennoo
Have you try it on a regular Synologie ? Dunning DMS 5

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 28 February 2016 9:16
by epierre
@deenoo it will, it was too high a target to start, so I prefer to make it more MVP and then extend si ut will be tested first before expending.

also syno has more needs, you don't mess with its filesystem... so specific strategy for it to be done

Re: [MyDomoAtHome] Bêta version in nodeJS

Posted: Sunday 28 February 2016 9:22
by deennoo
OK !

Just start an xpenology before purchase a real syno, i saw that be can made a debian chroot part. Homebridge can be set and running on it, so i was hoping doing the same for MDAH.