12. Mai 2019 at 22:39 #45379
The functionality this plugin offers is definitely needed. I implemented a version myself but took a completely different direction.
-Used a digispark, a rotaty encoder, the arduino HID trinket library, and modified the script to generate a „Volume Up“, „Volume Down“, „Play/Stop Toggle“ signal through USB.
-Also bought a unit that basically already does that (but it was more fun to build my own)
-I run a background python process using the evdev library to capture events from my USB device and to send commands to the server through the REST API controlling the intended player’s volume.
-It’s working well and I can just plug the knob in a USB port which is less of a hassle than dealing with GPIO. Last thing I need to figure out is how to have the plug in install process launch my python script as a background process on boot.
Can you help with that last part so I can make the plugin available for those who want it?13. Mai 2019 at 19:05 #45384
If you’re not a hacker type, you can just get the following hardware:
If you are the hacker type, you can use the following:
-ATTiny dev board: https://www.ebay.com/p/Digispark-Kickstarter-Attiny85-Arduino-General-Micro-USB-Development-Board/1873410506?iid=113322552360
-EC11 5 pin rotary switch encoder
-Use the following Arduino script: rotaryKnobHID.ino in this github repo: https://github.com/thomashollier/max2play_knob
The github repo has the python scripts as well but it is all in progress so use at your own risk.
16. Mai 2019 at 6:29 #45412
- This reply was modified 1 month, 1 week ago by superVenicianFrog.
Great! Looking forward to seeing it. In the meantime, I hacked together a way to create, install, and start a systemd service during the plug in install. The service simply launches the python script. The next issue to solve is finding an elegant way to change the IP and MAC addresses, as well as the HID device name that the python script uses once the process is already running. I am thinking of a tmp file that the python script keeps an eye on but it seems a bit too hacky for my taste.
Again, if you are interested, I put the plugin in its current state on github:
https://github.com/thomashollier/max2play_knob -> Usbvolumeknob.tar16. Mai 2019 at 15:43 #45447
That’s what we added to the Plugin Builder! 😀
A startscript that let’s you quickly add a script to be executed in systemd.
You can get the additional script by making a Beta Update with the Plugin Builder installed.
Unfortunately, I’m out of the office for next week and a half but I’ll check out the plugin in detail when I’m back.25. Mai 2019 at 17:34 #45488
Maybe it has been asked before, but is it possible to make the microSDcard ‚read-only‘, so that the card does not get corrupted when the power is accidentally removed.
For the rest I am very satisfied with the Max2Play solution. I am using a Raspberry 2B with a HiFiBerry hat, together with a Squeezebox Touch and 2 Squeezebox Radios, all remotely controlled with the Android app Squeeze Ctrl from angryGoat.
You must be logged in to reply to this topic.