Page 23 of 55
Re: [MyDomoAtHome] Support thread
Posted: Wednesday 24 February 2016 21:54
by Evelen
Tok a recovery to backup for before i installed MyDomoAtHome and try'd again, like this:
cd domoticz
git clone https://github.com/empierre/MyDomoAtHome MyDomoAtHome
cd MyDomoAtHome
cp config.yml.def config.yml
changed this files:
Config.yml:
domo_path: "http://192.168.1.123:8080"
external_url_camera : "http://ip:port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=&pwd="
volumio_path: ""
(no need to change anythinh with IP-camera? Edited domo_path IP)
start2.sh:
export PERL5LIB='/home/flemmingss/domoticz/MyDomoAtHome/lib/'
(edited username)
MyDomoAtHome.sh:
APP_DIR="/home/flemmingss/domoticz/"
(edited username)
config.yml.def:
domo_path: "http://192.168.1.123:8080"
external_url_camera : "http://ip:port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=&pwd="
volumio_path: ""
(edited ip at domo_path)
sh ./run-once.sh <-and yes to all
Still have same problems to start the service..
(the server is a VMWare esxi server, with 64bit Ubuntu server as OS)
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 14:15
by Doler
Doler wrote:epierre wrote:looks we had this issue on another VM try... no clue why...
Hmm...
If I do "dpkg -l | grep cpan" I get " libcpan-meta-perl (Perl module to access CPAN distributions meta data)" as a result. So there is something available? Could it be that the path is not correct? "echo $PATH" gives "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games", maybe there is something missing?
Thanks, Mark
SOLVED.
Problem appeared to be a missing cpanminus. After some internet searching I installed that using:
Code: Select all
sudo apt-get install curl gcc-4.7
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
Then I removed/re-installed MDAH where run-once.sh gave the following result:
- Spoiler: show
- pi@raspberrypi:~/domoticz/MyDomoAtHome $ sh ./run-once.sh
Will update packages list first...
Will update packages list first...
Now getting the needed software...
Now getting getting and installing dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdancer-perl is already the newest version.
libdancer2-perl is already the newest version.
libfile-slurp-perl is already the newest version.
liblwp-protocol-psgi-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
libcrypt-ssleay-perl is already the newest version.
libdatetime-format-strptime-perl is already the newest version.
libdatetime-perl is already the newest version.
libjson-perl is already the newest version.
libplack-perl is already the newest version.
perl is already the newest version.
starman is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdbd-sqlite3-perl is already the newest version.
libdbi-perl is already the newest version.
sqlite3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libaudio-mpd-perl is already the newest version.
libnet-upnp-perl is already the newest version.
libpoe-component-client-mpd-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--> Working on Time::Moment
Fetching http://www.cpan.org/authors/id/C/CH/CHA ... .38.tar.gz ... OK
Configuring Time-Moment-0.38 ... OK
==> Found dependencies: Test::Requires, Test::Fatal, Test::Number::Delta
--> Working on Test::Requires
Fetching http://www.cpan.org/authors/id/T/TO/TOK ... .10.tar.gz ... OK
Configuring Test-Requires-0.10 ... OK
Building and testing Test-Requires-0.10 ... OK
Successfully installed Test-Requires-0.10
--> Working on Test::Fatal
Fetching http://www.cpan.org/authors/id/R/RJ/RJB ... 014.tar.gz ... OK
Configuring Test-Fatal-0.014 ... OK
Building and testing Test-Fatal-0.014 ... OK
Successfully installed Test-Fatal-0.014
--> Working on Test::Number::Delta
Fetching http://www.cpan.org/authors/id/D/DA/DAG ... .06.tar.gz ... OK
Configuring Test-Number-Delta-1.06 ... OK
Building and testing Test-Number-Delta-1.06 ... OK
Successfully installed Test-Number-Delta-1.06
Building and testing Time-Moment-0.38 ... OK
Successfully installed Time-Moment-0.38
4 distributions installed
Now installing the service
pi@raspberrypi:~/domoticz/MyDomoAtHome $
That seemed to be much better, at least there was no error. The only thing was that the service still didn't run. The solution proved to be running update:
- Spoiler: show
- pi@raspberrypi:~/domoticz/MyDomoAtHome $ ./update-mdah.sh
Stoping MyDomoAtHome service...
Retrieving latest code...
Already up-to-date.
Checking latest libraries dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
libaudio-mpd-perl is already the newest version.
libnet-upnp-perl is already the newest version.
libpoe-component-client-mpd-perl is already the newest version.
whiptail is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
libcrypt-ssleay-perl is already the newest version.
libdancer2-perl is already the newest version.
libdatetime-format-strptime-perl is already the newest version.
libdatetime-perl is already the newest version.
libjson-perl is already the newest version.
libplack-perl is already the newest version.
perl is already the newest version.
starman is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Restarting MyDomoAtHome service...
Update path finished
● MyDomoAtHome.service - LSB: Start imperihome
Loaded: loaded (/etc/init.d/MyDomoAtHome.sh)
Active: active (running) since Thu 2016-02-25 11:14:36 CET; 105ms ago
Process: 6083 ExecStop=/etc/init.d/MyDomoAtHome.sh stop (code=exited, status=0/SUCCESS)
Process: 6230 ExecStart=/etc/init.d/MyDomoAtHome.sh start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/MyDomoAtHome.service
└─6236 /usr/bin/perl /usr/bin/plackup -E production -s Starman --workers=4 --user www-data --group www-...
Feb 25 11:14:36 raspberrypi MyDomoAtHome.sh[6230]: Starting plack server: MyDomoAtHome.
Feb 25 11:14:36 raspberrypi systemd[1]: Started LSB: Start imperihome.
pi@raspberrypi:~/domoticz/MyDomoAtHome $
Although it didn't visibly change anything, the end result was that the service was running
pi@raspberrypi:~/domoticz/MyDomoAtHome $ ps ax | grep starman
6236 ? S 0:06 starman master
6262 ? S 0:00 starman worker
6263 ? S 0:00 starman worker
6264 ? S 0:00 starman worker
6265 ? S 0:00 starman worker
6582 pts/0 S+ 0:00 grep --color=auto starman
Grtz, Mark
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 18:35
by epierre
@Doler the issue is that you're on a repository that does not seems to have all modules... this one is not cpanm it is just the minimum basic...
tyry this:
curl -L
https://cpanmin.us | perl - --sudo App::cpanminus
else
perl -MCPAN -e shell
then input:
install Time::Moment
install App::cpanminus
we'll if it can work
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 18:38
by epierre
@Doler oops funny you found out, great !
@Evelen same punition as above to make it work, then end is near

Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 20:20
by Evelen
Did this:
curl -L
https://cpanmin.us | perl - --sudo App::cpanminus
perl -MCPAN -e shell
yes
sudo
yes
install Time::Moment
install App::cpanminus
exit
It works

