Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 3 lines (2 sloc) 98 Bytes
#!/bin/sh
curl -s 192.168.1.1 | grep -Po '(?<=battery).(?=\.gif)' | awk '{ print 100*$1/4 "%" }'