HW/DAS/Papouch/PAPAGO/index

Codes

Bash

wget -o /dev/null -O - 'http://192.168.2.237/fresh.xml' | grep -Po '<sns id="1".*val="\K[ 0-9\.]*'|xargs

Python

import os
os.system('wget -o /dev/null -O - "http://192.168.2.237/fresh.xml" | grep -Po \'<sns id=\"1\".*val=\"\K[ 0-9\.]*\'|xargs')