Well Done. Thank You..It looks like the Solo follows a fairly standard Linux boot process, so I've uploaded a couple of files and instructions on how to setup boot time / persistent defaults here:
GitHub - hugheaves/solo-led-control: Command line utilities to control 3DR Solo LEDs
And your default is exactly what I was going to make my default! Yay for less buttons to push now!
The chmod a+x led_control.py to avoid having to prefix everything with python doesn't seem to work though. I still have to prefix everything with python.
That didn't work either. I also verified the files do actually have the execute permission set. Am I the only one having this problem?Try '#!/usr/bin/env python' at the top of led_control.py instead of '#!/usr/bin/python'.
Ran the new install method. Well done! A few things may still need to be cleaned up:
- Running ./led_control_install.py wouldn't execute until I changed the permissions to execute. Perhaps it would work with a preceding python? Or can you set those permissions in advance?
- I would update the install instructions to specify putting the files in /home/root/ unless it doesn't matter? Otherwise people will just drop it right in the root root.
- Solex can't seem to see the files in the new directory. I can execute via an SSH terminal just fine with no preceding python or ./. But from Solex, it doesn't see them and just does nothing. If I put a copy of the two files back in /home/root/, solex can execute them with the preceding python. Not sure if this is a solex matter or something you can address.
Ran the new install method. Well done! A few things may still need to be cleaned up:
- Running ./led_control_install.py wouldn't execute until I changed the permissions to execute. Perhaps it would work with a preceding python? Or can you set those permissions in advance?
- I would update the install instructions to specify putting the files in /home/root/ unless it doesn't matter? Otherwise people will just drop it right in the root root.
- Solex can't seem to see the files in the new directory. I can execute via an SSH terminal just fine with no preceding python or ./. But from Solex, it doesn't see them and just does nothing. If I put a copy of the two files back in /home/root/, solex can execute them with the preceding python. Not sure if this is a solex matter or something you can address.
Something is up with the way Solex is communicating the commands to the solo. Solex for some reason isn't seeing the scripts in the new folder that they're in. As you noticed too, it works via any other SSH. Just not Solex. As a work around until Kelly addresses that issue, you can put a copy of the two py files in /home/root/ and Solex commands will work off of those.
It would indeed seem that when you override the stock LED mode, it does inhibit all stock LED functions including the lost signal blinking. I'm OK with that though.
Nice job @human
I like the new LED scheme at startup COOL friggen beans!,
one thing I did notice "Lets say you disconnect the controller from the solo" what happens is the LED's do not indicate this by flashing the normal pulsating red "warning" of a disconnect, they just remain at the scheme selected... is this by design? One more thing I have no control of commands on SOLEX only if I use Putty to SSH,, Please advise.. and thanks for the hard work.
We use essential cookies to make this site work, and optional cookies to enhance your experience.