-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Domoticz #1041
Comments
var/logs: |
hi all, thanks |
I don't have a solution but I build a Domoticz package for my cedarview DS1812+. It installed but like reported here did not start. This is what is said in /var/log/messages. Unfortunately I can't find any more meaningful logs. Jun 4 20:43:05 MiesStorage entry.cgi_SYNO.Core.Package.Installation[1].install[23710]: pkgtool.cpp:1450 Failed to exrtact package INFO to /volume1/@tmp/538F68B97653CC7A/ However I can manually start the binary, although connecting with a browser gives a 404 message, so it is not working properly in any case.
|
Hello |
This package doesn't work right now, regardless of DSM version, and will need some attention to get in working order again. @Diaoul: Until we have time to work on it, maybe it's best to turn off distribution of this package? I don't know that it was originally shared on the old repo. |
Same issue on RS3412xs. I hope it gets fixed,as I'd love to give it a try :) |
Yep, let's disable it. |
Done, disabled. I might take a look at it, after sorting some other things out, at least just to get it running. |
thanks guys, we'd like you to fix it. thank you |
Yeah, I also found that the package is missing lots of files. I'll do my best to see if I can create a version of the spk that works correctly. Don't hold your breath though, it may take quite some time for me to understand all the necessary steps to make this work ;-) |
that would be definitely great! |
Just a quick note. Making pretty good progress. I have overcome some issues with compiling and running. Although I'm not sure I found the best solution for all of them, I think I should be able to make some packages available for x86 (my own DS411+II uses x86 arch) by the end of the week for testing purposes. |
Submit a pull request instead of distributing your own package. A bad package can screw up the system prety bad so it's best to have it reviewed. |
Thanks, I'll do that instead! I will probably have a couple of questions as to the best way to workaround a certain issue, I'll make sure to put those in the pull request ;-) |
Guys, I own a DS213, it's a marwel kirkwood processor. thanks |
when the package is good it can be compiled for every CPU. maybe gizmocuz (creator of domoticz) can help with the compile issues? |
There are no compile issue with domoticz. The package I created basically just contains the binary. @Dr-Bean built all archs successfully. |
I have no reason to think that there will be issues with compiling for other archs. BTW, the issues I found so far (and I am using r1801) are the following
|
3 You can make a patch for this until it's fixed upstream I advise you to test compilation on ARM architectures rather than x86. With x86 there is a small chance that your system libraries are picked instead of the compiled ones. |
Hi guys, any news on this? |
Yes, sorry this is taking a bit longer than I hoped. Still working on it, but had very limited time last week. Hope to get a bit further and work on the suggestions given above this week :). |
Pull request #1098 created. |
I added a few comments on the PR |
Hi Diaoul, thanks for the comments/improvements! (Not sure if I should ask for your help here or if it's better in the PR). One of your comments is to copy the binary to install/bin and set the path to include the bin directory instead of the root of the install_dir. I actually copied the binary to the root of the package folder, because that is also the location of the domoticz binary as being used upstream. If I would put the binary file in /bin (which seems to be the best location!), then I would need to add source-code patches, to fix relative path changes in the source code. I thought it would be best to limit the changes to the source code as much as possible. Can you advise me what is the best solution here?
Thanks! |
Until further advise on the binary location, I'm keeping the domoticz binary in install_dir. I have committed some more changes (including update to rev 1809 which resolves the Unicode BOM from upstream). |
No compile time option to change this behavior? |
I have just created a topic for this in the domoticz forum. I could not find an option, but the project uses CMake, I am not very familiar with this makefile generator, so it might already be possible compile-time. |
I'm one step further. There is now an -approot command line option that specifies the root that contains a bunch of other files/folders. Because of this the domoticz binary can now be stored in /bin. I do have another question: I used port 8084 (as it is unclaimed in the synology ports wiki), is this ok? And can it be listed there such that no other App will use it? Or should I create a separate Issue for this? I have a couple of other things I want to add to the package, but the package should work quite well already :)
|
And 1. is done (it is now accessible as a regular package/app in DSM) and domoticz is now also running as the domoticz user instead of as root :) If somebody could look into my pull request I'd be happy to make other changes if necessary. |
Yes, a little clarifies. |
@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: |
Hello, jorikcaljouw |
@jorik, 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 |
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. |
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. |
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 |
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. 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. Adding sources and packages
Configuring Debian Chroot locales • / var / packages / debian-chroot / scripts / start-stop status chroot Benodige tools to compillen domoticz • apt-get install build-essential -y Drivers for Domoticz (OpenZwave) • svn co http://open-zwave.googlecode.com/svn/trunk/ open-sulfuric-read-only Domoticz Install • svn checkout svn: //svn.code.sf.net/p/domoticz/code/trunk/ domoticz Starting Domoticz • ./domoticz 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: Autostart Domoticz (Test Phase) • cp domoticz.sh /etc/init.d Adjusting script. This can be done via command vi or the program Wincsp (recommended). • vi /etc/init.d/domoticz.sh Possibly a different port: stop: Check or domoticz start: |
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? |
Thanks for the detailed instructions. I understand very little Linux. Do not quite understand the last question. |
@deanrparry as mentioned many times in this thread no zwave when compiling with spksrc. |
@deanrparry This is for example, or need to specify exactly? |
i am not a retard steef84 i simply asked if there are plans to introduce it or not? simple yes or no question! |
i personally don't care if it is weeks/months or a year! |
technoinstyle sorry i cannot discuss this on this thread i went off topic and it looks like he is not the happiest of people so cannot help any further! :( |
Hi everybody, @deanrparry I hope you're not referring to me :-). I'm a happy bunny (as one of my colleagues in the UK would say). I do think this is not the best place to discuss compiling Domoticz on a Synology. Domoticz has it's own forum for that ;-). This github repository (including the issues that are part of it) is meant for using the spksrc framework for building spk-packages for Synology machines. Like I said before, I would really like to get Z-Wave working with spksrc and domoticz for Synology. I myself have a DS411+II and a Z-Wave stick and I started working on Domoticz package with spksrc in order to eventually control my Z-Wave dimmers with my Synology NAS. I have given it a try a while back, but then I was unable to get all the dependencies compiled. But I really cannot say anything regarding if this is going to be possible (I expect it should be...) and if so when it will be available. I can't give more steps about what needs to be done then to just start building the Domoticz package yourself with spksrc and reading the documentation of Domoticz and the source to find out what is necessary to enable z-wave support. Anybody can give it a try, but I think it would be beneficial to have a combined effort and log attempts and results in some form such that we're not all going to try the same thing and fail the same way ;-). |
Fyi, Domoticz 2.0.2112-5 has been published on the repository. As this issue has been open for quite a while and includes a lot of outdated information, I am going to close it. |
Please refer to #1478 for work on Openzwave support for Domoticz. I have started, and have made a commit to a branch, but I am playing around with things I don't entirely understand yet, so relish any help from others. |
After the installation on my DS1512+ it is impossible to start the package. Error message: faill, file format invalid
The text was updated successfully, but these errors were encountered: