Coder Social home page Coder Social logo

coffeebot's Introduction

โ˜•๏ธ CoffeeBot ๐Ÿค–

Screenshot
Screenshot 2024-01-24 at 8 36 18โ€ฏPM

This is a bot ๐Ÿค–, that watches the pot ๐Ÿซ–, and reminds you if you forgot ๐Ÿคทโ€โ™‚๏ธ.

Table of Contents

Requirements

  • Python 3.6 or higher ๐Ÿ
  • Webcam ๐Ÿ“ท
  • Computer (even a potato ๐Ÿฅ” with 4GB RAM should do, as long as it runs Linux ๐Ÿง)
  • Coffee machine ๐Ÿซ–
  • Coffee cup โ˜•๏ธ
  • Propensity to forget your cup at the coffee machine ๐Ÿค”

Installation

  1. Clone this repository with git clone https://github.com/justinh-rahb/CoffeeBot.git
  2. Move the cloned repository to /opt with sudo mv CoffeeBot /opt
  3. cd into the cloned repository with cd /opt/CoffeeBot
  4. Install the requirements with sudo pip3 install -r requirements.txt
  5. Set your environment variables by copying .env.example with sudo cp .env.example .env and editing .env with your favorite editor
  6. Copy the systemd service file to /etc/systemd/system with sudo cp coffeebot.service /etc/systemd/system
  7. Reload the systemd daemon with sudo systemctl daemon-reload
  8. Launch the bot with sudo systemctl start coffeebot.service

Configuration

The bot is configured via environment variables. You can set them in the .env file, or directly in your shell.

Variable Description Default
BOT_WEBHOOK_URL webhook URL for the bot to send messages to none
BOT_MESSAGE message to send when the object is detected Coffee cup left unattended! Please remove it from the coffee machine :)
OBJECT object to detect (see list: coco.names) cup
MIN_CONFIDENCE minimum confidence level for object detection 0.5
FRAME_SKIP number of frames to skip before checking for object 5
DETECTION_TIME time in seconds object must be detected before sending message 300
CAPTURE_DEVICE 0 for default webcam, 1 for USB webcam 0
SAVE_DIR directory to save images /tmp

Never Lose Your Coffee Again!

Your coffee machine monitoring system should be up and running, so your co-workers won't have to remind you to get your cup anymore, and you can enjoy your coffee while it's still hot.

License

This project is open sourced under the MIT license. See the LICENSE file for more info.

coffeebot's People

Contributors

justinh-rahb avatar

Stargazers

 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.