domoticz in synology as package! Available now.

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

Moderator: leecollings

Remcootje
Posts: 2
Joined: Thursday 16 April 2020 14:51
Target OS: NAS (Synology & others)
Domoticz version: 3.9483-7
Contact:

Re: domoticz in synology as package! Available now.

Post by Remcootje »

@jumbotroll:
waaren wrote: ↑
Sunday 19 April 2020 22:46
Remcootje wrote: ↑
Sunday 19 April 2020 19:58
['ve manually placed the files from apollocake in my version.
Code: Select all
:/volume1/@appstore/domoticz/var/dzVents/runtime/dzVents.lua
cannot see 'runtimePath' in the code, so it must be a definition in Domoticz ?

I suggest you ask this question in one of the Synology installation topics on this forum. Hopefully @jumbotroll can answer how to deal with this.
It would probably help if you can state your current version

Is there a solution for placing dzVents working on my NAS? It seems that some code is missing, or generating error runtimePath.
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by Gravityz »

i see that you are doing things manually(and that is probably the problem)

on my setup

Code: Select all

/usr/local/domoticz/var/dzVents/runtime/dzVents.lua
and scripts go in

Code: Select all

/usr/local/domoticz/var/scripts/dzVents
please note that scripts made in domotics are automatically placed in

Code: Select all

/usr/local/domoticz/var/scripts/dzVents/generated_scripts
so not need to put them there manually
Remcootje
Posts: 2
Joined: Thursday 16 April 2020 14:51
Target OS: NAS (Synology & others)
Domoticz version: 3.9483-7
Contact:

Re: domoticz in synology as package! Available now.

Post by Remcootje »

Hi Gravityz,
since in my package version (Domoticz version: 3.9483-7) on my DS112 NO dzVentz available was, I copied the files from the Apollocake version, and placed them directly as suggested https://www.domoticz.com/forum/viewtopi ... 42#p184442 .

so now it can find the dzVents.lua file, and I've checked the directory tree, everything looks like your codelines.
when i make a fake testscript, in dzVents, it actulally is placed in de generated directory :-)
2020-04-23 07_31_03-runtime - Synology NAS - WinSCP.png
2020-04-23 07_31_03-runtime - Synology NAS - WinSCP.png (67.67 KiB) Viewed 2291 times
i still get errors:
2020-04-23 07_43_36-Microsoft Edge.png
2020-04-23 07_43_36-Microsoft Edge.png (22.54 KiB) Viewed 2291 times
so... are there any suggestions what to do?


kind regards,
Remco
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by Gravityz »

@remcootje.

i looked in my dzvents.lua file and see this(i also have appollolake so the files should be the same)
looks like runtime_path is empty.(this path is probably set during the install of the package which you skipped)

did you try a test and modify this path to see what happens(not a fix but then we know if this is the problem)


Code: Select all

local runtimePath = globalvariables['runtime_path'] -- should be ${szStartupFolder}/dzVents/runtime/
to

Code: Select all

local runtimePath = '/usr/local/domoticz/var/dzVents/runtime/' -- should be ${szStartupFolder}/dzVents/runtime/
if this works maybe also change the scriptpath.

when things are working you have time to look for the real solution.
@Jumbotroll probably knows exactly where things go wrong but i suspect he is occupied with more important mathers(these are strange times for everybody)


this is my tota dzvents.lua

Code: Select all

local TESTMODE = false
globalvariables['testmode'] = false
--globalvariables['dzVents_log_level'] = 4 --debug

if (_G.TESTMODE) then
	TESTMODE = false
	globalvariables['testmode'] = false
end

local scriptPath = globalvariables['script_path'] -- should be ${szUserDataFolder}/scripts/dzVents/
local runtimePath = globalvariables['runtime_path'] -- should be ${szStartupFolder}/dzVents/runtime/

_G.scriptsFolderPath = scriptPath .. 'scripts' -- global
_G.generatedScriptsFolderPath = scriptPath .. 'generated_scripts' -- global
_G.dataFolderPath = scriptPath .. 'data' -- global

package.path =
	scriptPath .. '?.lua;' ..
	runtimePath .. '?.lua;' ..
	runtimePath .. 'device-adapters/?.lua;' ..
	scriptPath .. 'dzVents/?.lua;' ..
	scriptPath .. 'scripts/?.lua;' ..
	scriptPath .. '../lua/?.lua;' ..
	scriptPath .. 'scripts/modules/?.lua;' ..
	scriptPath .. '?.lua;' ..
	scriptPath .. 'generated_scripts/?.lua;' ..
	scriptPath .. 'data/?.lua;' ..
	scriptPath .. 'modules/?.lua;' ..
	package.path

local EventHelpers = require('EventHelpers')
local helpers = EventHelpers()
local utils = require('Utils')


if (tonumber(globalvariables['dzVents_log_level']) == utils.LOG_DEBUG or TESTMODE) then
	print('Debug: Dumping domoticz data to ' .. scriptPath .. 'domoticzData.lua')
	local persistence = require('persistence')
	persistence.store(scriptPath .. 'domoticzData.lua', domoticzData)
	--persistence.store(scriptPath .. 'globalvariables.lua', globalvariables)
	--persistence.store(scriptPath .. 'timeofday.lua', timeofday)

	local events, length = helpers.getEventSummary()
	if (length > 0) then
		print('Debug: dzVents version: '.. globalvariables.dzVents_version)

		print('Debug: Event triggers:')
		for i, event in pairs(events) do
			print('Debug: ' .. event)
		end
	end

	if (globalvariables['isTimeEvent']) then
		print('Debug: Event triggers:')
		print('Debug: - Timer')
	end
