Page 13 of 94

Re: domoticz in synology as package! Available now.

Posted: Friday 21 August 2015 21:19
by mvveelen
Yes, that's the right location. And....you don't have to change the permissions of the lua scripts. You just don't have to :)

Re: domoticz in synology as package! Available now.

Posted: Saturday 22 August 2015 8:13
by amz4u2nv
Yup, thanks for your help guys... it was the location of the script

Re: domoticz in synology as package! Available now.

Posted: Sunday 23 August 2015 12:56
by LouiS22
Looks like making a working version with Synology is quite a big task - and it's well beyond my skills. So far I managed to make a manual update using a downloaded version of the current repo, and manually deleting the update-related code sources but I'm stuck with the version numbering and to make it worse, I've wiped the working folder so 2 hours of code fiddling went to the almighty Code God...

Re: domoticz in synology as package! Available now.

Posted: Sunday 23 August 2015 14:31
by jumbotroll
It's well beyond my skills to, I've spent many hours trying to figure this out , but will see if I take hold of it again when the cold autumn arrives.
Cross compiling can be a pain sometimes.

Regards
Jumbotroll

Re: domoticz in synology as package! Available now.

Posted: Sunday 23 August 2015 20:20
by Minglarn
Hi guys! My first post here and have a question...

What to prefer: Domoticz on a Raspberry PI2 or Domoticz on a Synology D213?

Have tried both and have a feeling that the Raspberry version is easier to program whit special scripts ect?

//Minglarn...

Re: domoticz in synology as package! Available now.

Posted: Sunday 23 August 2015 20:41
by LouiS22
Minglarn wrote:Hi guys! My first post here and have a question...

What to prefer: Domoticz on a Raspberry PI2 or Domoticz on a Synology D213?

Have tried both and have a feeling that the Raspberry version is easier to program whit special scripts ect?

//Minglarn...
Right now the RPI is a better choice as there's no working method to cross compile domoticz to Synology.

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 15:39
by mvveelen
@Jumbotroll: isn't there anyone on Github with who you can try to compile new packages?

I wish I could help you, but I'm a real n00b with this. I can only test it for you :D

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 16:46
by LouiS22
mvveelen wrote:@Jumbotroll: isn't there anyone on Github with who you can try to compile new packages?

I wish I could help you, but I'm a real n00b with this. I can only test it for you :D
I tried it but eventually gave it up. Too much changes, especially for the update code (which is of course not for Synology).

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 21:00
by gizmocuz
Please tell me what are the current problems, and if i can assist in any way.
I hoped the code would be cross platform, and should not cause any troubles compiling for the synology!

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 21:17
by LouiS22
gizmocuz wrote:Please tell me what are the current problems, and if i can assist in any way.
I hoped the code would be cross platform, and should not cause any troubles compiling for the synology!
Well, according to my tries the main problem is with the update module you applied (had to uncomment those lines to start the compiler, but after that I ran into other obstacles, and that was the point when I gave it up and ordered an RPI :) ). Also the latest beta for Synology is 2563 (with OZW support) is quite old,and there's also problem with libudev in Synology (guys, correct me if I'm wrong, but these are my observations). To summarize, it'll be a big task to rewrite the spkscr cross compiler to make it work again with Domoticz.

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 21:23
by gizmocuz
For sure the update module would not apply for the synology users.
So i cant see a reason why it should not work on a synology ?

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 22:14
by LouiS22
gizmocuz wrote:For sure the update module would not apply for the synology users.
So i cant see a reason why it should not work on a synology ?
That's true, but it causes problems with the current cross compiler (spksrc).

Re: domoticz in synology as package! Available now.

Posted: Monday 24 August 2015 22:15
by gizmocuz
Plz show me the compile error

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 3:00
by jumbotroll
I have done some testing and tweaks, but I am far from a nice solution.
Problem with OpenZwave cross compiling after version 1.3.328.
This test versions is without OpenZwave.
I have not made a new spksrc that working, but manually downloaded domoticz source and cross compiled "a lot of work" :shock:

Here are some test without OpenZwave, but with usb drivers.

************DELETED*************

Regards
Jumbotroll

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 7:52
by mvveelen
Good to see there is some progress with this, @Jumbotroll and @gizmocuz. Unfortunately I need ZWave, so I won't test this version.....

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 8:47
by gizmocuz
are you able to make a patch against openzwave, so this would compile ?
I would not expect issues with cross compiling domoticz, did you need to make any changes?

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 15:51
by LouiS22
jumbotroll wrote:I have done some testing and tweaks, but I am far from a nice solution.
Problem with OpenZwave cross compiling after version 1.3.328.
This test versions is without OpenZwave.
I have not made a new spksrc that working, but manually downloaded domoticz source and cross compiled "a lot of work" :shock:

Here are some test without OpenZwave, but with usb drivers.

domoticz_x86-5.2_2.0.2820-7.spk
http://www.jadahl.com/test/domoticz_x86 ... 2820-7.spk

domoticz_armadaxp-5.2_2.0.2820-7.spk
http://www.jadahl.com/test/domoticz_arm ... 2820-7.spk

domoticz_88f6281-5.2_2.0.2820-7.spk
http://www.jadahl.com/test/domoticz_88f ... 2820-7.spk

Regards
Jumbotroll
Might be my fault, but upon ugrading, Synology crashed and thus erased the previous version as well :( So before upgrading, make sure to have a backup. I was foolish enough not to make a backup, and so 1,5 month of data was lost (my latest backup is from July).

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 18:46
by gizmocuz
Whaa... your whole synology crashed ?

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 20:30
by LouiS22
gizmocuz wrote:Whaa... your whole synology crashed ?
Yup, during the update of the package it went to a loop or something. It recovered from them but the result was the wipe of the domoticz folder and the subsequent files. Doublechecked everything, there's no domoticz.db Well, I can only blame myself not to make a backup before :) Price of using betas I guess, and one more reason to switch to an RPI. I'm tired of Synology's way of handling 3rd party spk-s and fiddling with the cross compiler and lack of proper OZW support. Otherwise, synology is a great platform :)

Re: domoticz in synology as package! Available now.

Posted: Tuesday 25 August 2015 20:58
by jumbotroll
LouiS22 wrote:
gizmocuz wrote:Whaa... your whole synology crashed ?
Yup, during the update of the package it went to a loop or something. It recovered from them but the result was the wipe of the domoticz folder and the subsequent files. Doublechecked everything, there's no domoticz.db Well, I can only blame myself not to make a backup before :) Price of using betas I guess, and one more reason to switch to an RPI. I'm tired of Synology's way of handling 3rd party spk-s and fiddling with the cross compiler and lack of proper OZW support. Otherwise, synology is a great platform :)
Sorry for your problem :(
The arch-x86 running nice on my DS-712+
I have deleted the test files from my server.
Still have problem patching OpenZwave and moore, but I don't have time or skills to fix this.
Maybe it's time to buy a RPI :D
Time will show if someone have the time to fix a working spksrc?
I think I leave the spksrc updating to the experts.

Regards
Jumbotroll