Page 48 of 94

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 14:34
by jumbotroll
@Egregius
That's great, but DSM 6.1 on DS1513+ (arch-cedarview) has updated kernel to 3.10.102 I Think, and I am not sure all USB drivers are kompatible.
Do you use Z-stick RFLink or RFXCOM?
You can also log in to your NAS with Telnet or SSH and type: dmesg
and check if you have some USB driver errors, if not, No worries :-)

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 14:48
by Egregius
You could be right, altough my Z-stick Gen 5 works, haven't used rfxcom yet.

Code: Select all

[  154.169516] cp210x: version magic '3.10.77 SMP mod_unload ' should be '3.10.102 SMP mod_unload '
[  154.218879] pl2303: version magic '3.10.77 SMP mod_unload ' should be '3.10.102 SMP mod_unload '
[  154.239050] ch341: version magic '3.10.77 SMP mod_unload ' should be '3.10.102 SMP mod_unload '
[  154.275013] ti_usb_3410_5052: version magic '3.10.77 SMP mod_unload ' should be '3.10.102 SMP mod_unload '

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 14:55
by jumbotroll
Gen 5 uses native cdc-acm driver, so that should work.
If you update to my DSM 6.1 beta package, all the the drivers should be ok.

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 15:19
by Egregius
No good:

Code: Select all

2017-02-23 15:17:29.743  Domoticz V3.6730 (c)2012-2017 GizMoCuz
2017-02-23 15:17:29.743  Build Hash: 6ea9b5d-modified, Date: 2017-02-17 06:39:03
2017-02-23 15:17:29.744  Startup Path: /usr/local/domoticz/
2017-02-23 15:17:29.772  Sunrise: 06:44:00 SunSet:17:16:00
2017-02-23 15:17:29.772  EventSystem: reset all events...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Let's see if my backup is any good...


Edit: nevermind, installed the python3 package and it runs now. It didn't find the python2.7 package that was already installed.

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 15:27
by jumbotroll
@Egregius
You have to install Python 3.5.1 from synology.
DSM 6.1 version include Python Plugin.
py3k-x86_64-3.5.1-0105.spk
You can also manually download here: http://download.synology.com/download/P ... .5.1-0105/

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 15:30
by Egregius
It runs now, just a bit stupid to be forced to install a additionnall package that I won't use for anything.

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 15:33
by jumbotroll
@Egregius
In the future I think all domoticz users want this Python Plugin, but if you want, I can build a domoticz beta version for you without Python Plugin?

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 15:49
by Egregius
That was one of the reason I stopped going on beta's and stayed on latest stable. I don't need python, I'm not gonna use it.
But if domoticz is continuing the integration of that it's not up to you to keep hundreds of different versions online.

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 15:57
by jumbotroll
Ha ha ..
It's getting a lot to deal with yes :-)
I receive many requests for different versions:
DSM 5.2 DSM 6.0 DSM 6.1 with or without Python plugin, but if I have time, I gladly build some special variants for you guys :-)

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 16:10
by Egregius
If you think of it further, this could be treaded as a bug in Domoticz.
I don't have any python plugins, ...
Wait a minute, there is a plugin in the plugins folder: AwoxSMP. Let's quickly move it away.

Anyway, I would have sayed: why require python if no plugins are detected?

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 16:14
by Egregius
Oh, I do have another request :P

Is there a way to store the variables chosen during installation of the package so they are used upon update?
I always disable https by putting a 0 in front of it.
It would also be cool to be able to alter the log folder, as I store it in tmpfs (/tmp/domoticz.log).
If that could be kept after updates, that would be great in my case :)

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 16:15
by jumbotroll
Why require python if no plugins are detected? I agree, It should be a autodetect in the code for this.
domoticz_cedarview-6.1_3.0.6775-7.spk without Python Plugin!
http://jadahl.com/synospk/domoticz_ceda ... 6775-7.spk

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 16:21
by Egregius
That works indeed, thank you!

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 18:36
by waaren
@Jumbotroll

I made mistake by installing the latest beta 3.6765 on my Synology 916+ DSM 6.1 and therewith lost the Python plugin part. Downgrading to your version 6730 is not possible :-(
Would it be possible for you to compile a new version with Python plugin ?

Thx in advance.

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 18:43
by jumbotroll
@waaren
to be 100% sure.. You want latest domoticz beta for DSM 6.1 DS916+ with Python Plugin?

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 18:52
by waaren
@Jumbotroll

Yes (pretty) please

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 19:09
by jumbotroll
@waaren
Ok I will upload the new domoticz packages with python plugin for DSM 6.1 here: http://www.jadahl.com/domoticz_beta_6.1/
Remember to remove the DSM 6.0 URL from package center if you have added this URL.

Re: domoticz in synology as package! Available now.

Posted: Thursday 23 February 2017 19:27
by waaren
@jumbotroll

Thx. Downloaded and installed. Python plugin working again

Re: domoticz in synology as package! Available now.

Posted: Friday 24 February 2017 10:41
by bertbigb
Hi Jumbotroll,

I'm getting a bit confused and I hope you can help with clearing it out:

If I'm running Synology 6.1 on my DS1515 I need to have the Domoticz package from http://www.jadahl.com/domoticz_beta_6.1/ right?

If I'm running Synology 6.0 on my DS1511 I need to have the Domoticz package from http://www.jadahl.com/domoticz_beta_6.0/ right?

And what about the Python plugin, do I need that yes or no? Or is the Python plugin always a part of the Domoticz package?

Hope you can find some time to answer my stupid questions.

best regards,
Bert

Re: domoticz in synology as package! Available now.

Posted: Friday 24 February 2017 11:08
by jumbotroll
@bertbigb
Yes domoticz for DSM 6.1 use this url: http://www.jadahl.com/domoticz_beta_6.1/
and DSM 6.0 use this url: http://www.jadahl.com/domoticz_beta_6.0/
I have only build domoticz with Python Plugin for DSM 6.1 and you have to install Python 3.5.1 package from Synology.
If you don't want domoticz with Python Plugin, I can build a special version for you without, but I think in the future the developers will add more and more hardware plugins for Python.
I don't think I have the time to update beta packages for all the Synology versions with and without Python Plugin, so for now the domoticz beta packages for DSM 6.1 will be with Python Plugin. When a new Stable version is available I can build both versions.