I’ve put together a little python script to monitor pool data usage and top up automatically.

https://github.com/dbrand666/usmobile-lifeguard

It can be run standalone but I’ve set it up to run under docker compose for stability. I’ve been running it for a few months and it’s working well for me. The authentication token does expire occasionally and when that happens the script will abort. You need to grab another one and restart the script.

It has a dryrun flag which runs everything but won’t actually top up. Leave that set to true until you’re happy with what the log is showing. Even once you set dryrun to false, it will give you 10 seconds warning before topping up so you have a chance to kill it if it’s doing something unexpected.

It’s only set up to do one pool, mostly because I only have one pool, but if anyone has more and is willing to test I’d be willing to add support for multiple pools.

Comments, bug reports, suggestions, etc are welcome.

  • @dbrand666OPM
    link
    English
    11 year ago

    The new shared plans look just like the old pooled plans 🤷‍♂️.

    But they did decide to enable some Cloudflare stuff early this morning that broke the script.

    A new version has been released.