Coder Social home page Coder Social logo

Comments (26)

mlava avatar mlava commented on May 30, 2024

https://community.openhab.org/t/synology-diskstation/1446/24

You can edit the start_runtime.sh to fix this.

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

Thank you very much, Mark! Did work well.

Is it a Bug at the installscript or at the synology System?

Von meinem iPad gesendet

Am 26.01.2016 um 23:39 schrieb Mark Lavercombe [email protected]:

https://community.openhab.org/t/synology-diskstation/1446/24

You can edit the start_runtime.sh to fix this.


Reply to this email directly or view it on GitHub.

from openhab-syno-spk.

mlava avatar mlava commented on May 30, 2024

@gorzan14
Hi, I'm glad it helped.
I truly don't understand why the timezone preference in synology isn't replicated in openhab, as I don't understand linux servers all that well.
I just did lots of googling and eventually found something that helped me :)

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

Should I make this adjustment in start_runtime.sh script?

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

@christian

it would be a good idea to have it automatically set right after the install
process.

I could test it.

p.s. other issue: do you think it could be an option to put the logs subfolder
to the public folder when it exists like configurations? So when working remote
on the configfiles one could see the openhab.stdout without ssh? maybe with tail
-F public/logs/openhab.stdout?

Christian Häussler [email protected] hat am 28. Januar 2016 um 09:11
geschrieben:

Should I make this adjustment in start_runtime.sh script?

—
Reply to this email directly or view it on GitHub

#5 (comment) .

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

Maybe the Bug is in the openhab-syno-spk
https://github.com/cniweb/openhab-syno-spk /scripts
https://github.com/cniweb/openhab-syno-spk/tree/master/scripts
/start-stop-status.sh line 24

grep "^${SYNO_TZ}" /usr/share/zoneinfo/Timezone/tzname

/usr/share/zoneinfo/Timezone/tzname does not exist!
there exists a File /usr/share/zoneinfo/Timezone/tzlist

Maybe they changed it in the new DSM?

Christian Häussler [email protected] hat am 28. Januar 2016 um 09:11
geschrieben:

Should I make this adjustment in start_runtime.sh script?

—
Reply to this email directly or view it on GitHub

#5 (comment) .

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

@gorzan14 can you test it and send me your patched start-stop-status.sh?

Thanks

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

@cniweb
Im not that familiar with shell scripts. But i could try to change this file name.
Where is this script located. I can't find it

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

found it and testing

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

@cniweb
It works after changing tzname to tzlist at the start-stop-status.sh
on my system: DS213j with DSM 5.2-5644 Update 3
I tested it two times. With changing back to the wrong filename i got the wrong time in OpenHAB

start-stop-status.sh.zip

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

Thanks!
I update in line 24 on the file https://github.com/cniweb/openhab-syno-spk/blob/master/scripts/start-stop-status.sh#L24
OK?

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

@cniweb
Yes. This is the right line.
Do you think on other DS types or DSM versions there could be the other file name? So some one else gets a problem?

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

I can test it on a DS101j (DSM 2.0), DS209 (DSM 4.2) and DS214play (DSM 5.2)!

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

Should be enough! :-)

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

I have add a new prerelease:
https://github.com/cniweb/openhab-syno-spk/releases/tag/1.8.0.002
Please try, but do not test with DSM 6.0!

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

@gorzan14 Could you try the package already?

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

@cniweb
today I could try it. It works fine with right timezone.
thanks.

from openhab-syno-spk.

cniweb avatar cniweb commented on May 30, 2024

OK, I am aware it for the 1.8.1 release.
Can I close this Issue?

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

Yes, close it.

Von meinem iPhone gesendet

Am 05.02.2016 um 14:05 schrieb Christian Häussler [email protected]:

OK, I am aware it for the 1.8.1 release.
Can I close this Issue?


Reply to this email directly or view it on GitHub.

from openhab-syno-spk.

LeoVe avatar LeoVe commented on May 30, 2024

Hi guys, thx for all the good work.

In line with what I think to read in this discussion, I added the parameter -Duser.timezone=Europe/Amsterdam to the java line in the file /start_runtime.sh and restarted, unfortunately the time in OpenHAB log still lags 1 hour. The time in the SSH terminal is OK. Any suggestions on what could be the case?

I'm using a Synology with DSM 5.2-5967 Update 1, Java 1.8.0-91 headless and Openhab vs 1.8.2 with zwave.

Thanks

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

Please post your /start_runtime.sh

Did you stop and start with the Button at the Package Management gui of your DSM? I discovered once Problems restarting in Command line using the sh Script.

Von meinem iPhone gesendet

Am 30.05.2016 um 13:42 schrieb LeoVe [email protected]:

Hi guys, thx for all the good work.

In line with what I think to read in this discussion, I added the parameter -Duser.timezone=Europe/Amsterdam to the java line in the file /start_runtime.sh and restarted, unfortunately the time in OpenHAB log still lags 1 hour. The time in the SSH terminal is OK. Any suggestions on what could be the case?

I'm using a Synology with DSM 5.2-5967 Update 1, Java 1.8.0-91 headless and Openhab vs 1.8.2 with zwave.

Thanks


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from openhab-syno-spk.

LeoVe avatar LeoVe commented on May 30, 2024

Thx gorzan14.

I always use the DSM package manager for starting and stopping.

The sh file as it is now (it includes a few statement for the usb zwave stick) is in the next comment.

from openhab-syno-spk.

LeoVe avatar LeoVe commented on May 30, 2024

Well it seems a bit deformed, maybe this is better:
start_runtime.sh.txt

I think you set me on the right track gorzan, I think I did add the parameter a too far to the end of the line...

from openhab-syno-spk.

LeoVe avatar LeoVe commented on May 30, 2024

Wow, done gorzan14 :-) !
Moved the -D parameter a bit to the left in the commandline and the time is OK, thx !

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on May 30, 2024

Ok. Fine. It works!
But up to now i don't unterstand why After the Patch above the automatic Finding of Timezone dös not Work with the Package from here?

Von meinem iPhone gesendet

Am 30.05.2016 um 19:18 schrieb LeoVe [email protected]:

Wow, done gorzan14 :-) !
Moved the -D parameter a bit to the left in the commandline and the time is OK, thx !


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from openhab-syno-spk.

LeoVe avatar LeoVe commented on May 30, 2024

Prob because it's an installation from March ?

Met vriendelijke groet,

Leo Verkaik


Verkaik Advies
Hindeloopenstraat 2
6835 KZ Arnhem

Web www.VerkaikAdvies.nl http://www.verkaikadvies.nl
Tel. 026 3274264
Mob. 0618 882560
Fax 026 3274781

Op 30 mei 2016 om 20:58 heeft gorzan14 <[email protected] mailto:[email protected] > het volgende geschreven:

Ok. Fine. It works!
But up to now i don't unterstand why After the Patch above the automatic Finding of Timezone dös not Work with the Package from here?

Von meinem iPhone gesendet

Am 30.05.2016 um 19:18 schrieb LeoVe <[email protected] mailto:[email protected] >:

Wow, done gorzan14 :-) !
Moved the -D parameter a bit to the left in the commandline and the time is OK, thx !


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from openhab-syno-spk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.