Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/crcastle/iphone5s-alerter
- Owner: crcastle
- Created: 2013-10-07T03:44:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-11T18:24:37.000Z (about 11 years ago)
- Last Synced: 2024-10-14T04:44:32.730Z (3 months ago)
- Language: Ruby
- Size: 102 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
* GitSet 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`.