Closed dbouchabou closed 9 years ago
OKi Maybe i resolved the problem... I do: wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py python ez_setup.py pip install -U setuptools
and then i do sudo pip install -U setuptools pip==1.5.4 wheel==0.23 httpie
and unless go OK.
But build SPK not succesfull
/bin/sh ../support/shlib-install -O linux-gnu -V pc -d /home/piotrek/spksrc/spk/domoticz/work-cedarview/install/usr/local/domoticz/lib -b /home/piotrek/spksrc/spk/domoticz/work-cedarview/install/usr/local/domoticz/bin -i "/usr/bin/install -c -m 644" libreadline.so.6.3
install: you may need to run ldconfig
make[7]: Opuszczenie katalogu /home/piotrek/spksrc/spk/domoticz/work-cedarview/readline-6.3/shlib' make[6]: Opuszczenie katalogu
/home/piotrek/spksrc/spk/domoticz/work-cedarview/readline-6.3'
find /home/piotrek/spksrc/spk/domoticz/work-cedarview/install//usr/local/domoticz/ ! -type d -printf '%P\n' | sort | \
diff /home/piotrek/spksrc/spk/domoticz/work-cedarview/readline.plist.tmp - | grep '>' | cut -d' ' -f2- > /home/piotrek/spksrc/spk/domoticz/work-cedarview/readline.plist
make[5]: Opuszczenie katalogu /home/piotrek/spksrc/cross/readline' make[5]: Wejście do katalogu
/home/piotrek/spksrc/cross/ncurses'
make[5]: Nie ma nic do zrobienia w default'. make[5]: Opuszczenie katalogu
/home/piotrek/spksrc/cross/ncurses'
make[5]: Wejście do katalogu /home/piotrek/spksrc/cross/bzip2' make[5]: Nie ma nic do zrobienia w
default'.
make[5]: Opuszczenie katalogu /home/piotrek/spksrc/cross/bzip2' make[5]: Wejście do katalogu
/home/piotrek/spksrc/cross/berkeleydb'
===> Please download db-5.3.28.tar.gz manually from http://www.oracle.com/technetwork/products/berkeleydb/overview/index.htm, and place in /home/piotrek/spksrc/cross/berkeleydb/../../distrib
make[5]: * [nop_download_target] Błąd 1
make[5]: Opuszczenie katalogu `/home/piotrek/spksrc/cross/berkeleydb'
make[4]: * [depend_target] Błąd 2
make[4]: Opuszczenie katalogu/home/piotrek/spksrc/cross/python' make[3]: **\* [depend_target] Błąd 2 make[3]: Opuszczenie katalogu
/home/piotrek/spksrc/cross/boost'
make[2]: [depend_target] Błąd 2
make[2]: Opuszczenie katalogu`/home/piotrek/spksrc/cross/domoticz'
make[1]: \ [depend_target] Błąd 2
make[1]: Opuszczenie katalogu `/home/piotrek/spksrc/spk/domoticz'
make: [arch-cedarview] Błąd 2 (zignorowany)
piotrek@debian-poczta:~/spksrc/spk/domoticz$
There is a message in your log: ===> Please download db-5.3.28.tar.gz manually from http://www.oracle.com/technetwork/products/berkeleydb/overview/index.htm, and place in /home/piotrek/spksrc/cross/berkeleydb/../../distrib
OK i download db-5.3.28.tar.gz and put it in /spksrc/distrib and works OK :) Thanks
I build Domoticz v 2045 for cedarview. https://www.dropbox.com/sh/k5jjpk63iem2dgz/AAA4zMvU-VgpJWnNKZbanDZBa?dl=0
@jorikcaljouw thank you for your contribution to run Domotics on Syno, I try 2014 bromolow package manual installation from your Dropbox, it works fine. I don't see Openzwave, do you include it!? Otherwise , can you implement it ? 1 already have Synozwave package ( not run ) and USB driver package. have you a solution for zwave support in your Domotics spk regards
Hi @delcan, unfortunately I have not yet succeeded in getting openzwave compiled with spksrc. There are dependencies on other packages that were not easy to compile so far. Since I only have Z-Wave devices in my house, I would really like to get this up and running, but it'll take a bit longer unfortunately...
Hi @jorikcaljouw , Perhaps this page can help you :+1: http://www.livingroomfun.info/blog/20111020/openzwave-running-on-synology-ds1010/ otherwise, you can contact Synozwave creator @ synozwave@gmail.com he make a package with openzwave, so he find a solution !
Thanks. Synozwave does not seem to use the spk cross compilation framework. I will contact him though, to see how he compiles his package. Also the suggestion from livingroomfun hardcodes a usb device in the source code, that is not going to be very useful for a package that needs to be used by multiple people I think ;-).
I updated the two patches mentioned at:
http://www.domoticz.com/wiki/DomoticzSynology
Domoticz #2099 OpenZWave #919
USB devices are detected in domoticz as /dev/ttyUSB*
it might be that your zwave stick is using another naming system then ttyUSB, for this you can create udev rules so that it maps for example to /dev/ttyUSB20
I try to install "Domoticz v 2045 for cedarview. https://www.dropbox.com/sh/k5jjpk63iem2dgz/AAA4zMvU-VgpJWnNKZbanDZBa?dl=0 " Work fine, maby time to publish in repo?
working well here on rs814+ :) bit of messing around with chmod etc but all good :)
@deanrparry I hope the chmod'ing was only necessary for the hardware devices? Domoticz itself should not require any file permission modifications when running from SPK I think.
I'll give the openzwave library with new patches another try soon. But if I recall correctly libusb/systemd was the problem before. If the patch ditches those dependencies that may make it a lot easier :-).
yes just the hardware devices but i have never done anything like this before so i have to learn still :) but its working great with my fibaro setup and virtual sensors!
The only thing i found was restarting Synology or unplugging device I needed to run the chmod command everytime i take it that is normal? or can i add it to a task or something?
I have a problem when i try build SPK from latest rev 2103
make[2]: Opuszczenie katalogu /home/piotrek/spksrc/cross/busybox' make[2]: Wejście do katalogu
/home/piotrek/spksrc/cross/domoticz'
===> Downloading files for domoticz
svn co -r 2103 svn://svn.code.sf.net/p/domoticz/code/domoticz
svn: URL 'svn://svn.code.sf.net/p/domoticz/code/domoticz' nie istnieje
make[2]: * [download_target] Błąd 1
make[2]: Opuszczenie katalogu `/home/piotrek/spksrc/cross/domoticz'
make[1]: * [depend_target] Błąd 2
make[1]: Opuszczenie katalogu`/home/piotrek/spksrc/spk/domoticz'
make: [arch-cedarview] Błąd 2 (zignorowany)
piotrek@debian-poczta:~/spksrc/spk/domoticz$
With older i have the same problem.
Ok update makefile to commiy on github and still have a problem.
make[5]: Nie ma nic do zrobienia w default'. make[5]: Opuszczenie katalogu
/home/piotrek/spksrc/cross/bzip2'
make[5]: Wejście do katalogu /home/piotrek/spksrc/cross/berkeleydb' ===> Please download db-5.3.28.tar.gz manually from http://www.oracle.com/technetwork/products/berkeleydb/overview/index.htm, and place in /home/piotrek/spksrc/cross/berkeleydb/../../distrib make[5]: *** [nop_download_target] Błąd 1 make[5]: Opuszczenie katalogu
/home/piotrek/spksrc/cross/berkeleydb'
make[4]: * [depend_target] Błąd 2
make[4]: Opuszczenie katalogu `/home/piotrek/spksrc/cross/python'
make[3]: * [depend_target] Błąd 2
make[3]: Opuszczenie katalogu/home/piotrek/spksrc/cross/boost' make[2]: **\* [depend_target] Błąd 2 make[2]: Opuszczenie katalogu
/home/piotrek/spksrc/cross/domoticz'
make[1]: *** [depend_target] Błąd 2
make[1]: Opuszczenie katalogu`/home/piotrek/spksrc/spk/domoticz'
make: [arch-cedarview] Błąd 2 (zignorowany)
piotrek@debian-poczta:~/spksrc/spk/domoticz$
I manuall download db-5.3.28.tar.gz and manuall put in /cross/berkeleydb and nothing still have this bug. Please help me.
You have to copy it to: /home/piotrek/spksrc/distrib The ".." refers to a directory up towards root
OK Thanks
Can you add to your or synocommunity repo files to compile newest OWFS 2.9p8 SPK for platform cedarview and 88F6281 ?Please...
Thanks sounds like a useful (separate) enhancement request, could you create a new "enhancement"-labelled issue? I won't be working on that before I get open-zwave working, though. But there may be others :).
I create issue #1308
Does anyone have created a spk from the last version of domoticz for the synology DS-213+ ??
Or could someone make it?
Compiling works like a charm. Ive created many packages for my DS213+. I;ve uploaded them on my dropbox https://www.dropbox.com/sh/891tnhldtx9yf5u/AABjOM0BTZh093pTiRWFDxkIa?dl=0. Im using this on my DS213+ with latest DSM 5.0
@jorikcaljouw are you planning to publish your testbuilds. Its nice I quess to have all your packages in one place.
Hello
Thanks for the reaction.
Maybe you could help me out.
I like to have more knowledge about linux, dsm and compiling apps form y synology.
Could you explain in dump person languge how to do it?
I’m not that fermiliar with this stuff, i got ubuntu installed on my laptop and like to make spk on it for my NAS DS213+.
For example node.js etc
Greetz,
Mark
Van: steef84 [mailto:notifications@github.com] Verzonden: zondag 16 november 2014 17:02 Aan: SynoCommunity/spksrc CC: NightFalcon650 Onderwerp: Re: [spksrc] Domoticz (#1041)
Compiling works like a charm. Ive created many packages for my DS213+. I;ve uploaded them on my dropbox https://www.dropbox.com/sh/891tnhldtx9yf5u/AABjOM0BTZh093pTiRWFDxkIa?dl=0.
@jorikcaljouw https://github.com/jorikcaljouw are you planning to publish your testbuilds. Its nice I quess to have all your packages in one place.
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1041#issuecomment-63224620 . https://github.com/notifications/beacon/AGx6WY12Av0mFu-w9KvwfU0HOmuWpQTsks5nOMIPgaJpZM4CAUwW.gif
Hi, It looks like the forum for Domoticz is out of order. I am trying to make Domoticz wirk on my Syno DS412+. The final make is ok, but after that I get an error when trying to (segmentation fault). I suspect that the cause is that the DS412+ processor is not ARM but i686 but not even sure. Where can I find some help ? Synozwave was installed successfully. Cheers, Manu
Hi, jorikcaljouw. Have Synology DS-214Play with installed SynoZWave and Aeon Lab stick S2. I want to try Domoticz. Can do for me Domoticz package, or help me make the Domoticz package for my Synology? Still interested in the package for DS-3612.
hi tehnoinstyle, As far as I can find the DS214Play uses evansport architecture and this package seemed to build as clean for evansport as for the x86 I use for my NAS.
I cannot publish these packages to the spk-repository for easy installing. That is something the SynoCommunity dev's need to do ;-).
That being said, I haven't spend a lot of time on these packages lately, but I am still planning to try and include openzwave support!
Big minus on Synology is have not pins GPIO which help easy connection of sensors as on Raspberry Pi. On Synology i also can not run 1wire on USB DS9490R and RS232 DS9097. On Raspberry works perfect. Maybe you have an idea in the subject of these devices and can help me ?
to jorikcaljouw Hi, thanks for your reply and sorry for my english. I tried to install the package http://www.domoticz.com/forum/viewtopic.php?f=4&t=2620&start=20 but it does not install. Yes, ds214play has evansport architecture. I have little knowledge of self-assembly package. Drivers for Z-Wave stick installed and stick works well with applications Openremote and SynoZWave. I understand, that you create a Domoticz package from source, with support libraries Open-Z-Wave? Can you help me create a package for ds214Play or ds3612? Or to paint step by step, what, and how to do?
The spk that I updated does NOT support openzwave currently. Even if you installed the SynoZWave, this compiled version of domoticz will not be able to use zwave devices. The steps for compiling any spk package yourself can be found in the Readme of the spksrc repository. You can follow the same steps for this package.
I read it http://www.domoticz.com/wiki/DomoticzSynology and I do not understand where to start, never did. Enjoyed prebuilt packages. I'm afraid that when you try to install Domoticz, broken already installed.
This seems to be a common source of confusion.
That wiki-page has installation instructions for compiling Domoticz on a Synology NAS.
That has nothing to do with the installation instructions and compiling etc. that we are discussing in this thread. (The only things that "we" have in common is the fact that we're trying to get Domoticz on a Synology NAS, but the ways in which we do that is 100% different!)
This thread is about creating a Domoticz .spk that can be installed as is without having to compile on the NAS. Since the Domoticz package is not yet in the online repository with .spk's currently you would have to build this .spk yourself or get one from somebody who built one for the same architecture as your Synology. Building spk's is typically performed on a Linux Virtual Machine, which you would run on a regular computer.
I hope this clarifies things a bit.
Yes, a little clarifies. I have Qnap TS-119 with installed ipkg. Ie I can do it on the package for installation on Synology?
@jorikcaljouw just a small request. Is it possible to save folder the folder /domoticz/scripts when updating domoticz. Atm i use winscp to save the folder, but life is easier when its automated. Thanks in advance. Still enjoying Domoticz everyday on my Syno DS213+
Yes this can be easily customized. If you're a bit familiar with shell scripting, you can add the necessary lines for this in: spk/domoticz/src/installer.sh And then in the functions for preupgrade and postupgrade
Hello, jorikcaljouw I found a link to your dropbox - SynoTestPackages, and has found a package for bromolow platform. But also probably without the support of Z-Wave? You have not tried to make the package, with support for Z-Wave? Already need the packages for the two platforms, evansport and bromolow. Thank you.
@jorik, after having read the complete thread, I understand the followings: 1/ Zwave is not supported in this spk. 2/ To support it, I would need to compile OpenZwave then recompile domiticz. so I can't really use this spk. 3/ The steps to compile both are in domoticz' wiki. Can you please confirm my understanding?
I would like to help you to support Zwave in Domoticz' spk but you'll have to tell me if you want my help. I am not very familar with spk compilation but I can learn.
to vfd7 Yes, I need help. Find out please. For platforms evansport and bromolow. With support Z-Wave AeonLab stick S2. Thanks.
Ok, with a brief talk with Jorik we agreed all the packages combined in one place would be a nice addon. Sadly the package at the time is not approved by official SynoCommunity devs. My idea was to add a temporary "TESTING !!!! " packages server where we could download different kinds of cpu structures. To add this server simply add http://steef84.asuscomm.com/sspks/ to to the Community Packetsource in DSM. I only test my Qoriq build, and thats working. Probabely others will also work. Its hosted on my Syno aswell, so dunno how the performance will be. Feel free to add this inofficial testing build server
To clarify: NO Z-wave support at the moment
to steef84
Ready to join the testing on the above platforms. Currently have dimmers, switches, RGBdimer. Tomorrow I will have 5-7 Z-Wave devices (sensors, multisensor, thermostats, switch, etc.).
Add a link to the source of the packages in the center of the packages on DS214play and DS3612. Packages saw. On DS214play proposed upgrade from version 2014-3 (Jorik link) to version 2146-1. It is a pity that without the support Z-Wave. When planning to add Z-Wave? Thanks.
So much more reliable than the Raspberry PI which constantly goes offline! I have just purchased the ZWAVE.ME Plus ZWave dongle so getting this working would be the "ultimate" home automation solution!
Media/Surveillance/Automation all om Synology! :)
And I could sell my Fibaro HC2 boxes aswell as they suck the development team have no idea what they are doing from day to day!
steelf84 will zwave support be added at all?
made an attempt to compile a version with openzwave!
now i am currently on medication for headaches! :)
to deanrparry Is there good news?
haha no! far from it! i am not cut out for this... everything went well until the cmake section!
i am now going the debian chroot method instead
as this method to install on my server?
well the debian method is a lot easier... this is not my work so credit to the original author!
Domoticz on Synology in Debian Chroot
Debian Chroot an extra (Linux) operating system over the existing operating system, Synology go. All installation carried out in a Debian Chroot are not integrated into the operating system Synology. When removing the Debian Chroot package in the DSM, all programs installed herein are removed! The use of a Debian Chroot advisable. It is easy to install and is for all Synology's. :)
Since it can not really go wrong, it is at your own risk ....... Automatic startup domoticz working on ... If somewhere in the system something is not going well, remove Debian Chroot of your system (DSM Packages). Any action to be lost. Possible error messages locales you can ignore.
Adding sources and packages
1) Add the repo: http://packages.synocommunity.com to the package center (DSM) 2) Install the following packages: • Python 2.7.8.10 of Synocommunity • Debian Chroot (then click Run as this does not happen automatically) 3) Open Debian Chroot and wait status: Installed 4) Open Control Panel Synology and go to Terminal / SNMP. Tick SSH to it. 5) Open with program Putty SSH terminal session. 6) Login with username root and password of your Admin account from Synology. 7) Enter the following commands via SSH session:
Configuring Debian Chroot locales
• / var / packages / debian-chroot / scripts / start-stop status chroot Now you come in Debian Chroot: Root @ Log: / # • aptitude update • aptitude upgrade • aptitude install locales • dpkg-reconfigure locales select there nl_NL.UTF-8 UTF-8 (scroll with the arrow key) and go to OK (Tab key) (enter) • dpkg-reconfigure tzdata Select Europe and then there Amsterdam
Benodige tools to compillen domoticz
• apt-get install build-essential -y • apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libudev-dev
Drivers for Domoticz (OpenZwave)
• svn co http://open-zwave.googlecode.com/svn/trunk/ open-sulfuric-read-only • CD-sulfuric open-read-only • make • CD
Domoticz Install
• svn checkout svn: //svn.code.sf.net/p/domoticz/code/trunk/ domoticz • CD domoticz • cmake -DCMAKE_BUILD_TYPE = Release • make
Starting Domoticz
• ./domoticz http: // ipvanjenas: 8080
After restarting your nas you start Domoticz manually. Starting Domoticz automatically works not quite tasty. test phase
To start domoticz manually after restarting the NAS, enter the following command and utilities: • / var / packages / debian-chroot / scripts / start-stop status chroot • CD domoticz • ./domoticz
Autostart Domoticz (Test Phase)
• cp domoticz.sh /etc/init.d • chmod + x /etc/init.d/domoticz.sh • update-rc.d domoticz.sh defaults
Adjusting script. This can be done via command vi or the program Wincsp (recommended).
• vi /etc/init.d/domoticz.sh Change the following settings: DAEMON = domoticz / domoticz User = root
Possibly a different port: OPTIONS = "- www 8080" Now you can run domoticz with: • /etc/init.d/domoticz.sh start
stop: • /etc/init.d/domoticz.sh stop
Check or domoticz start: • /etc/init.d/domoticz.sh status
Chroot is disfunctional for some Synologys. At least for my DS213+ And here we talk about compiling spks, not running through chroot.
So can you answer my original question please :) packages with open ZWave?
After the installation on my DS1512+ it is impossible to start the package. Error message: faill, file format invalid