Also found the MyDomoAtHome on
http://192.168.1.123:3001/
rebooted, still works
EDIT: Well, not 100%
http://192.168.1.123:8080/json.htm?type=devices <-can see devices
http://192.168.1.123:3001/ <-works
http://192.168.1.123:3001/devices <- hmm, this changes every refresh
Code: Select all
{"devices":[{"id":"S00","type":"DevGenericSensor","name":"Unable to connect to Domoticz","params":[{"key":"Value","graphable":"false","unit":"","value":"http://192.168.1.123:8080"}]},{"id":"S01","type":"DevGenericSensor","name":"Please add this gateway in Setup/settings/Local Networks","params":[{"value":"","unit":"","graphable":"false","key":"Value"}]}]}
Also ImperiHome say "Unable to connect to Domoticz", but it looks like it find "MyDomoAtHome"
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 21:14
by epierre
@Evelen now this is a configuration problem, have you set a login/pass in domoticz ?
also you must rename config.yml.def to config.yml (as said in tutorial)
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 22:34
by PappleD
Hello,
I got this error when trying to start service (./start2.sh)
Code: Select all
Error while loading /home/pi/domoticz/MyDomoAtHome/bin/app.pl: Can't locate Dancer.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/pi/domoticz/MyDomoAtHome/bin/app.pl line 19.
BEGIN failed--compilation aborted at /home/pi/domoticz/MyDomoAtHome/bin/app.pl line 19.
so i did a ./run-once with this result "Unable to locate package libdancer2-perl"
Code: Select all
Will update packages list first...
Will update packages list first...
Now getting the needed software...
Now getting getting and installing dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdancer2-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
libcrypt-ssleay-perl is already the newest version.
libdatetime-format-strptime-perl is already the newest version.
libdatetime-perl is already the newest version.
libjson-perl is already the newest version.
libplack-perl is already the newest version.
perl is already the newest version.
starman is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdbd-sqlite3-perl is already the newest version.
libdbi-perl is already the newest version.
sqlite3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libaudio-mpd-perl is already the newest version.
libnet-upnp-perl is already the newest version.
libpoe-component-client-mpd-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Time::Moment is up to date. (0.38)
Now installing the service
update-rc.d: using dependency based boot sequencing
so i did a ./update-mdah.sh
again with E: Unable to locate package libdancer2-perl and some other errors.
Code: Select all
Stoping MyDomoAtHome service...
[....] Stopping plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 3115: No such process
start-stop-daemon: warning: failed to kill 3115: No such process
failed!
Retrieving latest code...
error: cannot open .git/FETCH_HEAD: Permission denied
Checking latest libraries dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
libaudio-mpd-perl is already the newest version.
libnet-upnp-perl is already the newest version.
libpoe-component-client-mpd-perl is already the newest version.
whiptail is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
E: Unable to locate package libdancer2-perl
Restarting MyDomoAtHome service...
Hope someone have an idea on how to solve this?
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 22:41
by epierre
@PappleD Dancer2 should have been an evolution, this is where I dropped dancer and I am rewriting it in nodeJS, so no issue there.
I don't understand why it has disappeared, but this line should fix it (is in run-once also...):
sudo apt-get -y install libdancer-perl
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 22:51
by Evelen
epierre wrote:@Evelen now this is a configuration problem, have you set a login/pass in domoticz ?
also you must rename config.yml.def to config.yml (as said in tutorial)
yepp, so one step further
anyway, I have both files, and i have edited them so them are the same: (do i need to delete the .def file?
Also, YES, i have a username and password for domoticz.
Anyway, looks like this worked: (localhost or 127.0.0.1 did not work, idk why..)

Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 22:58
by epierre
so as said in the tutorial add 127.0.0.1 or the ip to the local networks in domoticz
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 23:03
by nicolai
epierre wrote:@PappleD Dancer2 should have been an evolution, this is where I dropped dancer and I am rewriting it in nodeJS, so no issue there.
I don't understand why it has disappeared, but this line should fix it (is in run-once also...):
sudo apt-get -y install libdancer-perl
I have exactly the same issue. Running the above doesn't help. I get this error:
Code: Select all
pi@raspberrypi ~/domoticz/MyDomoAtHome $ ./update-mdah.sh
Stoping MyDomoAtHome service...
[ ok ] Stopping plack server: MyDomoAtHome.
Retrieving latest code...
Already up-to-date.
Checking latest libraries dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
libaudio-mpd-perl is already the newest version.
libnet-upnp-perl is already the newest version.
libpoe-component-client-mpd-perl is already the newest version.
whiptail is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
E: Unable to locate package libdancer2-perl
Restarting MyDomoAtHome service...
[ ok ] Starting plack server: MyDomoAtHome.
Update path finished
[FAIL] MyDomoAtHome process is not running ... failed!
What am I doing wrong? I followed your brilliant guide to install and configure everyhting. This is the only error I have seen until now.
Re: [MyDomoAtHome] Support thread
Posted: Thursday 25 February 2016 23:07
by nicolai
And this is if I try to do ./start2-2.sh manually:
Code: Select all
pi@raspberrypi ~/domoticz/MyDomoAtHome $ ./start2-2.sh
Error while loading bin/app2.pl: Can't locate Dancer2.pm in @INC (@INC contains: /home/pi/domoticz/MyDomoAtHome/bin/../lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/pi/domoticz/MyDomoAtHome/bin/../lib/Domo2.pm line 20.
BEGIN failed--compilation aborted at /home/pi/domoticz/MyDomoAtHome/bin/../lib/Domo2.pm line 20.
Compilation failed in require at bin/app2.pl line 7.
BEGIN failed--compilation aborted at bin/app2.pl line 7.
Re: [MyDomoAtHome] Support thread
Posted: Friday 26 February 2016 11:35
by epierre
@nicolai do not use start2-2.sh just Start2.sh. I will remove the other for it creates confusion. The message is not an error in the end.
following what the start2.sh says, you may need:
sudo apt-get -y install libdancer-perl
and/or
sudo curl -L
https://cpanmin.us | perl - --sudo App::cpanminus
and relaunch the run-once.sh
for the 2nd, do a git pull first, I have added it in the run-once.sh
Re: [MyDomoAtHome] Support thread
Posted: Friday 26 February 2016 11:37
by epierre
Evelen wrote:
Anyway, looks like this worked: (localhost or 127.0.0.1 did not work, idk why..)

it really depends on which network "card" your system will use...
Re: [MyDomoAtHome] Support thread
Posted: Friday 26 February 2016 11:49
by epierre
@all sorry for those moving dependencies issues... used to work, not working for some... the definitive solution is comming with the nodeJS version, all is there except graphes and testers are already welcome
I am setting a slack channel for this on
https://mydomoathome.slack.com to make support quicker and miss no message

so please send me your email so I can invite you !
Re: [MyDomoAtHome] Support thread
Posted: Friday 26 February 2016 12:07
by nicolai
Epierre, really appriciate your support and all the work you are putting into this. Please add me to your slack channel -
Re: [MyDomoAtHome] Support thread
Posted: Friday 26 February 2016 12:10
by epierre
thanks nicolas, for people interrested and if you don't want to see your email on a forum please mail me on
[email protected]
Re: [MyDomoAtHome] Support thread
Posted: Friday 26 February 2016 19:45
by PappleD
Thank you Epierre for your help.
It did not work unfortonaly, but someore i else i found something i tried. and that succeed!
i did: sudo cpanm Task::Plack
and after that my errors were fixed and i was able to start MyDomoAtHome.
And now i can you switch my light with my app! "dancing"
now i'm going for outside network support... fingers crossed
Re: [MyDomoAtHome] Support thread
Posted: Saturday 27 February 2016 18:40
by Evelen
I must say I am not very impressed with imperihome. No "Push on button" and "Push off button", you can not change the text size, there are only two themes, very few icons, and those are reasonably low, and only a few are dynamic.
generally very little opportunity to do things cosmetic fine.
In addition, one must have this Imperihome menu bar at the top.
Well, there's no better alternatives to Domoticz, so get well live with Imperihome.
Anyway, MyDomoAtHome has worked fine until now.
Some things I would have liked:
- RGBW lights control
Re: [MyDomoAtHome] Support thread
Posted: Saturday 27 February 2016 18:56
by epierre
hello,
go to rhe custom mode, yoy can do all that even your own tbeme or home picture.
rgb is an issue in fomoticz I've not yet sorted out...