Coder Social home page Coder Social logo

kyleking / pialarm Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 57.19 MB

Python-Raspberry Pi Alarm Clock

License: MIT License

Python 72.38% JavaScript 26.67% Shell 0.95%
alarm-clock python character-lcd rgb-light-strip buzzer raspberry-pi plotly-dash

pialarm's Introduction

Archived: started refactoring for better architecture, full test coverage, and improving the mechanical and electrical design. However, I can't quite make a polished exterior that I am happy with. For now, I've decided to archive this project with the hope that I might revisit it in the future


PiAlarm

Raspberry Pi Smart Alarm Clock. RGB light strip, buzzer, character LCD display, and web app

Tech

  • Integrations
    • Plotly/Dash application to handle UI, basic HTML authentication, and managing a TInyDB instance
    • If This Then That (IFTTT)/generic HTML requests to toggle alarm on/off. Allows me to modify the alarm when not home and will automatically disable the alarm if I leave the general vicinity of my home until I return
  • Electronics
    • RGB Light Strip
    • Buzzer
    • 7-Segment Display for time
    • Character LCD - shows weather and other quick information
    • (Used to also have a motorized bed shaker, but that got banned, haha)
  • Box
    • Pretty janky, but easy to open and work on as a prototype. Will probably try to make something that looks nicer down the road

Photos

above view

Initial Prototype

above view

Prototype v2 with Box

Local Development

Commits Since last Release Last Commit Badge

FIXME: Update documentation for quick start. This is probably ~32% right

git clone https://github.com/KyleKing/pialarm.git
cd pialarm
poetry install
poetry shell
python pialarm.py

First, check the pins.ini file in the Python/ directory, then proceed the test of each hardware before booting the web application for the first time.

Initialization

You will need a secret.ini file in the Python/ directory:

[IFTTT]
key = <>

[WU]
info = Weather Underground API
apikey = <>
lat = <>
lon = <>

Python packages and other libraries installed, see the script ./Python/requirements.sh

There are likely other bugs, so open an issue if you run into any trouble. This app really isn't built for distribution and is only a personal side-project.

Hardware Test: TM1637 7-Digit Display

cd PiAlarm/Python
python .archive-python/modules/TM1637.py
# There should be a few statements printed and you can press enter to confirm each test

pialarm's People

Contributors

imgbotapp avatar kyleking avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xeyvezy

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.