serverx
Posts: 5
Joined: Mon May 11, 2020 11:36 pm

External HDD activity led

Sun May 17, 2020 12:57 am

Hello, i would like to connect to my raspberry pi4 a LED that showing the SSD connected via usb3 adapter acrivity.... i tried this https://github.com/RagnarJensen/PiLEDlights but do not working.... somebody know sifferent scripts ??

Thanks

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: External HDD activity led

Sun May 17, 2020 2:23 pm

Try this: https://github.com/thagrol/hdd-led

Threw it together since reading your post.

Documentation to come, needs python3 and gpiozero. Currently need to edit the script to change which GPIO is used.

Only tested with raspbian buster light on a 4B.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

serverx
Posts: 5
Joined: Mon May 11, 2020 11:36 pm

Re: External HDD activity led

Sun May 17, 2020 4:39 pm

Thank you so much it worked without any issue...... is it possible run it as service ?
Thanks

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: External HDD activity led

Sun May 17, 2020 8:09 pm

serverx wrote:
Sun May 17, 2020 4:39 pm
Thank you so much it worked without any issue...... is it possible run it as service ?
Thanks
Probably. Haven't had time to write anything yet.

Quickest way to get it running at boot would be an @reboot cron job.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

serverx
Posts: 5
Joined: Mon May 11, 2020 11:36 pm

Re: External HDD activity led

Sun May 17, 2020 9:35 pm

Great.... thank you

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: External HDD activity led

Tue May 19, 2020 10:27 pm

Just pushed an update to github.

Added some basic documentation and the ability to specify parameters at the command line.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

User avatar
ragnarjensen
Posts: 333
Joined: Wed May 15, 2013 6:13 pm
Location: Stockholm, Sweden
Contact: Website

Re: External HDD activity led

Sat May 23, 2020 9:12 pm

serverx wrote:
Sun May 17, 2020 12:57 am
... i tried this https://github.com/RagnarJensen/PiLEDlights but do not working...
You will probably have to update the WiringPi libraries.
I have just tested with a fresh Raspbian install on a Pi 4B, and that came with WiringPi version 2.50.

I had to upgrade WiringPi to version 2.52 to get hddledPi and netledPi to work.

http://wiringpi.com/wiringpi-updated-to ... rry-pi-4b/

--
Ragnar

WorkPants
Posts: 7
Joined: Fri Apr 20, 2018 2:44 am

Re: External HDD activity led

Sun May 24, 2020 1:42 am

Have not tried it but bookmarked the github page and this thread. It's something i've been wondering about for years and couldn't find the information by myself.

I looked at the Python code and learned a bit more about Linux.

Thanks a lot thagrol for making and sharing this.

Return to “General discussion”