Project

einstein

0.0
No commit activity in last 3 years
No release in over 3 years
Push notification service for restaurant Einstein.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
= 2.1.0

Runtime

 Project Readme

Einstein

Push notification service for restaurant Einstein.

Follow me on Twitter or Github for more info and updates.

How to use

Today's menu

Einstein::Menu.new(:today).dishes

Menu for any day

Einstein::Menu.new(:monday).dishes

Push to phone

Einstein has build in support for Prowl.
Just pass you api key to #push_to and the menu will be push to you phone within seconds.

Einstein::Menu.new(:monday).push_to("6576aa9fa3fc3e18aca8da9914a166b3")

What's being returned?

#dishes returns an array of strings containing each dish for the given day.

What is being push to the phone?

Example push

Real world example

Here is a real world example using whenever.
It will push today's menu directly to your iPhone each day at 11:45 AM.

1 . Install whenever. gem install whenever.
2 . Navigate to your application, run wheneverize ..
3 . Add these lines to your config/schedule.rb file.

require "einstein"

every 1.day, at: "11:45 am" do 
  runner 'Einstein::Menu.new(:today).push_to("6576aa9fa3fc3e18aca8da9914a166b3")'
end

4 . Create the cron task using whenever.
5 . Done!

How to install

[sudo] gem install einstein

Requirements

License

Einstein is released under the MIT license.