Page 45 of 94
Re: domoticz in synology as package! Available now.
Posted: Wednesday 30 November 2016 11:43
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
Re: domoticz in synology as package! Available now.
Posted: Wednesday 30 November 2016 12:12
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
Re: domoticz in synology as package! Available now.
Posted: Wednesday 30 November 2016 12:43
by mcwieger
That was it. I had added 6.0, but 5.2 was still there next to it...
Re: domoticz in synology as package! Available now.
Posted: Sunday 04 December 2016 18:19
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
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 3:54
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
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 14:07
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
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 15:37
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
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 15:39
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
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 16:10
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:
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?
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 16:36
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:
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?
I have edited in
http://www.jadahl.com/domoticz_stable_6/
I did not test, you can test now.
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 16:44
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!
Re: domoticz in synology as package! Available now.
Posted: Monday 05 December 2016 16:48
by jumbotroll
Same result here
I did restart apache.
Re: domoticz in synology as package! Available now.
Posted: Tuesday 06 December 2016 22:33
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.
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
Re: domoticz in synology as package! Available now.
Posted: Tuesday 06 December 2016 22:40
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.
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
Great job!
Re: domoticz in synology as package! Available now.
Posted: Tuesday 06 December 2016 22:44
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!
Re: domoticz in synology as package! Available now.
Posted: Tuesday 06 December 2016 22:47
by jumbotroll
Re: domoticz in synology as package! Available now.
Posted: Tuesday 06 December 2016 23:55
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?
Re: domoticz in synology as package! Available now.
Posted: Tuesday 06 December 2016 23:58
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.
Re: domoticz in synology as package! Available now.
Posted: Wednesday 07 December 2016 10:10
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.
Re: domoticz in synology as package! Available now.
Posted: Wednesday 07 December 2016 10:32
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.