View Single Post
Posts: 26 | Thanked: 44 times | Joined on May 2012
#508
Originally Posted by SaiKo View Post
Will this work as a billboard script?
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
No way to control billboard refresh speed though, would this eat a lot of battery?

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
 

The Following 6 Users Say Thank You to xgoan For This Useful Post: