{"id":21201655,"url":"https://github.com/oleander/einstein-rb","last_synced_at":"2025-07-10T06:31:46.375Z","repository":{"id":1483465,"uuid":"1730296","full_name":"oleander/einstein-rb","owner":"oleander","description":"Push notification service for restaurant Einstein","archived":false,"fork":false,"pushed_at":"2012-05-02T02:47:27.000Z","size":740,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T11:28:12.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.butlercatering.se/Lunchmeny","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-10T21:44:51.000Z","updated_at":"2014-03-02T01:48:45.000Z","dependencies_parsed_at":"2022-07-29T18:08:55.577Z","dependency_job_id":null,"html_url":"https://github.com/oleander/einstein-rb","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Feinstein-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Feinstein-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Feinstein-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Feinstein-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/einstein-rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225169414,"owners_count":17431871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T20:10:22.349Z","updated_at":"2024-11-20T20:10:22.899Z","avatar_url":"https://github.com/oleander.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Einstein\n\nPush notification service for restaurant [Einstein](http://www.butlercatering.se/einstein.html).\n\nFollow me on [Twitter](http://twitter.com/linusoleander) or [Github](https://github.com/oleander/) for more info and updates.\n\n## How to use\n\n### Today's menu\n\n```` ruby\nEinstein::Menu.new(:today).dishes\n````\n\n### Menu for any day\n\n```` ruby\nEinstein::Menu.new(:monday).dishes\n````\n\n### Push to phone\n\n*Einstein* has build in support for [Prowl](https://www.prowlapp.com/).  \nJust pass you [api key](https://www.prowlapp.com/api_settings.php) to `#push_to` and the menu will be push to you phone within seconds.\n\n```` ruby\nEinstein::Menu.new(:monday).push_to(\"6576aa9fa3fc3e18aca8da9914a166b3\")\n````\n\n## What's being returned?\n\n`#dishes` returns an array of strings containing each dish for the given day.\n\n## What is being push to the phone?\n\n![Example push](http://i.imgur.com/lf8Js.png)\n\n## Real world example\n\nHere is a real world example using [whenever](https://github.com/javan/whenever).  \nIt will push *today's menu* directly to your iPhone each day at 11:45 AM.\n\n1 . Install whenever. `gem install whenever`.  \n2 . Navigate to your application, run `wheneverize .`.  \n3 . Add these lines to your `config/schedule.rb` file.  \n\n```` ruby\nrequire \"einstein\"\n\nevery 1.day, at: \"11:45 am\" do \n  runner 'Einstein::Menu.new(:today).push_to(\"6576aa9fa3fc3e18aca8da9914a166b3\")'\nend\n````\n\n4 . Create the cron task using `whenever`.  \n5 . Done!  \n\n## How to install\n\n    [sudo] gem install einstein\n\n## Requirements\n\n- [Tesseract](http://code.google.com/p/tesseract-ocr/)\n- [ImageMagick](http://www.imagemagick.org/script/index.php)\n- Ruby 1.9.2\n\n## License\n\n*Einstein* is released under the *MIT license*.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Feinstein-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Feinstein-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Feinstein-rb/lists"}