Created
May 29, 2015 03:05
-
-
Save bobpp/05a28b3786ef113f946e to your computer and use it in GitHub Desktop.
Megu birthday shop open checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -s -S http://officialstore.jp/cgi-bin/negiccomobile.net/cart.cgi\?item\=MEGU1_M | iconv -f shift_jis -t utf-8 | grep "この商品は完売しました" | |
# 完売の文字が消えたら販売開始扱い | |
if [ $? -eq 1 ]; then | |
curl -s -S \ | |
-d "user_credentials=****************" \ | |
-d "notification[title]=ぽんちゃT販売開始" \ | |
-d "notification[long_message]=いそげ" \ | |
-d "notification[sound]=bird-1" \ | |
-d "notification[source_name]=Negicco" \ | |
-d "notification[icon_url]=http://new.boxcar.io/images/rss_icons/boxcar-64.png" \ | |
-d "notification[open_url]=http://officialstore.jp/cgi-bin/negiccomobile.net/cart.cgi?item=MEGU1_M" \ | |
https://new.boxcar.io/api/notifications | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment