MyDomoAtHome - ImperiHome

Vous connaissez des applis Android ou Apple sympa, vous avez un problème de config, postez ici
ricky74
Messages : 68
Enregistré le : 03 sept. 2015, 13:58

Re: MyDomoAtHome - ImperiHome

Message par ricky74 »

Salut,

J'ai un petite amélioration à te soumettre...
Cela concerne le RFXMeter que tu as ajouté l'autre jour. Il fonctionne bien cependant dans domoticz j'ai deux informations :
Le compteur total et un compteur journalier.

"Counter" : "10717.246 kWh",
"CounterToday" : "1.512 kWh",

Dans imperihome, sous le device j'ai deux widgets, l'un retourne le "counter" et l'autre retourne N/A.
Crois-tu qu'il serait passible d'avoir également le compteur journalier ?
D'avance merci

epierre
Messages : 614
Enregistré le : 27 mai 2015, 09:32
Contact :

Re: MyDomoAtHome - ImperiHome

Message par epierre »

ricky74 a écrit :Salut,

J'ai un petite amélioration à te soumettre...
Cela concerne le RFXMeter que tu as ajouté l'autre jour. Il fonctionne bien cependant dans domoticz j'ai deux informations :
Le compteur total et un compteur journalier.

"Counter" : "10717.246 kWh",
"CounterToday" : "1.512 kWh",

Dans imperihome, sous le device j'ai deux widgets, l'un retourne le "counter" et l'autre retourne N/A.
Crois-tu qu'il serait passible d'avoir également le compteur journalier ?
D'avance merci
on dirait un bug, j'ai fait un tracker.

je vais avoir quelques jours de lag car j'ai reçu du matériel hier à mettre en oeuvre (un odroid xu4)
Imperihome & Domoticz: MyDomoAtHome !
eedomus+ - Domoticz - MySensors
zigbee zwave nrf24l rfx

ricky74
Messages : 68
Enregistré le : 03 sept. 2015, 13:58

Re: MyDomoAtHome - ImperiHome

Message par ricky74 »

C'est quoi un tracker ?

epierre
Messages : 614
Enregistré le : 27 mai 2015, 09:32
Contact :

Re: MyDomoAtHome - ImperiHome

Message par epierre »

ricky74 a écrit :C'est quoi un tracker ?
une entrée pour suivre un sujet à investiguer, corriger ou faire évoluer :

https://github.com/empierre/MyDomoAtHome/issues
Imperihome & Domoticz: MyDomoAtHome !
eedomus+ - Domoticz - MySensors
zigbee zwave nrf24l rfx

deennoo
Messages : 4020
Enregistré le : 25 janv. 2015, 02:00

Re: MyDomoAtHome - ImperiHome

Message par deennoo »

Salut,

J'ai eu utilise MyDomoAtHome, puis suite a une reinstallation complete, impossible de le refaire fonctionner donc je suis passer sur iss-domo, mais le temps de reaction me fait revenir a MyDomoAtHome.

je travail avec la derniere version de MyDomoAtHome dispo en telechargement depuis le GITHUB.

Ce retour ce passe mal :

Je rencontre une erreur que je fait : update-rc.d start.sh defaults :

Code : Tout sélectionner

update-rc.d: using dependency based boot sequencing
insserv: script MyDomoAtHome: service ImperiHomestart already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
pi@Domolitude ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh start
[ ok ] Starting plack server: MyDomoAtHome.

sudo service MyDomoAtHome.sh stop
[....] Stopping plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 14217: No such process
start-stop-daemon: warning: failed to kill 14217: No such process
failed!

pi@Domolitude ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh reload
[....] Reloading plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 13697: No such process
start-stop-daemon: warning: failed to kill 13697: No such process

et voici le contenu du Nohup.out

Code : Tout sélectionner

Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0x1b721a8)', 'CODE(0x1b85ef0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x1a39398)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0x9c4088)', 'CODE(0x9d7dd0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x88b360)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0x6371a8)', 'CODE(0x64aef0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x4fe398)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0xb371a8)', 'CODE(0xb4aef0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x9fe398)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0x20581a8)', 'CODE(0x206bef0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x1f1f398)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0x4971a8)', 'CODE(0x4aaef0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x35e398)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Error while loading bin/app.pl: Unable to parse the configuration file: /home/pi/domoticz/MyDomoAtHome/config.yml: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 12
   Document: 1
 at /usr/share/perl5/YAML/Loader.pm line 148
 at /usr/share/perl5/Dancer/Config.pm line 202
	Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/config.yml') called at /usr/share/perl5/Dancer/Config.pm line 176
	Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
	Dancer::import('Dancer') called at bin/app.pl line 2
	Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 2
	eval {...} called at bin/app.pl line 2
	require bin/app.pl called at (eval 5) line 3
	eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/share/perl5/Plack/Util.pm line 118
	Plack::Util::_load_sandbox('bin/app.pl') called at /usr/share/perl5/Plack/Util.pm line 155
	Plack::Util::load_psgi('bin/app.pl') called at /usr/share/perl5/Plack/Runner.pm line 176
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
	Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Loader.pm line 59
	Plack::Loader::preload_app('Plack::Loader=HASH(0x3ec1a8)', 'CODE(0x3ffef0)') called at /usr/share/perl5/Plack/Runner.pm line 260
	Plack::Runner::run('Plack::Runner=HASH(0x2b3398)') called at /usr/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
