|
2013-12-12
, 14:13
|
Posts: 26 |
Thanked: 44 times |
Joined on May 2012
|
#502
|
|
2013-12-12
, 14:14
|
Posts: 98 |
Thanked: 104 times |
Joined on Dec 2013
|
#503
|
Jeebus, now there's complaints about an apology.
Is there a way to virtually slap people?
|
2013-12-12
, 14:17
|
Posts: 64 |
Thanked: 117 times |
Joined on Aug 2010
|
#504
|
Don't know about Android app, but I've made a quick & dirty bash script for automatic checking of my order status, if anyone interested:
Code:# cat check_order_status.shJust added it to crontab and now I can do more useful things than checking Jolla's store pageCode:#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" echo "Getting login page..." curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null echo "Sending POST data..." curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https://shop.jolla.com/customer/account/loginPost/ > /dev/null echo "Getting orders list..." orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` echo "Filtering status..." order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` if [ ! -f status.txt ]; then echo "unknown" > status.txt fi if [ `cat status.txt` == $order_status ]; then echo "Status of your order is still $order_status, nothing to do but wait." else echo "Wohoo, your order status has just changed do $order_status, sending e-mail notification!" echo "Time to celebrate, after endless waiting your Jolla order status just changed to $order_status!" | mail -s "Your Jolla order status changed to $order_status" $email echo $order_status > status.txt fi echo "Done."
I'm not a bash expert, so it surely could be done better. For the mail commad to work, you need to have set up local MTA. Also, if you're going to use this in any way, please don't hammer Jolla's server and set the check interval to maybe 30 minutes or so...
#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https://shop.jolla.com/customer/account/loginPost/ > /dev/null orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` if [ ! -f status.txt ]; then echo "unknown" > status.txt fi if [ `cat status.txt` == $order_status ]; then echo "Jolla :( $order_status." else echo "Jolla :) $order_status!" fi
|
2013-12-12
, 14:19
|
Posts: 738 |
Thanked: 819 times |
Joined on Jan 2012
@ Berlin
|
#505
|
|
2013-12-12
, 14:39
|
Posts: 64 |
Thanked: 117 times |
Joined on Aug 2010
|
#506
|
The Following 2 Users Say Thank You to SaiKo For This Useful Post: | ||
|
2013-12-12
, 14:40
|
Posts: 138 |
Thanked: 164 times |
Joined on Aug 2009
@ Chateauroux, FRANCE
|
#507
|
The Following User Says Thank You to TheBootroo For This Useful Post: | ||
|
2013-12-12
, 14:45
|
Posts: 26 |
Thanked: 44 times |
Joined on May 2012
|
#508
|
Will this work as a billboard script?
No way to control billboard refresh speed though, would this eat a lot of battery?Code:#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https://shop.jolla.com/customer/account/loginPost/ > /dev/null orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` if [ ! -f status.txt ]; then echo "unknown" > status.txt fi if [ `cat status.txt` == $order_status ]; then echo "Jolla :( $order_status." else echo "Jolla :) $order_status!" fi
#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https:/ orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` echo $order_status
|
2013-12-12
, 14:48
|
Posts: 64 |
Thanked: 117 times |
Joined on Aug 2010
|
#509
|
For Billboard:
Code:#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https:/ orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` echo $order_status
I will miss low power mode in Jolla
|
2013-12-12
, 14:52
|
|
Posts: 455 |
Thanked: 782 times |
Joined on Nov 2009
@ Netherlands
|
#510
|
www.HtheB.com
Please donate if you think I'm doing a good job.