end

commandArray = {}

local isTimeEvent = globalvariables['isTimeEvent']

if (isTimeEvent) then
	commandArray = helpers.dispatchTimerEventsToScripts()
end

helpers.dispatchDeviceEventsToScripts()
helpers.dispatchVariableEventsToScripts()
helpers.dispatchSecurityEventsToScripts()
helpers.dispatchSceneGroupEventsToScripts()
helpers.dispatchHTTPResponseEventsToScripts()
helpers.dispatchSystemEventsToScripts()
helpers.dispatchCustomEventsToScripts()

commandArray = helpers.domoticz.commandArray

return commandArray
Sjaakios
Posts: 37
Joined: Saturday 04 June 2016 23:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Sjaakios »

@jumbotroll, not to be pushy and no rush, but if you are planning to do a new build with the latest beta, could you include the one for DS213+?
There is a bug in the stable, which have been resolved since commit 11921.

Thanks in advance, really appreciate the work that you are doing!
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: domoticz in synology as package! Available now.

Post by sammyke007 »

Any news about a possible 2020.2 package update please?

EDIT:
There is a lot of work to update domoticz packages for synology, and unfortunately I do not have time for this project for a long time, so do not expect any updates for a long time. I will not respond to any inquiries by email.

Damn...
RogerSch
Posts: 51
Joined: Saturday 04 April 2015 10:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by RogerSch »

@jumbotroll: Can we help in one or another way to support you, besides making the obvious donation ;) , in compiling new versions of Domoticz for the Synology platform.
I would love to compile new versions of Domoticz as a package for Synology (I still think this is the more elegant version instead of using a Docker image) but starting from scratch and finding out what is needed and how to setup the compile environment might be not so efficient.

So could you please teach us how to "Fish" instead of bringing us "Fish".
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: domoticz in synology as package! Available now.

Post by sammyke007 »

RogerSch wrote: Monday 04 May 2020 4:33 @jumbotroll: Can we help in one or another way to support you, besides making the obvious donation ;) , in compiling new versions of Domoticz for the Synology platform.
I would love to compile new versions of Domoticz as a package for Synology (I still think this is the more elegant version instead of using a Docker image) but starting from scratch and finding out what is needed and how to setup the compile environment might be not so efficient.

So could you please teach us how to "Fish" instead of bringing us "Fish".
Yes please jumbotroll, I understand and respect your decision 100%, but is there some way we can try to compile the Synology package ourself?
I already started a fresh Domoticz installation on a Pi to migrate in the case it's not possible.
JonyBCN
Posts: 39
Joined: Tuesday 24 May 2016 22:39
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by JonyBCN »

Or maybe it's best to move to Docker. What is your opinion? advantages and disadvantages?
Sjaakios
Posts: 37
Joined: Saturday 04 June 2016 23:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Sjaakios »

well, one disadvantage of docker is that is not supported by all synology models, like the d213+ which im using :x
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: domoticz in synology as package! Available now.

Post by sammyke007 »

DS414, ArmadaXP, docker not possible

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

RogerSch
Posts: 51
Joined: Saturday 04 April 2015 10:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by RogerSch »

I'm lucky that my 418Play, although officially not supported, can run the docker package (upgraded my RAM to 16 GByte :mrgreen: ). But it requires more configuration work to get everything working like the RFXCOM. And still you are depending on someone who creates the docker package...
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by Gravityz »

I am currently runnen 2020.1.839 which runs pretty stable.
my advice is to wait until Jumbotroll returns.
His package is way more easier to install then a docker image is.(and i like docker very much)

like other people said it all depends on people supplying up to date packages/images.

So now that the corona crisis is loosening up we might hear from Jumbotroll
RogerSch
Posts: 51
Joined: Saturday 04 April 2015 10:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by RogerSch »

For me the beta 6.2 version (Domoticz v2020.1.11835-8) of Jumbotroll works best on the 418Play.
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 »

NEW! Domoticz Beta version 2020.2 for synology uploaded for testing.

http://www.jadahl.com
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
RogerSch
Posts: 51
Joined: Saturday 04 April 2015 10:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by RogerSch »

Great!
RogerSch
Posts: 51
Joined: Saturday 04 April 2015 10:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by RogerSch »

Just installed Version: 2020.2 (build 12127) and it seems to work on my 418Play!

Thnaks a lot for the update!
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by Gravityz »

do not see the build for DS718+ without python(apollolake)
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 »

Gravityz wrote: Wednesday 17 June 2020 22:22 do not see the build for DS718+ without python(apollolake)
EDIT: Apollolake with libssl fix is uploaded.

It was some problem with libssl file in that version and I deleted it.
Apollolake with libssl fix wil be uploaded later tonight.

All another ARCH will be updated tomorrow.
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 »

@jumbotroll good to see your back (if you're back, in that case we have different definitions of 'long time' :) )

If you're indeed doing frequent updates again, I'll upgrade to a 2020 version on short term...

Another question: you also create packages for MyDomoAtHome, correct? Could you compile the 0.2.41 version for the DS414 (ArmadaXP) please?
I moved to HomeAssistant. It was fun while it lasted!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest