I wanted to send myself push notifications when my tickets voted, so I wrote a very basic python function for getting values from the wallet rpc server. Maybe someone else just getting started (like myself) will find it useful. Usage example: Code: $ python >>> from ask_wallet import ask_wallet >>> ask_wallet( 'getstakeinfo' ) {'result': {'blockheight': 139050, 'poolsize': 42801, 'difficulty': 128.2224049, 'allmempooltix': 0, 'ownmempooltix': 0, 'immature': 0, 'live': 4, 'proportionlive': 9.345576037943039e-05, 'voted': 1, 'totalsubsidy': 1.50375652, 'missed': 0, 'proportionmissed': 0, 'revoked': 0, 'expired': 0}, 'error': None, 'id': None} The main() function demonstrates how I use it: Code: ./ask_dcr.py getstakeinfo live 4 ./ask_dcr.py getbalance spendable 31.739 It requires the "requests" and jsonrpc modules, which I had to install Code: pip install requests json-rpc https://github.com/brianbaligad/quickdcr/blob/master/ask_wallet.py
Cool. I've been thinking about doing some similar minimal tools but leaning more towards the grpc server (at least for wallet use). Not sure what the python grpc port is like (go one is great, the js one is kind of a pain since it isn't native js).
Nice @isuldor What app / provider do you use to send PUSH notifications? Some stakepool users asked me already about emails / push notifications on voted ticket.
I'm just using pushover.net. It cost five bucks, but saved me from having to actually figure out push notifications.