Page 17 of 55

Re: [MyDomoAtHome] Support thread

Posted: Monday 16 November 2015 23:06
by epierre
harmenklok wrote:
epierre wrote:try running again run-once.sh for it is a basic package that appears missing (why ? I don't know, that never happened before--- check if your omoticz image was correctly flashed that issue can happen)
Allready tried rerunning run_once.sh no luck.
Now flashed the domoticz-raspberrypi-sdcard-3530.7z package again on the sd card.
Domoticz is running fine now, but when I perform the steps on the wiki I get the following error when starting:

Code: Select all

 pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh start
[....] Starting plack server: MyDomoAtHomestart-stop-daemon: unable to stat /usr/bin/plackup (No such file or directory)
 failed!
This seems an even more basic error.
Seems like anothertry has the same issue: http://www.domoticz.com/forum/viewtopic.php?f=6&t=8927
I did not see this other thread, thanks.

run a run-once again, that should do it

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 17 November 2015 0:10
by harmenklok
Found the solution as written by me in other post:
I got the same error...

Tried

Code: Select all

sudo apt-get upgrade
and this gave me error:

Code: Select all

dpkg: error: parsing file '/var/lib/dpkg/available' near line 0:
newline in field name ...
This site http://askubuntu.com/questions/55099/dp ... ear-line-0 gave me a hint:

Code: Select all

sudo dpkg --clear-avail
and after that rerun

Code: Select all

sudo apt-get upgrade
After that the run-once.sh runned fine and did not gave any error message.
Now the MyDomoAtHome service is running.

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 17 November 2015 21:54
by vilpih
epierre wrote:
vilpih wrote:Hi again

I did a fresh install by removing old MyDomoAtHome and followed the guide on: https://github.com/empierre/MyDomoAtHome.

Starting service

Code: Select all

pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh start
[ ok ] Starting plack server: MyDomoAtHome.
Docker pull:

Code: Select all

pi@raspberrypi ~/domoticz/MyDomoAtHome $ docker pull epierre/mydomoathome
-bash: docker: command not found
looks good, if you don't need docker don't use it (at least on a PI)

have you configured imperihome yet ?
Thank you. Then I will skip docker.

I have not configured imperihome yet. Having some trouble with something.
Connecting with http://192.168.1.80:8080/json.htm?type= ... order=Name seems to work

Code: Select all

 
"ActTime" : 1447792790, "ServerTime" : "2015-11-17 21:39:50", "Sunrise" : "07:49", "Sunset" : "15:57", "result" : [ { "Data" : "On", "Description" : "", "Favorite" : 1, "LastUpdate" : "2015-11-17 14:59:01", "Name" : "Fönsterlampor", "Protected" : false, "Status" : "On", "Type" : "Group", "TypeImg" : "group", "UsedByCamera" : false, "XOffset" : 0, "YOffset" : 0, "idx" : "1" }, { "Data" : "Off", "Description" : "", "Favorite" : 1, "LastUpdate" : "2015-11-17 21:00:01", "Name" : "Barnens fönster", "Protected" : false, "Status" : "Off", "Type" : "Group", "TypeImg" : "group", "UsedByCamera" : false, "XOffset" : 0, "YOffset" : 0, "idx" : "2" }, { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CustomImage" : 0, "Data" : "2.22%", "Description" : "", "Favorite" : 0, "HardwareID" : 1, "HardwareName" : "Motherboard", "HardwareType" : "Motherboard sensors", "HardwareTypeVal" : 23, "HaveTimeout" : false, "ID" : "0000044D", "Image" : "Computer", "LastUpdate" : "2015-11-17 21:39:24", "Name" : "CPU_Usage", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "Percentage", "Timers" : "false", "Type" : "General", "TypeImg" : "hardware", "Unit" : 1, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "5" }, { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CounterToday" : "0.000 kWh", "CustomImage" : 0, "Data" : "0.100 kWh", "Description" : "", "Favorite" : 0, "HardwareID" : 2, "HardwareName" : "ViKa Z-wave", "HardwareType" : "OpenZWave USB", "HardwareTypeVal" : 21, "HaveTimeout" : false, "ID" : "00000301", "LastUpdate" : "2015-11-17 21:39:24", "Name" : "Matplats dimmer", "Notifications" : "false", "PlanID" : "4", "PlanIDs" : [ 4 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "kWh
.....
But when trying with http://192.168.1.80:3001/devices I'm only getting collection refused

Maybe it's nginx that's causing my problems

Skickat från min D6603 via Tapatalk

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 18:58
by epierre
@all here is a bench of the Perl version compared to the NodeJS on e one a RPI B:

Perl:
real 0m8.614s
user 0m0.008s
sys 0m0.000s

NodeJS 4.2.2:
real 0m0.601s
user 0m0.004s
sys 0m0.004s

encouraging !

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 19:00
by epierre
vilpih wrote:
But when trying with http://192.168.1.80:3001/devices I'm only getting collection refused

Maybe it's nginx that's causing my problems
no maybe something else.

1- Is your domoticz path /home/pi/domoticz ?
2- what is your domo_path line in the config.yml ?

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 20:28
by vilpih
epierre wrote:
vilpih wrote:
But when trying with http://192.168.1.80:3001/devices I'm only getting collection refused

Maybe it's nginx that's causing my problems
no maybe something else.

1- Is your domoticz path /home/pi/domoticz ?
2- what is your domo_path line in the config.yml ?
1 yes
2 domo_path: "http://127.0.0.1:8080"

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 21:01
by epierre
vilpih wrote:
epierre wrote:
vilpih wrote:
But when trying with http://192.168.1.80:3001/devices I'm only getting collection refused

Maybe it's nginx that's causing my problems
no maybe something else.

1- Is your domoticz path /home/pi/domoticz ?
2- what is your domo_path line in the config.yml ?
1 yes
2 domo_path: "http://127.0.0.1:8080"
3 I assume both mdah and domoticz are on the same machine ?
4 what is the result of lsof -i tcp:3001
5 does launching start2.sh works ?

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 22:34
by vilpih
epierre wrote:
vilpih wrote:
epierre wrote: no maybe something else.

1- Is your domoticz path /home/pi/domoticz ?
2- what is your domo_path line in the config.yml ?
1 yes
2 domo_path: "http://127.0.0.1:8080"
3 I assume both mdah and domoticz are on the same machine ?
4 what is the result of lsof -i tcp:3001
5 does launching start2.sh works ?
3. Yes, it's the same pi
4. pi@raspberrypi ~ $ lsof -i tcp:3001
-bash: lsof: command not found
5.

Code: Select all

pi@raspberrypi ~/domoticz/MyDomoAtHome $ sh start2.sh
YAML Warning: Duplicate map key found. Ignoring.
   Code: YAML_LOAD_WARN_DUPLICATE_KEY
   Line: 17
   Document: 1
 at /usr/share/perl5/YAML/Mo.pm line 24
        YAML::Mo::__ANON__('YAML::Loader=HASH(0x1c63660)', 'YAML_LOAD_WARN_DUPLICATE_KEY') called at /usr/share/perl5/YAML/Loader.pm line 359
        YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x1c63660)', '') called at /usr/share/perl5/YAML/Loader.pm line 168
        YAML::Loader::_parse_node('YAML::Loader=HASH(0x1c63660)') called at /usr/share/perl5/YAML/Loader.pm line 103
        YAML::Loader::_parse('YAML::Loader=HASH(0x1c63660)') called at /usr/share/perl5/YAML/Loader.pm line 25
        YAML::Loader::load('YAML::Loader=HASH(0x1c63660)', '# appdir/environments/development.yml
# configuration file fo...') called at /usr/share/perl5/YAML.pm line 34              YAML::Load('# appdir/environments/development.yml                    # configuration file fo...') called at /usr/share/perl5/YAML.pm line 75
        YAML::LoadFile('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 201
        eval {...} called at /usr/share/perl5/Dancer/Config.pm line 201
        Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 182
        Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
        Dancer::import('Dancer') called at bin/app.pl line 19                        Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 19
        eval {...} called at bin/app.pl line 19
        require bin/app.pl called at (eval 7) 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/Runner.pm line 23
        Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
        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:Imagereload_app('Plack::Loader=HASH(0x15339f8)', 'CODE(0x156aa48)') called at /usr/share/perl5/Plack/Runner.pm line 260
        Plack::Runner::run('Plack::Runner=HASH(0x1400360)') called at /usr/bin/plackup line 10
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 31
BEGIN failed--compilation aborted at bin/app.pl line 19.
Skickat från min D6603 via Tapatalk

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 22:46
by epierre
vilpih wrote: 5.

Code: Select all

pi@raspberrypi ~/domoticz/MyDomoAtHome $ sh start2.sh
YAML Warning: Duplicate map key found. Ignoring.
   Code: YAML_LOAD_WARN_DUPLICATE_KEY
   Line: 17
   Document: 1
 at /usr/share/perl5/YAML/Mo.pm line 24
        YAML::Mo::__ANON__('YAML::Loader=HASH(0x1c63660)', 'YAML_LOAD_WARN_DUPLICATE_KEY') called at /usr/share/perl5/YAML/Loader.pm line 359
        YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x1c63660)', '') called at /usr/share/perl5/YAML/Loader.pm line 168
        YAML::Loader::_parse_node('YAML::Loader=HASH(0x1c63660)') called at /usr/share/perl5/YAML/Loader.pm line 103
        YAML::Loader::_parse('YAML::Loader=HASH(0x1c63660)') called at /usr/share/perl5/YAML/Loader.pm line 25
        YAML::Loader::load('YAML::Loader=HASH(0x1c63660)', '# appdir/environments/development.yml
# configuration file fo...') called at /usr/share/perl5/YAML.pm line 34              YAML::Load('# appdir/environments/development.yml                    # configuration file fo...') called at /usr/share/perl5/YAML.pm line 75
        YAML::LoadFile('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 201
        eval {...} called at /usr/share/perl5/Dancer/Config.pm line 201
        Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 182
        Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
        Dancer::import('Dancer') called at bin/app.pl line 19                        Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 19
        eval {...} called at bin/app.pl line 19
        require bin/app.pl called at (eval 7) 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/Runner.pm line 23
        Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
        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:Imagereload_app('Plack::Loader=HASH(0x15339f8)', 'CODE(0x156aa48)') called at /usr/share/perl5/Plack/Runner.pm line 260
        Plack::Runner::run('Plack::Runner=HASH(0x1400360)') called at /usr/bin/plackup line 10
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 31
BEGIN failed--compilation aborted at bin/app.pl line 19.
ok there is your issue. Can you reduce your config.yml to
appname: "MyDomoAtHome"
domo_path: "http://ip:8080" --> with your value of course

and relaunch start2.sh please ?

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 23:11
by vilpih
epierre wrote:
vilpih wrote: 5.

Code: Select all

pi@raspberrypi ~/domoticz/MyDomoAtHome $ sh start2.sh
YAML Warning: Duplicate map key found. Ignoring.
   Code: YAML_LOAD_WARN_DUPLICATE_KEY
   Line: 17
   Document: 1
 at /usr/share/perl5/YAML/Mo.pm line 24
        YAML::Mo::__ANON__('YAML::Loader=HASH(0x1c63660)', 'YAML_LOAD_WARN_DUPLICATE_KEY') called at /usr/share/perl5/YAML/Loader.pm line 359
        YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x1c63660)', '') called at /usr/share/perl5/YAML/Loader.pm line 168
        YAML::Loader::_parse_node('YAML::Loader=HASH(0x1c63660)') called at /usr/share/perl5/YAML/Loader.pm line 103
        YAML::Loader::_parse('YAML::Loader=HASH(0x1c63660)') called at /usr/share/perl5/YAML/Loader.pm line 25
        YAML::Loader::load('YAML::Loader=HASH(0x1c63660)', '# appdir/environments/development.yml
# configuration file fo...') called at /usr/share/perl5/YAML.pm line 34              YAML::Load('# appdir/environments/development.yml                    # configuration file fo...') called at /usr/share/perl5/YAML.pm line 75
        YAML::LoadFile('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 201
        eval {...} called at /usr/share/perl5/Dancer/Config.pm line 201
        Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 182
        Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
        Dancer::import('Dancer') called at bin/app.pl line 19                        Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 19
        eval {...} called at bin/app.pl line 19
        require bin/app.pl called at (eval 7) 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/Runner.pm line 23
        Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
        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:Imagereload_app('Plack::Loader=HASH(0x15339f8)', 'CODE(0x156aa48)') called at /usr/share/perl5/Plack/Runner.pm line 260
        Plack::Runner::run('Plack::Runner=HASH(0x1400360)') called at /usr/bin/plackup line 10
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 31
BEGIN failed--compilation aborted at bin/app.pl line 19.
ok there is your issue. Can you reduce your config.yml to
appname: "MyDomoAtHome"
domo_path: "http://ip:8080" --> with your value of course

and relaunch start2.sh please ?
Thank you so much for helping me!
Config

Code: Select all

# This is the main configuration file of your Dancer app
# env-related settings should go to environments/$env.yml
# all the settings in this file will be loaded at Dancer's startup.

#MyDomoAtHome specific configuration
domo_path: "http://127.0.0.1:8080"


# Your application's name
appname: "MyDomoAtHome"
Result of start2

Code: Select all

pi@raspberrypi ~/domoticz/MyDomoAtHome $ sh start2.sh
YAML Warning: Duplicate map key found. Ignoring.
   Code: YAML_LOAD_WARN_DUPLICATE_KEY
   Line: 17
   Document: 1
 at /usr/share/perl5/YAML/Mo.pm line 24
        YAML::Mo::__ANON__('YAML::Loader=HASH(0x1ae75d0)', 'YAML_LOAD_WARN_DUPLICATE_KEY') called at /usr/share/perl5/YAML/Loader.pm line 359
        YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x1ae75d0)', '') called at /usr/share/perl5/YAML/Loader.pm line 168
        YAML::Loader::_parse_node('YAML::Loader=HASH(0x1ae75d0)') called at /usr/share/perl5/YAML/Loader.pm line 103
        YAML::Loader::_parse('YAML::Loader=HASH(0x1ae75d0)') called at /usr/share/perl5/YAML/Loader.pm line 25
        YAML::Loader::load('YAML::Loader=HASH(0x1ae75d0)', '# appdir/environments/development.yml
# configuration file fo...') called at /usr/share/perl5/YAML.pm line 34
        YAML::Load('# appdir/environments/development.yml
# configuration file fo...') called at /usr/share/perl5/YAML.pm line 75
        YAML::LoadFile('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 201
        eval {...} called at /usr/share/perl5/Dancer/Config.pm line 201
        Dancer::Config::load_settings_from_yaml('/home/pi/domoticz/MyDomoAtHome/environments/development.yml') called at /usr/share/perl5/Dancer/Config.pm line 182
        Dancer::Config::load('Dancer::Config') called at /usr/share/perl5/Dancer.pm line 258
        Dancer::import('Dancer') called at bin/app.pl line 19
        Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at bin/app.pl line 19
        eval {...} called at bin/app.pl line 19
        require bin/app.pl called at (eval 7) 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/Runner.pm line 23
        Plack::Runner::__ANON__() called at /usr/share/perl5/Plack/Runner.pm line 23
        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:Imagereload_app('Plack::Loader=HASH(0x154c9f8)', 'CODE(0x1583a48)') called at /usr/share/perl5/Plack/Runner.pm line 260
        Plack::Runner::run('Plack::Runner=HASH(0x1419360)') called at /usr/bin/plackup line 10
environment:development
log:core
logger:console
domoticz:http://127.0.0.1:8080
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 31
Compilation failed in require at bin/app.pl line 20.
BEGIN failed--compilation aborted at bin/app.pl line 20.
pi@raspberrypi ~/domoticz/MyDomoAtHome $
Skickat från min D6603 via Tapatalk

Re: [MyDomoAtHome] Support thread

Posted: Friday 20 November 2015 23:25
by epierre
[quote="vilpih"]
environment:development
log:core
logger:console
domoticz:http://127.0.0.1:8080
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 31
Compilation failed in require at bin/app.pl line 20.
BEGIN failed--compilation aborted at bin/app.pl line 20.
pi@raspberrypi ~/domoticz/MyDomoAtHome $
[/code]

ok something that didn't appeared previously... something is missing in the package (corruption ?) so the hard way:

cpanm install dancer

if - and only if - this goes ok try to launch start2.sh again after

Re: [MyDomoAtHome] Support thread

Posted: Saturday 21 November 2015 8:36
by vilpih
epierre wrote:
vilpih wrote: environment:development
log:core
logger:console
domoticz:http://127.0.0.1:8080
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 31
Compilation failed in require at bin/app.pl line 20.
BEGIN failed--compilation aborted at bin/app.pl line 20.
pi@raspberrypi ~/domoticz/MyDomoAtHome $
[/code]

ok something that didn't appeared previously... something is missing in the package (corruption ?) so the hard way:

cpanm install dancer

if - and only if - this goes ok try to launch start2.sh again after
Hi, it almost worked to install this

In the first few rows I found this:
Finding dancer on cpanmetadb failed.

Would it be easier if I start with a fresh image?

Code: Select all

pi@raspberrypi ~ $ sudo cpanm install dancer
--> Working on install
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building and testing install-0.01 ... OK
Successfully installed install-0.01
! Finding dancer on cpanmetadb failed.
--> Working on dancer
Fetching http://www.cpan.org/authors/id/B/BI/BIGPRESH/Dancer-1.3202.tar.gz ... OK
Configuring Dancer-1.3202 ... OK
==> Found dependencies: Test::NoWarnings, Devel::Hide, Hash::Merge::Simple
--> Working on Test::NoWarnings
Fetching http://www.cpan.org/authors/id/A/AD/ADAMK/Test-NoWarnings-1.04.tar.gz ... OK
Configuring Test-NoWarnings-1.04 ... OK
==> Found dependencies: Test::Tester
--> Working on Test::Tester
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.001014.tar.gz ... OK
Configuring Test-Simple-1.001014 ... OK
Building and testing Test-Simple-1.001014 ... OK
Successfully installed Test-Simple-1.001014
Building and testing Test-NoWarnings-1.04 ... OK
Successfully installed Test-NoWarnings-1.04
--> Working on Devel::Hide
Fetching http://www.cpan.org/authors/id/F/FE/FERREIRA/Devel-Hide-0.0009.tar.gz ... OK
Configuring Devel-Hide-0.0009 ... OK
Building and testing Devel-Hide-0.0009 ... OK
Successfully installed Devel-Hide-0.0009
--> Working on Hash::Merge::Simple
Fetching http://www.cpan.org/authors/id/R/RO/ROKR/Hash-Merge-Simple-0.051.tar.gz ... OK
Configuring Hash-Merge-Simple-0.051 ... OK
==> Found dependencies: Test::Most, Clone
--> Working on Test::Most
Fetching http://www.cpan.org/authors/id/O/OV/OVID/Test-Most-0.34.tar.gz ... OK
Configuring Test-Most-0.34 ... OK
==> Found dependencies: Exception::Class, Test::Warn, Test::Exception, Test::Differences, Test::Deep
--> Working on Exception::Class
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-1.39.tar.gz ... OK
Configuring Exception-Class-1.39 ... OK
==> Found dependencies: Devel::StackTrace, Class::Data::Inheritable
--> Working on Devel::StackTrace
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Devel-StackTrace-2.00.tar.gz ... OK
Configuring Devel-StackTrace-2.00 ... OK
Building and testing Devel-StackTrace-2.00 ... OK
Successfully installed Devel-StackTrace-2.00 (upgraded from 1.27)
--> Working on Class::Data::Inheritable
Fetching http://www.cpan.org/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz ... OK
Configuring Class-Data-Inheritable-0.08 ... OK
Building and testing Class-Data-Inheritable-0.08 ... OK
Successfully installed Class-Data-Inheritable-0.08
Building and testing Exception-Class-1.39 ... OK
Successfully installed Exception-Class-1.39
--> Working on Test::Warn
Fetching http://www.cpan.org/authors/id/C/CH/CHORNY/Test-Warn-0.30.tar.gz ... OK
Configuring Test-Warn-0.30 ... OK
==> Found dependencies: Sub::Uplevel, Carp
--> Working on Sub::Uplevel
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-0.25.tar.gz ... OK
Configuring Sub-Uplevel-0.25 ... OK
Building and testing Sub-Uplevel-0.25 ... OK
Successfully installed Sub-Uplevel-0.25
--> Working on Carp
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Carp-1.38.tar.gz ... OK
Configuring Carp-1.38 ... OK
Building and testing Carp-1.38 ... OK
Successfully installed Carp-1.38 (upgraded from 1.20)
Building and testing Test-Warn-0.30 ... OK
Successfully installed Test-Warn-0.30
--> Working on Test::Exception
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Exception-0.40.tar.gz ... OK
Configuring Test-Exception-0.40 ... OK
Building and testing Test-Exception-0.40 ... OK
Successfully installed Test-Exception-0.40
--> Working on Test::Differences
Fetching http://www.cpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-0.63.tar.gz ... OK
Configuring Test-Differences-0.63 ... OK
==> Found dependencies: Text::Diff, Capture::Tiny
--> Working on Text::Diff
Fetching http://www.cpan.org/authors/id/N/NE/NEILB/Text-Diff-1.43.tar.gz ... OK
Configuring Text-Diff-1.43 ... OK
==> Found dependencies: Algorithm::Diff
--> Working on Algorithm::Diff
Fetching http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-1.1903.tar.gz ... OK
Configuring Algorithm-Diff-1.1903 ... OK
Building and testing Algorithm-Diff-1.1903 ... OK
Successfully installed Algorithm-Diff-1.1903
Building and testing Text-Diff-1.43 ... OK
Successfully installed Text-Diff-1.43
--> Working on Capture::Tiny
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.30.tar.gz ... OK
Configuring Capture-Tiny-0.30 ... OK
Building and testing Capture-Tiny-0.30 ... OK
Successfully installed Capture-Tiny-0.30
Building and testing Test-Differences-0.63 ... OK
Successfully installed Test-Differences-0.63
--> Working on Test::Deep
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-0.119.tar.gz ... OK
Configuring Test-Deep-0.119 ... OK
Building and testing Test-Deep-0.119 ... OK
Successfully installed Test-Deep-0.119
Building and testing Test-Most-0.34 ... OK
Successfully installed Test-Most-0.34
--> Working on Clone
Fetching http://www.cpan.org/authors/id/G/GA/GARU/Clone-0.38.tar.gz ... OK
Configuring Clone-0.38 ... OK
Building and testing Clone-0.38 ... OK
Successfully installed Clone-0.38
Building and testing Hash-Merge-Simple-0.051 ... OK
Successfully installed Hash-Merge-Simple-0.051
Building and testing Dancer-1.3202 ... OK
Successfully installed Dancer-1.3202
20 distributions installed
Skickat från min D6603 via Tapatalk

Re: [MyDomoAtHome] Support thread

Posted: Saturday 21 November 2015 11:32
by epierre
@vilpih don't worrk on this message, everything seems ok, please try the start2.sh to test.

I don't think this is related to the domoticz image itself, but somehow the dancer package that was installed now shows some issues, so we just forced reinstall from source to the latest version. I hope that will be enough ;-)

In itself what is very strange are all the unique support request, things fails at some or other part, rarely on the code itself now but on the surrounding. But I'm learning too ;-)

Re: [MyDomoAtHome] Support thread

Posted: Saturday 21 November 2015 11:51
by vilpih
epierre wrote:@vilpih don't worrk on this message, everything seems ok, please try the start2.sh to test.

I don't think this is related to the domoticz image itself, but somehow the dancer package that was installed now shows some issues, so we just forced reinstall from source to the latest version. I hope that will be enough ;-)

In itself what is very strange are all the unique support request, things fails at some or other part, rarely on the code itself now but on the surrounding. But I'm learning too ;-)
Hi again

Now it seems like json is the problem

Code: Select all

Linux raspberrypi 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
pi@raspberrypi ~ $ cd domoticz/MyDomoAtHome
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sh start2.sh
environment:development
log:core
logger:console
domoticz:http://127.0.0.1:8080
Error while loading bin/app.pl: core - serializer - JSON is needed and is not installed at /usr/local/share/perl/5.14.2/Dancer/Serializer.pm line 33.
Compilation failed in require at bin/app.pl line 20.
BEGIN failed--compilation aborted at bin/app.pl line 20.
pi@raspberrypi ~/domoticz/MyDomoAtHome $
Skickat från min D6603 via Tapatalk

Re: [MyDomoAtHome] Support thread

Posted: Saturday 21 November 2015 11:56
by epierre
Weird that dependencies are so broken... try : sudo cpanm i JSON

Re: [MyDomoAtHome] Support thread

Posted: Monday 23 November 2015 23:12
by vilpih
epierre wrote:Weird that dependencies are so broken... try : sudo cpanm i JSON
Thank you!
It seems to work now

Skickat från min D6603 via Tapatalk

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 09 December 2015 23:35
by thebeetleuk
Hi all,

I have setup imperihome on my Pi and have been running with the software on my iphone without any issues.

I have just updated my Amazon fire with the same application but when trying to add the system it looks like its timing out when running through the wizard.

Has anyone else seen any issues like this?

Re: [MyDomoAtHome] Support thread

Posted: Thursday 10 December 2015 10:34
by epierre
thebeetleuk wrote: I have just updated my Amazon fire with the same application but when trying to add the system it looks like its timing out when running through the wizard.

Has anyone else seen any issues like this?
I'm not sure many people have the amazon fire around. Are all other applications fine accessing your local network ? can you open domoticz from it ?

Re: [MyDomoAtHome] Support thread

Posted: Thursday 10 December 2015 19:51
by thebeetleuk
Yes, all looks good in terms of accessing the local network so not sure what's going on.

am I able to test imperihome some other way from the tablet using something other than imperihome itself? I'm wondering if it's a Amazon Fire only issue as I'm sure its not designed to run on this specifically. that said its a common platform so should work. :(

Re: [MyDomoAtHome] Support thread

Posted: Friday 11 December 2015 8:31
by thebeetleuk
Got it working :) Once I disabled the demo system I was able to add mine. From memory I didn't have that issue on the iPhone but at least I have it working now :)