NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
fisics
Jan 12, 2014Aspirant
Duo V2 Remote Temperature Script
Hi there, I have a Duo V2 RAIDiator 5.3.10-T3 I want to remotely view the temperature and log it. Does anyone know how to access this data? I have enabled SSH access on the NAS. Thanks ...
fisics
Jan 29, 2014Aspirant
Thanks for the help! Especially too Skywalker and mdgm!
The temperature and fan speed among others get written to /var/log/frontview/enclosure.log every minute automatically.
To get the temperature back to my Raspberry Pi running Domoticz I've setup a SSH key and using SCP to copy the file.
scp root@10.0.1.200:/var/log/frontview/enclosure.log /home/pi/readynas/log.txt
I'll get this running every minute using Cron on the Raspberry Pi.
Then to extract the temperature it's:
awk -F'!!' '/^temp/ { split($3, a, "[=C]"); print a[3]; }' log.txt > temperature.txt
Then I can open temperature.txt and submit that via Curl to Domoticz.
Hope that helps someone else out there!
The temperature and fan speed among others get written to /var/log/frontview/enclosure.log every minute automatically.
To get the temperature back to my Raspberry Pi running Domoticz I've setup a SSH key and using SCP to copy the file.
scp root@10.0.1.200:/var/log/frontview/enclosure.log /home/pi/readynas/log.txt
I'll get this running every minute using Cron on the Raspberry Pi.
Then to extract the temperature it's:
awk -F'!!' '/^temp/ { split($3, a, "[=C]"); print a[3]; }' log.txt > temperature.txt
Then I can open temperature.txt and submit that via Curl to Domoticz.
Hope that helps someone else out there!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!