domoticz in synology as package! Available now.

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by mcwieger »

A manual update did the trick: downloaded the package and installed it over the version that had been automatically updated.

So it appears something is not going well in the automated update process (is the right version available in the repository, right version automatically selected for the processor type?)

Maybe something to check.

Thanks for your quick response, as always :-)
I moved to HomeAssistant. It was fun while it lasted!
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

mcwieger wrote:A manual update did the trick: downloaded the package and installed it over the version that had been automatically updated.

So it appears something is not going well in the automated update process (is the right version available in the repository, right version automatically selected for the processor type?)

Maybe something to check.

Thanks for your quick response, as always :-)
Check the URLs you have in the Package Center --> Pakckage source!
If you running DSM5.2 you should have DSM5.2 URLs and for DSM6.x you must update to DSM6.x URLs
For DSM 5.2 Beta versions:
http://www.jadahl.com/domoticz_beta/
For DSM 6.x Beta versions:
http://www.jadahl.com/domoticz_beta_6/

For DSM5.2 Stable versions:
http://www.jadahl.com/domoticz_stable/
For DSM6.x Stable versions:
http://www.jadahl.com/domoticz_stable_6/

Delete the DSM5.2 URLs if you have updated your NAS to DSM6.x
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by mcwieger »

That was it. I had added 6.0, but 5.2 was still there next to it...
I moved to HomeAssistant. It was fun while it lasted!
Sven2205
Posts: 1
Joined: Sunday 04 December 2016 18:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Sven2205 »

Hi guys,
I would like Domoticz to run on my Synology DS1515 +.
I bought this USB Flash Drive:
Https://www.amazon.de/Z-Wave-ZME-UZB1-S ... 4GQK7GDADW

If I would like to integrate actuators, the load screen is not finished (Have already waited 30 minutes) and if I break the load then the actuators are incorporated as "Unknow".
I tested it with Domoticz Stable and Beta.
My DSM: 6.0.2-8451 Update 5

(Have also pictures, which I can send as needed)

What am I doing wrong?


Thanks for your reply
kinghuzi
Posts: 18
Joined: Tuesday 10 November 2015 11:47
Target OS: -
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by kinghuzi »

Hi Jumbotroll.

Please could you update the 5.2 beta to latest version as current version has bug that does not allow harmony Logitech to work. This was fixed in latest beta. Much appreciated.

For: http://www.jadahl.com/domoticz_beta/?arch=bromolow
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

Hi Jumbotroll,

Together with Synology Support I've been investigation why I cannot add your repository to my Package Center. It seems that the server/service does not accept my DS model (411+II) as can be seen when running the following commands with curl. For the 411+ it gives results, but for 411+II it does not:

Code: Select all

curl -L -A "synology_x86_411+ DSM6.1-14902 (package)" --data "package_update_channel=stable&unique=synology_x86_411+&build=14903&language=enu&major=6&arch=x86&minor=1&timezone=Amsterdam" "http://www.jadahl.com/domoticz_stable_6/"
vs

Code: Select all

curl -L -A "synology_x86_411+II DSM6.1-14902 (package)" --data "package_update_channel=stable&unique=synology_x86_411+II&build=14903&language=enu&major=6&arch=x86&minor=1&timezone=Amsterdam" "http://www.jadahl.com/domoticz_stable_6/"
If you have an idea about how to fix this, that would be great. Otherwise I will try to install a package server and perform more debugging myself.

Thanks,
Jorik
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

jorik wrote:Hi Jumbotroll,

Together with Synology Support I've been investigation why I cannot add your repository to my Package Center. It seems that the server/service does not accept my DS model (411+II) as can be seen when running the following commands with curl. For the 411+ it gives results, but for 411+II it does not:

Code: Select all

curl -L -A "synology_x86_411+ DSM6.1-14902 (package)" --data "package_update_channel=stable&unique=synology_x86_411+&build=14903&language=enu&major=6&arch=x86&minor=1&timezone=Amsterdam" "http://www.jadahl.com/domoticz_stable_6/"
vs

Code: Select all

curl -L -A "synology_x86_411+II DSM6.1-14902 (package)" --data "package_update_channel=stable&unique=synology_x86_411+II&build=14903&language=enu&major=6&arch=x86&minor=1&timezone=Amsterdam" "http://www.jadahl.com/domoticz_stable_6/"
If you have an idea about how to fix this, that would be great. Otherwise I will try to install a package server and perform more debugging myself.

Thanks,
Jorik
I have no clue why this not working, but I think it's a bug in the sspks server because it is the same problem with DS716+II.
You are welcome to find the problem, but I would not spend more time on this ;) You can always download manually!
Here is the source to the sspks server software: https://github.com/jdel/sspks
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

kinghuzi wrote:Hi Jumbotroll.

Please could you update the 5.2 beta to latest version as current version has bug that does not allow harmony Logitech to work. This was fixed in latest beta. Much appreciated.

For: http://www.jadahl.com/domoticz_beta/?arch=bromolow
Updated domoticz_bromolow-5.2_3.0.6033-7.spk
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

jumbotroll wrote: [...]
I have no clue why this not working, but I think it's a bug in the sspks server because it is the same problem with DS716+II.
You are welcome to find the problem, but I would not spend more time on this ;) You can always download manually!
Here is the source to the sspks server software: https://github.com/jdel/sspks
Hi Jumbotroll,

I took a look at the spkss code and I'm pretty sure I found the issue. index.php at line 36, (see: https://github.com/jdel/sspks/blob/master/index.php) uses the "unique" string directly in a regular expression. Since the "+" has a special meaning, the regular expression fails for devices that have any characters after the +, such as 411+II or 716+II.

