Temperature hook?

Hi,
I have a NWSP2 and during summer it gets hot as much as 56-57C. I had to increase the threshold level of max temp, as it was set to 55 and the NAS started to shutdown and wake up repeatedly.
I now got a small fan pointing at it, so the temp went down about 15C, which is fine.
I was thinking it it could be possible to have a sort of SW hook connected to the HDD temp. With that I could probably define a IFTTT rule to switch my fan on and off, according to a different threshold, in order not to activate it only when necessary.
To start with something, where do I read the HDD temperature from the cmdline?
Is there a way to have a script running (every minute is fine) so I can do something with that value? If I can use the crontab from the web interface, where do I place the script?
Can I use wget or curl inside the script to make web calls?
Thanks,
MDI
I have a NWSP2 and during summer it gets hot as much as 56-57C. I had to increase the threshold level of max temp, as it was set to 55 and the NAS started to shutdown and wake up repeatedly.
I now got a small fan pointing at it, so the temp went down about 15C, which is fine.
I was thinking it it could be possible to have a sort of SW hook connected to the HDD temp. With that I could probably define a IFTTT rule to switch my fan on and off, according to a different threshold, in order not to activate it only when necessary.
To start with something, where do I read the HDD temperature from the cmdline?
Is there a way to have a script running (every minute is fine) so I can do something with that value? If I can use the crontab from the web interface, where do I place the script?
Can I use wget or curl inside the script to make web calls?
Thanks,
MDI