Code Monkey home page Code Monkey logo

365-days-notifier's Introduction

365-days-notifier

For more than half a year, I've been trying to get at least in touch with code or the open source community every day. This little tool is supposed to remind me every day to fulfill this goal, should I not have done anything productive on GitHub that day.

For this, this tool is called twice a day via a GitHub action per go run, so I don't have to worry about having my own server and the uptime of the service.

How?

The tool calls the GitHub API on startup (https://api.github.com/users/darmiel/events) and then checks if there is a relevant event in the GitHub feed today. This API returns the last X events of a user:

[
  {
    "id": "18459505751",
    "type": "CreateEvent", // productive!
    ...
    "public": true,
    "created_at": "2021-10-15T21:45:00Z"
  },
  {
    "id": "18424454329",
    "type": "WatchEvent",
    ...
    "public": true,
    "created_at": "2021-10-13T20:03:22Z"
  },
  {
    "id": "18368518379",
    "type": "PushEvent", // productive
    ...
    "public": true,
    "created_at": "2021-10-10T13:36:49Z"
  },
  ...

Use it yourself

Do you have a similar goal or want a daily reminder to be productive?

  1. Fork this repository and change the username to your username in the workflow file.
    • You can also customize the cronjob here
  2. Create the secrets PUSH_APP_KEY and PUSH_RECIPIENT_KEY in the repository settings.
    • The secret GH_PAT is only required if you want to include private activity.
  3. Go to Actions tab and enable actions
  4. Done!

Pushover

If no activity is found that day, I get bugged via push message on my phone, for which I use the super duper app Pushover: Push+

365-days-notifier's People

Contributors

darmiel avatar

Stargazers

 avatar  avatar

Watchers

 avatar

365-days-notifier's Issues

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.