GithubHelp home page GithubHelp logo

dogpushbuttons's Introduction

DogPushbuttons

Welcome to Dog Pushbutton from Capstone Fall 2021 Team. This is repository contains designed piece of software for Dog pushbuttons.

image

Features

  • Receive command from pushbutton though Raspberry Pi GPIO
  • Send alert to mobile and computer via Pushover
  • Play sound though Raspberry Pi output headphone port

Pushover on iOS and watchOS

image image

Team

Client: Professor Karen Beiter

Lead Technician: Sahand Nowshiravani

Assistant Technician: Luca Jones

Diagram

Screenshot 2021-11-15 231714

image

Setup

  1. Update Raspberry Pi OS and Python
sudo apt update && sudo apt upgrade
  1. Install Pushover for Python, gpiozero and PyGame modules from Python package manager:
python -m pip install -U python-pushover gpiozero pygame
  1. To create startup in GUI. Add line on /etc/xdg/lxsession/LXDE-pi/autostart:
@lxterminal -e /home/pi/DogPushbuttons-main/startup.sh

2021-11-29-164412_655x417_scrot

If you preferred startup in headless or commandline intead of GUI: Click here.

  1. Sign up Pushover and create application for API token and User token.

  2. Download zip of this repo for Raspberry Pi:

Download zip

  1. Edit the script with new API token and User token. Example:
client = Client("us7vsksv12zazdf6hwu2dt8a4wy743f", api_token="afdsfsdfwzxczt1426xjnp1waj4")

Manually run the script

On Raspberry Pi with pushbutton switches

python main_pi.py

On PC with keyboard

python main_pc.py

Troubleshooting

If you got Pygame error such as "No Mixer module found". Try this:

sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0

dogpushbuttons's People

Contributors

batterydie avatar

Stargazers

Parth Kawatra avatar

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.