Displaying EE mobile data usage in Conky
OK, this is probably one of the most specific posts I've ever written, but...
I wrote a bash script to automatically fetch and parse the currently used data on the 4G EE mobile network in the UK that can then be used with Conky. It's a compact one liner that looks like this:
#!/bin/bash
wget -qO- http://add-on.ee.co.uk/status | awk -v OFS=' / ' -v ORS='' '/<span class="data-used">/{sub(/^[^0-9]*/, ""); dused=$0; match(dused, /^([0-9].?[0-9]?).+([0-9][^G]?[0-9]?)/, arr);} END {print arr[1], arr[2];}'You can then call this from a conkyrc file with something like this:
${color #F09000}Mobile Usage${color #707070}:${color white} ${execi 900 ~/.scripts/getusage.sh}GBDisplaying EE mobile data usage in Conky was originally published by Martin Paul Eve at eve.gd: Martin Paul Eve on July 14, 2013.
Files
10.59348_xecrq-8qk94.pdf
Files
(111.5 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:d7327e1b255d84fd5307cddfe476e3b4
|
111.5 kB | Preview Download |
Additional details
Description
OK, this is probably one of the most specific posts I've ever written, but... I wrote a bash script to automatically fetch and parse the currently used data on the 4G EE mobile network in the UK that can then be used with Conky.
Identifiers
- GUID
- https://doi.org/10.59348/xecrq-8qk94
- URL
- https://eve.gd/2013/07/14/displaying-ee-mobile-data-usage-in-conky/
Dates
- Issued
-
2013-07-14T00:00:00Z
- Updated
-
2013-07-14T15:07:19Z