Kodi Community Forum

Full Version: [Apple TV] Access a URL from within XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here is a weird one for you.

I would like to be able to load/access the following URL from within XBMC:

Code:
http://10.0.100.1/devicemounter/mountdevice.php?volname=Movies

Why? Well, I'm lazy in the extreme. The Movies item in the URL is actually a 2TB drive attached to my iMac which is in the basement. I keep the drive powered on but unmounted on my iMac, and when I want to view media from XBMC I need to mount the drive, which would mean going down to the basement and mounting the drive.
I therefore wrote a shell script on my mac which is called via the URL above, which tells diskutil to mount / umount the drive depending on it's current state.

What I want to know is if there is any way to issue that URL from with XBMC, therefore getting the drive to mount / unmount without having to resort to using a browser.

Currently I use my iPhone to access the URL which mounts / unmount's the drive.
create a text file with the url in it.

save the text file with the *.STRM suffix file name

put the text.strm file in the \music or \movies directory.

see if XBMC will start the URL works for streams
Thanks for the reply, I'll give it a shot tonight and report back.
Just gave it a try and alas no luck, I get an error saying some media could not be played back, please check your log.

I will grab the log tomorrow and have a look.

Any other ideas?
You probably need to run a python command that triggers http://10.0.100.1/devicemounter/mountdev...ame=Movies (maybe using wget or curl) and add that to autoexec.py so it runs when xbmc starts.

This will mount ur drive and then xbmc will should see ur movies
Me again!
Well password-less SSH would not work for me for scripts, so I tried curl, and that does work!