Code: Select all
cat /home/jay/.conky/wget/192.168.0.2/stats/h5/index.html | grep -A11 'Key Rate' | tail -1 | sed -r 's/^[[:space:]]*([^[:space:]]*).*$/\1/'
Code: Select all
${goto 10}${font}${color} - ${execi 20 cat /home/jay/.conky/wget/192.168.0.2/stats/h5/index.html | grep 'Hostname Summary for' | cut -c 33-40}: ${alignr}${execi 20 cat /home/jay/.conky/wget/192.168.0.2/stats/h5/index.html | grep -A11 'Key Rate' | tail -1 | sed -r 's/^[[:space:]]*([^[:space:]]*).*$/\1/'}
Code: Select all
conky: Syntax error (/home/jay/.conkyrc:260: nesting of [[...]] is deprecated near '[') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:139: attempt to index local 'settings' (a nil value)
Code: Select all
#!/bin/sh
\${execi 20 cat /home/jay/.conky/wget/192.168.0.2/stats/h5/index.html | grep -A11 'Key Rate' | tail -1 | sed -r 's/^[[:space:]]*([^[:space:]]*).*$/\1/'}
TIA