• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

Is it possible to trigger NASMount to mount a NAS when that NAS starts up?

TW8

New Member
I have been trying to mount my NAS via NASmount simply by switching the NAS on. I know it's a bit lazy.

I have worked out that I can mount my NAS from anywhere on my local network by going to the URL:
http://{Foxsat-IP}/plugin/NASMount/cgi-bin/DoSingleReMount.jim?MountNo=8'
and it will mount provided I am logged in. MountNo 8 holds the details of the NAS. It was 32 before I messed up DoSingleReMount.jim and had to do a re-install.

To automate the login process I have tried using PHP cURL to log in :
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
then :
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
It failed! Then :
curl_setopt($ch, CURLOPT_POSTFIELDS, 'username='.$username.'&password='.$password);
but I'm getting a 401.

I have no idea about webif auth. I see no evidence of stored cookies, so what am I missing? Session ID?

Thanks for your help.
 
What you actually need to do is download the package and look at the code. I haven't looked into it, but I expect it is coded in Jim and therefore readable. The repo is HERE. The discussion thread is HERE, but I don't think it will be much help (except perhaps for an explanation of what it does, rather than how it does it).

For what it's worth, I have indexed discussion relevant to individual HDR-FOX and HD-FOX packages HERE.
 
Back
Top