Mac Disks plugin
Mac Disks plugin
This is another very simple plugin (like my others), that I nevertheless find useful and hope some others will as well.
Mac Disks just presents local disks and network shares as Indigo relay devices and reports some statistics about them.
This is a half-replacement for the Mac System plugin, which unfortunately has not been updated in a while. A separate plugin replaces the other functionality of Mac System.
(I used, and relied on, Mac System but it did not support network shares, and I got infrequent but persistent "ServerCommunication" errors that I could never quite track down. So I decided to take the basic concept and rewrite it from scratch.)
Details: https://github.com/kmarkley/Indigo-Mac- ... /README.md
Download: https://github.com/kmarkley/Indigo-Mac- ... ses/latest
Mac Disks just presents local disks and network shares as Indigo relay devices and reports some statistics about them.
This is a half-replacement for the Mac System plugin, which unfortunately has not been updated in a while. A separate plugin replaces the other functionality of Mac System.
(I used, and relied on, Mac System but it did not support network shares, and I got infrequent but persistent "ServerCommunication" errors that I could never quite track down. So I decided to take the basic concept and rewrite it from scratch.)
Details: https://github.com/kmarkley/Indigo-Mac- ... /README.md
Download: https://github.com/kmarkley/Indigo-Mac- ... ses/latest
Re: Mac Disks plugin
Great plugin!
I´ve setup a local disk (usb) working good
network disk i get this warning:
Asconasny
I´ve setup a local disk (usb) working good
network disk i get this warning:
regardsMac Disks Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 194, in actionControlDimmerRelay
NameError: global name 'app' is not defined
Asconasny
Re: Mac Disks plugin
Well that's embarrassing. Just released bugfix v0.0.3.
Sorry about that.
Sorry about that.
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Mac Disks plugin
Excellent, thanks for the contribution. I'll add it into the #new4indigo queue on social media.
Re: Mac Disks plugin
Releases new version 0.0.5:
• fix Indigo server API version
• refactor for efficiency
• GitHubPluginUpdater
• tweaks and bug fixes
• fix Indigo server API version
• refactor for efficiency
• GitHubPluginUpdater
• tweaks and bug fixes
Re: Mac Disks plugin
sorry but how do I make the url for the network disk
afp://user:[email protected]/Film/Folder1 ?
it do not work like this for me so what have I done wrong ?
afp://user:[email protected]/Film/Folder1 ?
it do not work like this for me so what have I done wrong ?
Re: Mac Disks plugin
This is the correct general form.koburg wrote:afp://user:[email protected]/Film/Folder1
First, be sure that the disk is not already mounted. From the Finder, select Go->Connect to Server and enter the same URL. Does this mount the disk?
The plugin doesn't really have much debugging, but if you turn it on and post the results it might help narrow it down a little.
Re: Mac Disks plugin
Code: Select all
afp://Koburgstation.local/Filmhere is from the log:
updating states on device "nr 2 dum":
Mac Disks Debug identifier: //[email protected]
Mac Disks Debug actionControlDimmerRelay: nr 2 dum
Mac Disks Error failed to mount volume "Film"
Mac Disks Debug mount: realpath /Volumes/Film: No such file or directory
Re: Mac Disks plugin
I'm sorry this isn't working for you. Hopefully we can figure out if the issue is the plugin or something else on your system.
The plugin just uses shell commands to mount/unmount disks. Please make sure the disk is not mounted, then open a terminal window and run these two commands (sequentially):
What is the result?
The plugin just uses shell commands to mount/unmount disks. Please make sure the disk is not mounted, then open a terminal window and run these two commands (sequentially):
Code: Select all
/bin/mkdir /Volumes/Film
/sbin/mount -t afp afp://user:[email protected]/Film /Volumes/FilmRe: Mac Disks plugin
ok I will try this but I just got this working thru action groups also
python sript.
python sript.
Code: Select all
os.system("osascript -e 'mount volume \"smb://Koburgstation/Film\" \
as user name \"****User****\" with password \"****Password****\"'")Re: Mac Disks plugin
Have you tried using the smb url in the plugin (instead of afp)?
Re: Mac Disks plugin
I have been trying to get this network function working as well. It would be highly valuable to get this network disk function working vs the local in my view. I got it to work, but found something strange. I noticed that it would only work when I used the admin accounts for the user name and password even if the other users also were given admin access. I verified this with multiple network shares. The only accounts that worked were the system default admin accounts.
Anyways, working great now! thanks for all of this work, very useful!!!!!
Anyways, working great now! thanks for all of this work, very useful!!!!!
Re: Mac Disks plugin
There is an issue with newer operating systems that I didn't realize because I was running an older one.
The traditional method of mounting a network drive no longer works because /Volumes is now a protected directory:
Version 0.0.9 of the plugin (just posted to plugin store) includes an option in the plugin config to use the open command instead:This also unavoidably opens a Finder window on the network drive.
The traditional method of mounting a network drive no longer works because /Volumes is now a protected directory:
Code: Select all
mkdir /Volumes/DiskName
mount -t smbfs smb://user:password@DiskURL/DiskName /Volumes/DiskNameVersion 0.0.9 of the plugin (just posted to plugin store) includes an option in the plugin config to use the open command instead:
Code: Select all
open -g smb://user:password@DiskURL/DiskName- durosity
- Posts: 4810
- Joined: Thu May 10, 2012 3:21 pm
- Location: Newcastle Upon Tyne, Ye Ol' England.
Re: Mac Disks plugin
I noticed the Mac Apps app has been updated for Indigo 2022.1, is there any plans for this one to be updated? Since I updated this plugin reports as working, but doesn't actually detect that disks are mounted or not.
Computer says no.
- durosity
- Posts: 4810
- Joined: Thu May 10, 2012 3:21 pm
- Location: Newcastle Upon Tyne, Ye Ol' England.
Re: Mac Disks plugin
Interestingly since 2022.2 came out this now seems to be reporting disks as mounted correctly for me.. although still hoping there's gonna be a python 3 update 
Computer says no.