Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crcastle/iphone5s-alerter

Sends you a text when an iPhone 5s is available in a local Apple store
https://github.com/crcastle/iphone5s-alerter

Last synced: about 2 months ago
JSON representation

Sends you a text when an iPhone 5s is available in a local Apple store

Awesome Lists containing this project

README

        

iphone5s-alerter
================

Sends you a text when an iPhone 5s is available in a local Apple store.

Requirements
------------

* Heroku toolbelt and a Heroku account
* Twilio account and outbound number ($1)
* Git

Set it up
---------
```shell
git clone [email protected]:crcastle/iphone5s-alerter.git
cd iphone5s-alerter
heroku apps:create
git push heroku master
heroku config:add ACCOUNT_SID= AUTH_TOKEN= TO_NUMBER= FROM_NUMBER= ZIP_CODE=
```
Now test it out
---------------
```shell
heroku run "ruby alerter.rb"
```
You should see output saying whether a specific model iPhone 5s is available at a store near you.

Schedule that command to run every 10 minutes
---------------------------------------------
```shell
heroku addons:add scheduler:standard
heroku addons:open scheduler
```
In the Heroku scheduler web interface, add the command `ruby alerter.rb` to run every 10 minutes.

A text message will be sent to `TO_NUMBER` from `FROM_NUMBER` using Twilio when an iPhone 5s in black or silver is available near `ZIP_CODE`.