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 in advance.
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 in advance.
4 Replies
Replies have been turned off for this discussion
- fisicsAspirantCan anyone help with this? I've tried searching everywhere but can't find anything.
Thanks! - chirpaLuminaryMaybe try viewtopic.php?p=157069#p157069
- fisicsAspirantThanks 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! - chirpaLuminaryscp seems a bit heavy. Maybe a symlink to that file from https accessible location, then wget/curl off the NAS?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!