les premiers sh ./run-once.sh m'ont fait pleins de mise a jour, et maintenant cela ce solde par :

Code : Tout sélectionner

0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
update-rc.d: using dependency based boot sequencing
insserv: script MyDomoAtHome: service ImperiHomestart already provided!
Sudo apt-get update et up-grade ont été fait.

lorsque je fais : sudo apt-get install libdancer-perl libfile-slurp-perl liblwp-protocol-psgi-perl libtime-piece-perl libjson-perl libplack-perl starman libcrypt-ssleay-perl :

Code : Tout sélectionner

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.
libdancer-perl is already the newest version.
libfile-slurp-perl is already the newest version.
libjson-perl is already the newest version.
liblwp-protocol-psgi-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 46 not upgraded.
Please help
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr

dba59
Messages : 10
Enregistré le : 12 sept. 2015, 13:50

Re: MyDomoAtHome - ImperiHome

Message par dba59 »

je viens d'installer le shcmilblick et j'ai le meme pb que deennoo :)

j'ai trouvé l'os :

Code : Tout sélectionner

volumio_path: ""  #Just the IP here assuming default port and no login/password, if void inactive
il faut mettre le commentaire sur une autre ligne :

Code : Tout sélectionner

volumio_path: ""
#Just the IP here assuming default port and no login/password, if void inactive
et ca marche :idea:

epierre
Messages : 614
Enregistré le : 27 mai 2015, 09:32
Contact :

Re: MyDomoAtHome - ImperiHome

Message par epierre »

oui désolé, erreur sur les nouvelles installations, on ne teste jamais assez...

repository corrigé
Imperihome & Domoticz: MyDomoAtHome !
eedomus+ - Domoticz - MySensors
zigbee zwave nrf24l rfx

deennoo
Messages : 4020
Enregistré le : 25 janv. 2015, 02:00

Re: MyDomoAtHome - ImperiHome

Message par deennoo »

J'ai encore eu une belle erreur.

sh ./run_once.sh ne ce lance pas : sh: 0: Can't open ./run_once.sh

Obliger d'appliquer ceci tiré du Tuto Easy Domoticz

Code : Tout sélectionner

edit du 02/03/2015 , une précision d’un lecteur (lolautruche) nous indique que :

Pas besoin de bidouiller start.sh pour démarrer le script en tant que démon, un script est déjà prévu par MyDomoAtHome : MyDomoAtHome.sh.
Il suffit donc de lancer les commandes suivantes depuis le dossier de MyDomoAtHome:

sudo cp MyDomoAtHome.sh /etc/init.d/MyDomoAtHome
sudo chmod +x /etc/init.d/MyDomoAtHome
sudo update-rc.d MyDomoAtHome defaults


extrait du nohup.out

Pid_file "/tmp/mydomoathome.pid" already exists. Overwriting!
Pid_file "/tmp/mydomoathome.pid" already exists. Overwriting!
2015/09/12-23:01:13 Couldn't open pid file "/tmp/mydomoathome.pid" [Permission denied].

j'ai du le corriger en faisant :

sudo chmod 777 /tmp/mydomoathome.pid

Et a ce moment : Cela Fonctionne !
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr

epierre
Messages : 614
Enregistré le : 27 mai 2015, 09:32
Contact :

Re: MyDomoAtHome - ImperiHome

Message par epierre »

deennoo a écrit :J'ai encore eu une belle erreur.

sh ./run_once.sh ne ce lance pas : sh: 0: Can't open ./run_once.sh

Obliger d'appliquer ceci tiré du Tuto Easy Domoticz

extrait du nohup.out

Pid_file "/tmp/mydomoathome.pid" already exists. Overwriting!
Pid_file "/tmp/mydomoathome.pid" already exists. Overwriting!
2015/09/12-23:01:13 Couldn't open pid file "/tmp/mydomoathome.pid" [Permission denied].

j'ai du le corriger en faisant :

sudo chmod 777 /tmp/mydomoathome.pid

Et a ce moment : Cela Fonctionne !
eh oui parceque le tuto easy domotice n'est plus à jour, il faut lancer le run-once.sh qui installe tout tout seul.

le start.sh ne doit plus être utilisé, la preuve le .pid existait déjà mais par un autre utilisateur système
Imperihome & Domoticz: MyDomoAtHome !
eedomus+ - Domoticz - MySensors
zigbee zwave nrf24l rfx

deennoo
Messages : 4020
Enregistré le : 25 janv. 2015, 02:00

Re: MyDomoAtHome - ImperiHome

Message par deennoo »

sh ./run_once.sh ne ce lance pas : sh: 0: Can't open ./run_once.sh

Était du au pid déjà existant ?
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr

Répondre