Page 90 of 94
Re: domoticz in synology as package! Available now.
Posted: Monday 20 April 2020 17:41
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.
Re: domoticz in synology as package! Available now.
Posted: Monday 20 April 2020 17:58
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
Re: domoticz in synology as package! Available now.
Posted: Thursday 23 April 2020 7:48
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 (67.67 KiB) Viewed 2282 times
i still get errors:
- 2020-04-23 07_43_36-Microsoft Edge.png (22.54 KiB) Viewed 2282 times
so... are there any suggestions what to do?
kind regards,
Remco
Re: domoticz in synology as package! Available now.
Posted: Thursday 23 April 2020 8:49
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
Re: domoticz in synology as package! Available now.
Posted: Sunday 26 April 2020 13:04
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!
Re: domoticz in synology as package! Available now.
Posted: Tuesday 28 April 2020 18:03
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...
Re: domoticz in synology as package! Available now.
Posted: Monday 04 May 2020 4:33
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".
Re: domoticz in synology as package! Available now.
Posted: Monday 04 May 2020 12:58
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.
Re: domoticz in synology as package! Available now.
Posted: Monday 04 May 2020 16:45
by JonyBCN
Or maybe it's best to move to Docker. What is your opinion? advantages and disadvantages?
Re: domoticz in synology as package! Available now.
Posted: Monday 04 May 2020 17:10
by Sjaakios
well, one disadvantage of docker is that is not supported by all synology models, like the d213+ which im using
Re: domoticz in synology as package! Available now.
Posted: Monday 04 May 2020 17:48
by sammyke007
DS414, ArmadaXP, docker not possible
Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
Re: domoticz in synology as package! Available now.
Posted: Monday 04 May 2020 18:57
by RogerSch
I'm lucky that my 418Play, although officially not supported, can run the docker package (upgraded my RAM to 16 GByte
). 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...
Re: domoticz in synology as package! Available now.
Posted: Thursday 11 June 2020 12:50
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
Re: domoticz in synology as package! Available now.
Posted: Thursday 11 June 2020 13:06
by RogerSch
For me the beta 6.2 version (Domoticz v2020.1.11835-8) of Jumbotroll works best on the 418Play.
Re: domoticz in synology as package! Available now.
Posted: Tuesday 16 June 2020 21:46
by jumbotroll
NEW! Domoticz Beta version 2020.2 for synology uploaded for testing.
http://www.jadahl.com
Re: domoticz in synology as package! Available now.
Posted: Tuesday 16 June 2020 22:19
by RogerSch
Great!
Re: domoticz in synology as package! Available now.
Posted: Wednesday 17 June 2020 20:49
by RogerSch
Just installed Version: 2020.2 (build 12127) and it seems to work on my 418Play!
Thnaks a lot for the update!
Re: domoticz in synology as package! Available now.
Posted: Wednesday 17 June 2020 22:22
by Gravityz
do not see the build for DS718+ without python(apollolake)
Re: domoticz in synology as package! Available now.
Posted: Wednesday 17 June 2020 22:32
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.
Re: domoticz in synology as package! Available now.
Posted: Thursday 18 June 2020 10:14
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?