@temp The following works from me on the command line and as part of shell sensor. Notice the single slashes instead of the backslashes.
curl -s https://github.com/pimatic/pimatic/blob/master/package.json | grep version | grep span | awk -F\> {'print $11'} | awk -F\< {'print $1'}\n
Alternatively, the following is a lot easier and works for me:
curl -s https://raw.githubusercontent.com/pimatic/pimatic/master/package.json | jq '.version' -r
Check if you have jq
installed. If notm you can install it as follows:
sudo apt-get install jq
Hope, this helps.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law