Home Forum Community setup local graphs for your uradmonitor Reply To: setup local graphs for your uradmonitor

#2209
RobHeffo
Participant

The scripts work well. I have it running on a Raspberry Pi 2 with no problems.
I did need to tweak the “cut” commands as the JSON from my uRadmonitor has the detector type in position 3.

So, in both curr.sh and update.sh I needed to replace…

v_cpm=$( echo $jsondata | cut -f 3 -d "," | cut -f 2  -d ":" )
v_temp=$( echo $jsondata | cut -f 4 -d "," | cut -f 2  -d ":" )

with

v_cpm=$( echo $jsondata | cut -f 4 -d "," | cut -f 2  -d ":" )
v_temp=$( echo $jsondata | cut -f 5 -d "," | cut -f 2  -d ":" )