Giter Site home page Giter Site logo

pi_assistant_garbage's Introduction

Pi Garbage Schedule

Garbage schedule indicators for raspberry pi. Also for weather.

Cardboard cover for LEDs

This is a work in progress. It works but isn't convenient to use.

How to use

  1. Clone the repository
  2. Make weather.rb and garbage.rb executable
  3. Change the garbage data in garbage.rb to match your local garbage schedule
  4. Connect the pins to the numbers mentioned in the scripts
  5. Start garbage.rb
  6. Start weather.rb with your api key and your city code as parameters

The garbage problem

If there's only one garbage can allocated for many people the garbage can might be full when you want to take out the trash.

The solution

The obvious solution is to connect indicator LEDs to your Raspberry Pi which tell you which trash can is probably not full right now (simply by knowing the garbage disposal schedule; if the trash can was emptied in the last days there's probably room left).

The ethical dilemma

Given that the garbage can capacity is a finite resource taking advantage of the garbage disposal schedule like this means that everyone else will have a higher probability of encounterig a full garbage can. On the other hand, everyone has access to the schedule. Whether using the schedule like this is ethical or not is left as an exercise for the reader. Discuss this with @RedNifre on Twitter!

Tragedy of the commons

If too many people who share the same trash can participate in this arms race nobody will win: The garbage end game is everyone dropping their garbage right after the trash can was emptied.

Future of this project

  1. โœ… add indicators for weather (to answer the "should I bring an umbrella?" question).
  2. move the gpio part to a separate gem and add a config.
  3. move weather indicator to separate repo and make it configurable.
  4. Figure out how to get garbage schedule data live (instead of hardcoding it).

pi_assistant_garbage's People

Contributors

michael-zinn 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.