Giter Site home page Giter Site logo

[BUG] Events not triggert about hometime HOT 10 CLOSED

H4K0N42 avatar H4K0N42 commented on August 26, 2024
[BUG] Events not triggert

from hometime.

Comments (10)

veebch avatar veebch commented on August 26, 2024 1

I think that making async work properly would require a decent amount of changes to the logic. Currently just making it async (or a thread) might lead to funky stuff happening while it was processing the appointment times. The quick and dirty solution is just to reduce the frequency with which google is checked.

from hometime.

veebch avatar veebch commented on August 26, 2024

Do you have an example of the Thonny console output when this happens?

from hometime.

H4K0N42 avatar H4K0N42 commented on August 26, 2024

Not yet, I send you the output, when im home

from hometime.

H4K0N42 avatar H4K0N42 commented on August 26, 2024

image

Idk why but it shows the Blink function gets executed, I will close this issue for now, if the problem persist I will reopen it.

from hometime.

H4K0N42 avatar H4K0N42 commented on August 26, 2024

image

I found the issue, when google updates while an event should trigger or the day ends, it doesn't get triggert, can you make the google update async? I do not know how to use async on micropython.

from hometime.

H4K0N42 avatar H4K0N42 commented on August 26, 2024

The problem is there again, sometimes events doesnt trigger, i don't know why. The log is just "Working=True ..."

from hometime.

veebch avatar veebch commented on August 26, 2024

Do you have the thonny output from a time it happens?

from hometime.

H4K0N42 avatar H4K0N42 commented on August 26, 2024

There is no special output, its just Working=True, clockin=7.75, clockout=18.33, hoursin=17.73 ...
Also when you delete a reocurring event only for one day (not permanent) it still shows up on the Bar

from hometime.

H4K0N42 avatar H4K0N42 commented on August 26, 2024

image
from the google api, I cant find any diffrences there ...

from hometime.

veebch avatar veebch commented on August 26, 2024

The only real difference that I see is the duration.

This is the point where it would make sense to think about an improved logic that has some kind of callback to make sure that events are flagged at the exact time you want.

from hometime.

Related Issues (16)

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.