GithubHelp home page GithubHelp logo

Comments (9)

theyosh avatar theyosh commented on August 16, 2024 1

Euh, this was indeed a different bug. I have fixed the Docker images. They should work again. Would be great if you can run the :latest image again

from terrariumpi.

theyosh avatar theyosh commented on August 16, 2024

Sorry for the late reply. But this is strange. Is this happening every evening?

The difference between your light and sunrise - sunset areas could be a day difference calculation. One area is one day ahead. After 24 hours, I expect that they should be the same.

I have to look into this, as I do not have this issue, while I have almost the same setup with the lights based on weather data. And also with a delay (only 30 min). So we have almost the same setup.

I have an idea, but that will take some time to test.

from terrariumpi.

manolof avatar manolof commented on August 16, 2024

It hasn't happened for a few days now.

I noticed something today: when I went into the Main Lights settings, and changed the "Maximum hours" from 14 to 15, both times displayed on the main Enclosures list showed the same - they got aligned!
Makes me wonder if this could be the root problem for the issue I had with the light that turns on one hour after light cut-off...

EDIT: When I went back in the Main Lights settings and changed it again from 15 to 14, it showed again the wrong times..
image

I believe that what it does is it calculates from the middle-point of the day for the maximum hours duration, not from the start, so like this:

image
Not sure if this is intended.

from terrariumpi.

theyosh avatar theyosh commented on August 16, 2024

You conclusion about the maximum hours is correct. This looks the best to me. The same goes for the min amount of hours. That will also recalculate from the middle of the day (sun rise - set period).

But the problem here is I think that when the day is over, a new day is calculated. And for me that means 6 min more light every day going to summer period. 3 min earlier and 3 minutes longer. And that 3 minutes longer, is probably the problem. That will trigger the lights to go on, just after the lights went off. I should probably fix the new day calculation code. But that is already complex.

So for now, I have created a settle time of 15 minutes. And that should fix this issue for now.

In order to test this, you need to switch to the bookworm branch. And rerun the installer. I hope you know how to switch branches.

from terrariumpi.

theyosh avatar theyosh commented on August 16, 2024

Oh crap, this is a docker install. That needs a new build/release. But I will release a new version this weekend with this fix.

from terrariumpi.

theyosh avatar theyosh commented on August 16, 2024

New docker images are build. The version numbering has changed a bit https://theyosh.github.io/TerrariumPI/posts/2024/05/11/release-terrariumpi-v-4-9-0/#docker

from terrariumpi.

theyosh avatar theyosh commented on August 16, 2024

Did the docker updates solved this issue?

from terrariumpi.

manolof avatar manolof commented on August 16, 2024

Sorry for taking long to respond. I just upgraded the system. I will close the issue for now and reopen if issue persists. Thanks!

from terrariumpi.

manolof avatar manolof commented on August 16, 2024

As I was upgrading the system, I got errors due to the new builds. This is from docker logs:
Screenshot 2024-06-12 at 06 41 35

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

I first tried with the latest tag, as it was before. The docker wouldn't start. Then I started trying specific version, like 4.9.1-bookwork-java, 4.9.0-buster, but none worked.
I even tried sudo apt-get install netcat-traditional due to that command in run.sh failing (in my logs).
It only worked and started again when I downgraded to 4.8.4

from terrariumpi.

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.