You can fix this by changing line 34 from:

Code: Select all

$unique = trim($_POST['unique']);
to:

Code: Select all

$unique = preg_quote(trim($_POST['unique']));
The "preg_quote" will escape the + character and then the regular expression will work correctly. I will create an issue on the github-page from jdel. Are you willing to make this change on your server? :D
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

jorik wrote:
jumbotroll wrote: [...]
I have no clue why this not working, but I think it's a bug in the sspks server because it is the same problem with DS716+II.
You are welcome to find the problem, but I would not spend more time on this ;) You can always download manually!
Here is the source to the sspks server software: https://github.com/jdel/sspks
Hi Jumbotroll,

I took a look at the spkss code and I'm pretty sure I found the issue. index.php at line 36, (see: https://github.com/jdel/sspks/blob/master/index.php) uses the "unique" string directly in a regular expression. Since the "+" has a special meaning, the regular expression fails for devices that have any characters after the +, such as 411+II or 716+II.

You can fix this by changing line 34 from:

Code: Select all

$unique = trim($_POST['unique']);
to:

Code: Select all

$unique = preg_quote(trim($_POST['unique']));
The "preg_quote" will escape the + character and then the regular expression will work correctly. I will create an issue on the github-page from jdel. Are you willing to make this change on your server? :D
I have edited in http://www.jadahl.com/domoticz_stable_6/
I did not test, you can test now.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

Too bad, when I run the curl command it doesn't work. Do you think some caching may be taking place? I'm not sure if you'd need to restart apache, I would expect that wouldn't be necessary actually.

I took a part of the PHP code that seemed to give the issue and debugged it separately and found this solution, but I guess I'll have to install the whole thing and perform some more debugging with my own NAS.

Thanks for the quick try!
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

Same result here :-(
I did restart apache.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

Hi Jumbotroll,

Did you revert your changes? I have been performing some additional debugging and it seems the curl command that Synology Support provided was not a good test. :shock:

In the curl command the + character was not url encoded, so it became a space in the POST message hence the failure with the curl test. While debugging with my own sspks, I found that my original suggested change should resolve the issue after all. With a better curl test and with my actual Synology Package Center I can add my own location with the preg_quote change...

A better curl test command would be:

Code: Select all

curl -L -A "synology_x86_411+II DSM6.1-14902 (package)" --data "package_update_channel=stable&unique=synology_x86_411%2BII&build=14903&language=enu&major=6&arch=x86&minor=1&timezone=Amsterdam" "http://www.jadahl.com/domoticz_stable_6/"
As you can see I replaced the + in the "unique" parameter with %2B.

Thanks,
Jorik
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

jorik wrote:Hi Jumbotroll,

Did you revert your changes? I have been performing some additional debugging and it seems the curl command that Synology Support provided was not a good test. :shock:

In the curl command the + character was not url encoded, so it became a space in the POST message hence the failure with the curl test. While debugging with my own sspks, I found that my original suggested change should resolve the issue after all. With a better curl test and with my actual Synology Package Center I can add my own location with the preg_quote change...

A better curl test command would be:

Code: Select all

curl -L -A "synology_x86_411+II DSM6.1-14902 (package)" --data "package_update_channel=stable&unique=synology_x86_411%2BII&build=14903&language=enu&major=6&arch=x86&minor=1&timezone=Amsterdam" "http://www.jadahl.com/domoticz_stable_6/"
As you can see I replaced the + in the "unique" parameter with %2B.

Thanks,
Jorik
Edited back.
Working now :D
Great job!
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

Thanks! It's working for me now for http://www.jadahl.com/domoticz_stable_6/

I can finally get my Domoticz updates directly from Package Center! 8-)
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

jorik wrote:Thanks! It's working for me now for http://www.jadahl.com/domoticz_stable_6/

I can finally get my Domoticz updates directly from Package Center! 8-)
Updated beta to.

http://www.jadahl.com/domoticz_beta_6/
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

When trying to restore my Domoticz database with the Restore Database option in the Domoticz webpage, it would immediately go back to the dashboard and in Synology Package Center I could see in the logs:

Code: Select all

Error: Webserver: File '/restoredatabase.webem': No such file or directory (2)
The backup was also not restored. I manually copied the .db-file back, so everything is fine now, but maybe this is related to the way Domoticz is packaged for Synology?
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

jorik wrote:When trying to restore my Domoticz database with the Restore Database option in the Domoticz webpage, it would immediately go back to the dashboard and in Synology Package Center I could see in the logs:

Code: Select all

Error: Webserver: File '/restoredatabase.webem': No such file or directory (2)
The backup was also not restored. I manually copied the .db-file back, so everything is fine now, but maybe this is related to the way Domoticz is packaged for Synology?
Try to empty cash in your browser or use another browser.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
jorik
Posts: 17
Joined: Thursday 12 June 2014 16:16
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Eindhoven, Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by jorik »

I tried emptying cache in my Safari browser, but unfortunately that didn't help. Also I tried Google Chrome instead and for both cases I saw the same error message in the log. I don't know exactly what this "webem" extension is, but something seems wrong.
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: domoticz in synology as package! Available now.

Post by jumbotroll »

jorik wrote:I tried emptying cache in my Safari browser, but unfortunately that didn't help. Also I tried Google Chrome instead and for both cases I saw the same error message in the log. I don't know exactly what this "webem" extension is, but something seems wrong.
I have never seen this error before on synology.
Backup/Restore database file have always worked for me.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest