Bitcoin Forum

Economy => Service Announcements => Topic started by: tablook on April 12, 2016, 04:38:26 AM



Title: Tablook - a Universal Bitcoin/Altcoin ticker for Android
Post by: tablook on April 12, 2016, 04:38:26 AM
See Tablook.com (http://Tablook.com).

I wanted to put all interesting bitcon-related information in one table for convenient look-up. But new coins/exchanges/mining pools and other data sources keep popping up every day, so instead of displaying some fixed information, I threw a JavaScript interpreter and editor in, so user can write her own scripts to download and format information in any way possible. You can display difficulty projections, mining profitability calculations, exchange rates, or any other data available on the internet. Share scripts with others, and search for scripts that others created - kinda micro app store.

Examples of scripts that I created:

btc_bitstamp - Last bitcoin price at Bitstamp
btc_bitfinex - Last bitcoin price at Bitfinex
kraken_polo_eth_btc_arb - watch for ETH arbitrage opportunities between Kraken and Poloniex
btc_difficulty - show current bitcoin difficulty and projected increase
eth_btc_polniex - ETH/BTC exchange rate at poloniex
fx_eurusd - obvious
datetime - current time

Scripts can also vibrate the phone and show notifications, in case you want to be notified when BTC crosses $10000 level (soon I hope!).
I even wrote a script to show next bus arrival time for my local bus route.

App is available in Google Play Store https://play.google.com/store/apps/details?id=com.tablook1.tablook (https://play.google.com/store/apps/details?id=com.tablook1.tablook).

Can make an iPhone version if there is any interest.


Title: Re: Tablook - a Universal Bitcoin/Altcoin ticker for Android
Post by: tablook on April 12, 2016, 05:07:54 AM
To make scripts smaller and editing easier, it uses a simplified version of JavaScript where callbacks are not needed, every function is automatically a promise. So instead of writing

http.get("website.com", function(html) { log(html);}),

you write

log(http.get("website.com"));

and it will execute asynchronously.


Title: Re: Tablook - a Universal Bitcoin/Altcoin ticker for Android
Post by: tablook on September 01, 2016, 03:40:49 AM
Added a script to watch current balance of a bitcoin address.
Search for "watch_address" in the Tablook store.

This is how the script looks:

Code:
function coins(addr)
{
  json=api.http.get('https://blockchain.info/unspent?active='+addr);
  outputs=JSON.parse(json).unspent_outputs;
  sum = 0;
  for(var i=0; i < outputs.length; i++)
    sum += parseFloat(outputs[i].value);
  return sum;
};
addr1 = coins('12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX');
'Address ' + ((addr1)/100000000).toFixed(3);"

The Tablook store version watches the first spendable address (which belongs to Satoshi, obviously. If this one ever spends, watch out!).
Replace Satoshi's address with any other, or modify it to watch several addresses.
I use it to watch my bait address (an unencrypted wallet.dat sitting in my computer and designed to detect when my computer gets pwned).


Title: Re: Tablook - a Universal Bitcoin/Altcoin ticker for Android
Post by: tablook on September 01, 2016, 04:31:28 AM
To show a notification if Satoshi's coins move, add this:

Code:
if(addr1 < 50*1e8)
{
  api.vibrate(1000);
  api.notify('OMG!', 'Sell Sell Sell!');
}