Giter Club home page Giter Club logo

lndry's Introduction

Now defunct! Sorry Velocity residents. If you're interested in getting the site working again, contact me at [email protected].

Lndr.me (formerly lndry) is a laundry tracking app made for the University of Waterloo's VeloCity residence.

Email [email protected] when you put in your clothes, and two good things happen:

  • You get an email when it's done (based on a timer)
  • Others can tell that the machine is busy
  • You used my app, so I'm happy

lndrme

It's a simple Rails app, but it uses Whenever to send emails out every 2 minutes, and a Postfix alias to recieve mail:

washer:		"| /usr/local/bin/ruby /var/www/lndr.me/current/script/receive.rb"
washer1:	"| /usr/local/bin/ruby /var/www/lndr.me/current/script/receive.rb"
washer2:	"| /usr/local/bin/ruby /var/www/lndr.me/current/script/receive.rb"
dryer:		"| /usr/local/bin/ruby /var/www/lndr.me/current/script/receive.rb"
dryer1:		"| /usr/local/bin/ruby /var/www/lndr.me/current/script/receive.rb"
dryer2:		"| /usr/local/bin/ruby /var/www/lndr.me/current/script/receive.rb"

As well, it makes use of PostageApp (http://postageapp.com) to send transactional email - you'll need an API key from the wonderful folks there. Note: to deploy, place settings.yml and database.yml in your capistrano "shared" directory on production/staging. The deploy script then copies them into ./config/.

This has never been tested outside of my Ubuntu server, so have fun. It has an HTTP API, but a very simple one - check http://lndr.me/api for details. (Rather, for an email I sent a friend outlining the API.)

I committed many sins in the name of getting this app out quickly, so you'll notice a lot of conventions broken and imperfect code. Let me know if you need help getting the code up and running, or if you're having any trouble at all. Pull requests and bugfixes welcome!

Also, I forgot to write any tests. Whoops.

lndry's People

Contributors

psobot avatar

Stargazers

Mathijs Bernson avatar Alykhan Kanji avatar Thiago Vieira avatar Juil avatar Brian Immel avatar Michael Chang avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

cbhl juil andrewsmyk

lndry's Issues

Add Washer 3 and Dryer 3

Two new machines have been installed recently, one of each kind. I believe the following needs to be added to db/seeds.rb:

Resource.create :location => default_location, :type_id => washer.id, :duration => washer_duration, :order => 3
Resource.create :location => default_location, :type_id => dryer.id, :duration => dryer_duration, :order => 3

Reinitializing the database and redeploying would probably resolve this, but from looking through the tests I think they would break due to this change. Since they're somewhat undocumented, would you be able to update those and redeploy?

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.