I did this one already when I figured out that I did not have the cu package...stty -F /dev/ttyUSB0 9600
It did not make any difference.
I will try to install the cu package tonight and see if it can fix my problems.
I did this one already when I figured out that I did not have the cu package...stty -F /dev/ttyUSB0 9600
I could install the package just find and when running:barmalej2 wrote:One more thing. Try to set baudrate on terminal:Code: Select all
slapt-get -u slapt-get -i uucp
And recheck domoticz.Code: Select all
stty -F /dev/ttyUSB0 9600
Code: Select all
cu -l /dev/ttyUSB0 -s 9600 --parity=even
Code: Select all
/ISk5\2ME382-1004
0-0:96.1.1(4B414C37303035313338393938333133)
1-0:1.8.1(08234.559*kWh)
1-0:1.8.2(03543.334*kWh)
1-0:2.8.1(02018.359*kWh)
1-0:2.8.2(04940.602*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(0000.46*kW)
1-0:2.7.0(0000.00*kW)
0-0:17.0.0(0999.00*kW)
0-0:96.3.10(1)
0-0:96.13.1()
0-0:96.13.0()
0-1:24.1.0(3)
0-1:96.1.0(3238303131303031333036303636343133)
0-1:24.3.0(170316190000)(00)(60)(1)(0-1:24.2.1)(m3)
(05479.482)
0-1:24.4.0(1)
!
Code: Select all
cu -l /dev/ttyUSB0 -s 9600 --parity=even|bash
This command makes no senses to me and is totally illogic. It passes all output fromlucaswiersma wrote:However when running the command that is said to be the fix I get an error:
Code: Select all
cu -l /dev/ttyUSB0 -s 9600 --parity=even|bash
to bash command line, which only understands bash syntax, thus gives errors of executing code.cu -l /dev/ttyUSB0 -s 9600 --parity=even
Code: Select all
slapt-get -u
slapt-get --upgrade
Code: Select all
sh /ffp/start/sshd.sh restart
At the moment my box is on half way of updating ffp toolchain. So can't help you with update, but you can do it yourself.greenwitch wrote:Is it possible to update domoticz on zyxek nas?
Code: Select all
slapt-get -i ffp-buildtools
Code: Select all
mkdir -p /mnt/HD_a2/ffp0.7arm/src/scripts
cd /mnt/HD_a2/ffp0.7arm/src/scripts
Code: Select all
wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/reposcripts/gendeps -O /ffp/bin/gendeps
chmod 755 /ffp/bin/gendeps
wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/build/src/domoticz.sh
chmod 755 domoticz.sh
Code: Select all
nohup ./domoticz.sh >> domoticz.log 2>&1 &
Code: Select all
cat /proc/swaps
Code: Select all
slapt-get --show python
Code: Select all
root@NAS542:~# cat /proc/swaps
Filename Type Size Used Priority
/dev/md1 partition 1998780 408 -1
/i-data/4ad20f06/video/nsa310swapfile file 1048572 0 -2
Code: Select all
root@NAS542:~# slapt-get --show python
Package Name: python
Package Mirror: http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/
Package Priority: Preferred
Package Location: ./python
Package Version: 2.7.13-arm-1
Package Size: 12977 K
Package Installed Size: 77070 K
Package Required: bzip2,db5,expat,gdbm,gettext,libffi,ncurses,openssl,readline,sqlite,uClibc-solibs | uClibc,zlib
Package Conflicts:
Package Suggests:
Package MD5 Sum: e2494fdb619e35f7e634cd475115fbe1
Package Description:
Python is an interpreted, interactive, object-oriented programming language often compared to Tcl,
Perl, Scheme or Java. Python includes modules, classes, exceptions, very high level dynamic data
types and dynamic typing. It supports interfaces to many system calls and libraries.
Python can be used as an extension language for applications that need a programmable interface.
License:PSFL v2
Version:2.7.13
Homepage:http://www.python.org
Package Installed: yes
Code: Select all
nohup: ignoring input
Start point:2017-09-25 23:30:12
Current swapfile(s) in use is:
Filename Type Size Used Priority
/dev/md1 partition 1998780 408 -1
/i-data/4ad20f06/video/nsa310swapfile file 1048572 0 -2
2017-09-25 23:30:20 URL:https://codeload.github.com/domoticz/domoticz/tar.gz/3.8
-- Failed to get ProjectRevision from git
-- Read ProjectRevision from appversion.default
-- ###########################
-- Compiling Revision #3.8153
-- ###########################
-- Found mosquittopp.h at: /ffp/include
-- Found libmosquittopp at: /ffp/lib/libmosquittopp.so
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (R
CMake Error at CMakeLists.txt:108 (MESSAGE):
Python3 not found on your system, use USE_PYTHON=NO or sudo apt-get install
python3-dev)
-- Configuring incomplete, errors occurred!
See also "/mnt/HD_a2/build/domoticz-3.8153/CMakeFiles/CMakeOutput.log".
Code: Select all
Detecting CXX [-std=c++98] compiler features compiled with the following output:
Change Dir: /mnt/HD_a2/build/domoticz-3.8153/CMakeFiles/CMakeTmp
Run Build Command:"/ffp/bin/make" "cmTryCompileExec1547234902/fast"
/ffp/bin/make -f CMakeFiles/cmTryCompileExec1547234902.dir/build.make CMakeFiles/cmTryCompileExec1547234902.dir/build
make[1]: Entering directory '/i-data/4ad20f06/build/domoticz-3.8153/CMakeFiles/CMakeTmp'
/mnt/HD_a2/.PKG/ffp/ffproot/ffp/bin/cmake -E cmake_progress_report /mnt/HD_a2/build/domoticz-3.8153/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1547234902.dir/feature_tests.cxx.o
/ffp/bin/c++ -std=c++98 -o CMakeFiles/cmTryCompileExec1547234902.dir/feature_tests.cxx.o -c /mnt/HD_a2/build/domoticz-3.8153/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTryCompileExec1547234902
/mnt/HD_a2/.PKG/ffp/ffproot/ffp/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1547234902.dir/link.txt --verbose=1
/ffp/bin/c++ CMakeFiles/cmTryCompileExec1547234902.dir/feature_tests.cxx.o -o cmTryCompileExec1547234902 -rdynamic
make[1]: Leaving directory '/i-data/4ad20f06/build/domoticz-3.8153/CMakeFiles/CMakeTmp'
Feature record: CXX_FEATURE:0cxx_alias_templates
Feature record: CXX_FEATURE:0cxx_alignas
Feature record: CXX_FEATURE:0cxx_alignof
Feature record: CXX_FEATURE:0cxx_attributes
Feature record: CXX_FEATURE:0cxx_attribute_deprecated
Feature record: CXX_FEATURE:0cxx_auto_type
Feature record: CXX_FEATURE:0cxx_binary_literals
Feature record: CXX_FEATURE:0cxx_constexpr
Feature record: CXX_FEATURE:0cxx_contextual_conversions
Feature record: CXX_FEATURE:0cxx_decltype
Feature record: CXX_FEATURE:0cxx_decltype_auto
Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types
Feature record: CXX_FEATURE:0cxx_default_function_template_args
Feature record: CXX_FEATURE:0cxx_defaulted_functions
Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers
Feature record: CXX_FEATURE:0cxx_delegating_constructors
Feature record: CXX_FEATURE:0cxx_deleted_functions
Feature record: CXX_FEATURE:0cxx_digit_separators
Feature record: CXX_FEATURE:0cxx_enum_forward_declarations
Feature record: CXX_FEATURE:0cxx_explicit_conversions
Feature record: CXX_FEATURE:0cxx_extended_friend_declarations
Feature record: CXX_FEATURE:0cxx_extern_templates
Feature record: CXX_FEATURE:0cxx_final
Feature record: CXX_FEATURE:0cxx_func_identifier
Feature record: CXX_FEATURE:0cxx_generalized_initializers
Feature record: CXX_FEATURE:0cxx_generic_lambdas
Feature record: CXX_FEATURE:0cxx_inheriting_constructors
Feature record: CXX_FEATURE:0cxx_inline_namespaces
Feature record: CXX_FEATURE:0cxx_lambdas
Feature record: CXX_FEATURE:0cxx_lambda_init_captures
Feature record: CXX_FEATURE:0cxx_local_type_template_args
Feature record: CXX_FEATURE:0cxx_long_long_type
Feature record: CXX_FEATURE:0cxx_noexcept
Feature record: CXX_FEATURE:0cxx_nonstatic_member_init
Feature record: CXX_FEATURE:0cxx_nullptr
Feature record: CXX_FEATURE:0cxx_override
Feature record: CXX_FEATURE:0cxx_range_for
Feature record: CXX_FEATURE:0cxx_raw_string_literals
Feature record: CXX_FEATURE:0cxx_reference_qualified_functions
Feature record: CXX_FEATURE:0cxx_return_type_deduction
Feature record: CXX_FEATURE:0cxx_right_angle_brackets
Feature record: CXX_FEATURE:0cxx_rvalue_references
Feature record: CXX_FEATURE:0cxx_sizeof_member
Feature record: CXX_FEATURE:0cxx_static_assert
Feature record: CXX_FEATURE:0cxx_strong_enums
Feature record: CXX_FEATURE:1cxx_template_template_parameters
Feature record: CXX_FEATURE:0cxx_thread_local
Feature record: CXX_FEATURE:0cxx_trailing_return_types
Feature record: CXX_FEATURE:0cxx_unicode_literals
Feature record: CXX_FEATURE:0cxx_uniform_initialization
Feature record: CXX_FEATURE:0cxx_unrestricted_unions
Feature record: CXX_FEATURE:0cxx_user_literals
Feature record: CXX_FEATURE:0cxx_variadic_macros
Feature record: CXX_FEATURE:0cxx_variadic_templates
Code: Select all
swapoff /i-data/4ad20f06/video/nsa310swapfile
rm /i-data/4ad20f06/video/nsa310swapfile
Code: Select all
cd /mnt/HD_a2/ffp0.7arm/src/scripts
wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/build/src/domoticz.sh -O domoticz.sh
chmod 755 domoticz.sh
Code: Select all
nohup ./domoticz.sh >> domoticz.log 2>&1 &
Code: Select all
Linking CXX executable domoticz
/ffp/bin/ld: cannot find -lresolv
collect2: error: ld returned 1 exit status
CMakeFiles/domoticz.dir/build.make:5253: recipe for target 'domoticz' failed
make[2]: *** [domoticz] Error 1
CMakeFiles/Makefile2:61: recipe for target 'CMakeFiles/domoticz.dir/all' failed
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Code: Select all
http://forum.nas-central.org/viewtopic.php?f=249&t=7055
Code: Select all
ln -s libc.so /ffp/lib/libresolv.so
Code: Select all
cd /mnt/HD_a2/build/domoticz-3.8153
make
echo $?
Code: Select all
rm -rf /mnt/HD_a2/build
cd /mnt/HD_a2/ffp0.7arm/src/scripts
rm domoticz.log
nohup ./domoticz.sh >> domoticz.log 2>&1 &