GithubHelp home page GithubHelp logo

sunrise_alarm's Introduction

A very flexible RGB Alarm Clock written in Python3 using the transitions state machine.

Initially written for simulating a sunrise on a Raspberry Pi for a natural waking, the project has expanded into a very flexible state machine based alarm system with some nice features

  • Unlimited RGB Alarms with day-of-week and repeat settings
  • Customizable RGB profiles associated with each alarm. E.g. Sunrise, blink. Or write your own
  • Pre-Cancel alarm previous night for one time only. E.g Want to sleep in for one day
  • Speedup module for testing alarms and developing RGB profiles
  • Each alarm is independently run with its own state machine

Hardware Setup

Pinout
Red Led = Pin 22
Green Led = Pin 18
Blue Led = Pin 17
Snooze Button = Pin 7 (Active Low)

Software Setup

Python3 is used for this project.

The following modules are needed

  • Transitions (for state machine, github)
  • PyQt5 (for graphical output, optional)
  • RPi.GPIO (for input button)
  • pytz (for timezone)
  • pprint (for text display)
  • pi-blaster (for PWM of Pins)
    ... and others

Steps to get software up and running

  • Clone this repository
  • Update alarms_db.tsv. Details are within the file itself
  • Use existing RGB profile or write your own profiles. (Sorry the profiles are a little complex. However, the profiles are very flexible and potential disco lights could be made)
  • Run screen/tmux since the scripts dump text on screen showing alarm(s) state
  • Run sunrise_alarm.py (python3)

Coming Sooner(or later), aka Roadmap:

  • Sound capability
  • RESTful API for web control
  • Modify alarms from Android App (based on RESTful)
  • Qt5 based RGB Alarm Profile maker. Build profiles visually instead of coding

sunrise_alarm's People

Watchers

 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.