Giter VIP home page Giter VIP logo

Comments (10)

kakengloh avatar kakengloh commented on June 5, 2024 2

Hey @dyuri, I've implemented the cron jobs, could you please help me to test it out on your Linux machine?

from tsk.

dyuri avatar dyuri commented on June 5, 2024 1

It basically works:
image

And for initial notify support it's fine, but it might be improved by storing the last notification time for each task, so notifications won't be lost (but only late), if the computer was off/sleeping for a time.

from tsk.

dyuri avatar dyuri commented on June 5, 2024 1

... and reminder stop removes the crontab entry.

from tsk.

kakengloh avatar kakengloh commented on June 5, 2024

Thanks for opening this issue.

Do you mean crontab in UNIX? Because I've tried to use cron in Golang and it requires a blocking process.

from tsk.

dyuri avatar dyuri commented on June 5, 2024

Yep, the standard linux/unix crond, or anything else that can schedule commands. And yes, I think tsk should avoid to become a blocking/continuously running process.

from tsk.

kakengloh avatar kakengloh commented on June 5, 2024

Yeah let's use crontab.

As for the desktop notification part, based on my research:

What do you think?

from tsk.

dyuri avatar dyuri commented on June 5, 2024

I'm using Linux for ages, so don't have experience with Mac/Win. For Linux notify-send works, and dbus can be used as well.
I just found this: https://github.com/gen2brain/beeep - seems to support the ones mentioned + some fallbacks.

from tsk.

kakengloh avatar kakengloh commented on June 5, 2024

Looks cool, let me try it out

from tsk.

kakengloh avatar kakengloh commented on June 5, 2024

Good to see that! I saw that you are triggering it using tsk notify command, did you try tsk reminder start to see if the cron job works?

from tsk.

dyuri avatar dyuri commented on June 5, 2024

yep, that works as well:

$ crontab -l
* * * * * /home/dyuri/egyeb/prog/go/bin/tsk notify

from tsk.

Related Issues (5)

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.