Shared Device

Posted on
Sat Sep 26, 2015 11:40 pm
Coolcaper offline
Posts: 190
Joined: Aug 30, 2013
Location: Australia

Shared Device

Thanks for the plugin. I am trying it out at the moment for mounting a shared NAS device. Is there a particular way I need to set it up to mount? I have set it up as a Disk Volume but no luck.

Posted on
Wed Apr 27, 2016 3:27 am
Asconasny offline
Posts: 109
Joined: Jan 16, 2015

Re: Shared Device

was this issue resolved? I'm trying to figure out the same. Have a NAS and would like the volume to mount and dismount with this plugin.

regards
Asconasny

Posted on
Sat Apr 30, 2016 3:37 pm
Coolcaper offline
Posts: 190
Joined: Aug 30, 2013
Location: Australia

Re: Shared Device

Nope and haven't seen the developer active here for a while either.

Posted on
Sat Apr 30, 2016 4:02 pm
Different Computers offline
User avatar
Posts: 1320
Joined: Jan 02, 2016
Location: East Coast

Re: Shared Device

There's a pretty simple applescript that would do this, and then you could use Indigo to fire off the Applescript.

Code: Select all
set diskName to "YourDiskNameHere"
tell application "Finder"
 if disk diskName exists then
  eject disk diskName
 else
  tell current application
   set deviceLine to (do shell script "diskutil list | grep \"" & diskName & "\" | awk '{ print $NF }' }'")
   if deviceLine = "" then
    display dialog "The disk \"" & diskName & "\" cannot be found." buttons {"OK"} default button 1 with title "Error" with icon caution
   end if
   set foundDisks to paragraphs of deviceLine
   repeat with i from 1 to number of items in foundDisks
    set this_item to item i of foundDisks
    if this_item contains "disk" then
     do shell script "diskutil mountDisk /dev/" & this_item
    end if
   end repeat
  end tell
 end if
end tell

Refugee from SmartThings and so happy to be on Indigo now.
Sierra on an i5 running Harmony Hub, Hue, Security Camera, DomoPad, EPS Device Extensions EPS Smart Dimmer, MatplotLib, Plex, Scale Adapters, uniFiAP, Wunderground.

Posted on
Thu Sep 22, 2016 12:18 pm
Coolcaper offline
Posts: 190
Joined: Aug 30, 2013
Location: Australia

Re: Shared Device

Thanks for that! Haven't been active on here either lol....life as usual :|

Posted on
Mon Dec 26, 2016 1:34 pm
kmarkley offline
Posts: 71
Joined: Nov 15, 2016

Re: Shared Device

I have forked bip.phillipe's plugin to work with local network shares. There is a new device type to accomplish this.

Tested on my system with afp and smb shares, but should theoretically also work for nfs, ftp, and webdav.

This is a bit of a butcher's job and there are large swaths of this plugin I do not understand. Right now it works for me, but if it breaks you should probably revert to the official version.

Download here: https://github.com/kmarkley/Indigo-Domo ... ses/latest

Posted on
Mon Dec 26, 2016 6:04 pm
Asconasny offline
Posts: 109
Joined: Jan 16, 2015

Re: Shared Device

kmarkley wrote:
I have forked bip.phillipe's plugin to work with local network shares. There is a new device type to accomplish this.


Great! thank you for this
work good on my system with smb shares


Asconasny

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests