Coder Social home page Coder Social logo

kimai-payday-telegram-bot's Introduction

kimai-payday-telegram-bot

I have several people that work for me from time to time. I use kimai to track their hours. Workers are for paid their hours once a week on Sunday.

I used to manually sign in to kimai, look up each worker's hours and cost, then send them a venmo payment. That got old.

This script uses the kimai API to fetch hours worked for all users, it totals the hours and cost for the week, then sends a telegram message to a group. The message serves as a reminder of what is owed and to whom. Since I pay with venmo, a helpful hyperlink can be tapped within the message to pay the worker the appropriate amount with a single click.

Build Docker Container

  • clone the project
  • change directory to project root
  • copy .env_template to .env and update the environment variables.
  • copy workers_template.json to workers.json and add worker details.
  • docker build --no-cache -t kimai-payday-telegram-bot .

Run the docker command

  • docker run --rm -v /volume1/media/:/media kimai-payday-telegram-bot
  • set up a cron job to run on a schedule

kimai-payday-telegram-bot's People

Contributors

jasonwaters avatar

Watchers

 avatar  avatar

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.