OutsourcedGuru / OctoPrint-USBControl

An OctoPrint plugin to allow USB ports to be programmatically turned OFF and ON from within the web interface
53 stars 17 forks source link

Install script path (OctoPi) #2

Closed shaunbro closed 5 years ago

shaunbro commented 5 years ago

Relatively new to this and always forget OctoPi != OctoPrint so just in case it is helpful the path for the install script for OctoPi is ~pi/oprint/lib/python2.7/site-packages/usbcontrol/bin/install

OutsourcedGuru commented 5 years ago

I updated the docs to include this information but of course it appears in the Settings screen when the plugin has been freshly installed.

And actually, the command and path is this:

sudo ~/oprint/lib/python2.7/site-packages/usbcontrol/bin/install

shaunbro commented 5 years ago

Apologies I can see why I got that wrong now - I was not running as the user 'pi' the ~ path is obviously relative to the user and in my case I was using my own user account so the path for me and any user other than 'pi' is either

~pi/oprint/... or (imho better) /home/pi/oprint/...

I accept that the issue is/was caused by my modifications to an otherwise vanilla octopi image so perhaps no change to your doc needed. I can't not mention how absolute paths make this a non issue for all players, but each to their own and thanks for the great plugin!

On Wed, 20 Feb 2019 at 11:08, Outsourced Guru notifications@github.com wrote:

I updated the docs to include this information but of course it appears in the Settings screen when the plugin has been freshly installed.

And actually, the command and path is this:

sudo ~/oprint/lib/python2.7/site-packages/usbcontrol/bin/install

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OutsourcedGuru/OctoPrint-USBControl/issues/2#issuecomment-465364193, or mute the thread https://github.com/notifications/unsubscribe-auth/AHRFgZg4MhYQVNBwx6E_iCWav2wYal58ks5vPJIYgaJpZM4bCckZ .

OutsourcedGuru commented 5 years ago

Gotcha. Duly-noted.