Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
Here's my script for launching sbpd at start-up. I originally put the sbpd command into a script file because I had so may buttons configured that the command was too long to be launched as a User Command. But having it as a script now allows for the necessary extra steps, such as launching the pigpio daemon and loading the uinput module. Save this text in a file called sbpd-script.sh in the home folder of the default 'tc' user. Code: #!/bin/sh # start pigpiod daemon pigpiod # give the daemon a moment to start up before issuing the sbpd command sleep 1 # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command sbpd e,20,21,KEY:KEY_UP-KEY_DOWN,2 b,26,KEY:KEY_RIGHT,2,0,KEY:KEY_LEFT,500 To get this script to run when pCP boots, add this line as a user command at the end of the 'Tweaks' section. [image: http://www.cjh.me.uk/MyPhotobucket/cache/DIYHifi/Tweaks_1024.jpg] chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
Jursi wrote: > > Chill, could you provide me the script to call sbpd and pigpiod etc. at > the startup. That would be awesome! > And how to call it from the tweaks page. > Sure - when I get home I'll update to Paul's latest pcp-sbpd.tcz from the repository, adjust my script to suit, and post it here. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
chill wrote: > Just wondering if it's possible to redirect the sbpd commands to a > Jivelite installation on a difference device. I know the MAC address > option can be used to send commands to a specific player, but if, say, I > have Jivelite running on a Jogger, can I send keystrokes to that > Jivelite somehow? I'm guessing not, given the uinput involvement, but I > thought I'd ask. I'm sure anythings possible, but not sure how to go about that. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
chill wrote: > Install pigpio.tcz from the piCorePlayer repository, then make sure the > daemon is running: just type pigpiod from the command line of an SSH > terminal. > > Then issue the two commands that Paul specified: > > Code: > > sudo modprobe uinput > sudo chmod g+w /dev/uinput > > > > Then download the sbpd binary from Paul's dropbox link, and put it in > the home directory of user tc: /home/tc > Make sure it's executable: I changed the permissions to 755 from > within Filezilla > > Finally, issue the ./sbpd command, with gpio pin assignments to match > your encoder's connections to the RPi pins. > > For testing purposes I did all this from an SSH command line, but for > normal use I would put it in a script file which I'd call at startup > using pCP's 'User commands' tweak. If you go that route, note that > pigpiod seems to need a moment to start up before you can issue the > sbpd command - I inserted a 'sleep 1' into my script immediately after > the pigpiod command. I installed pcp5 and everything is working perfectly, thank you Paul! Chill, could you provide me the script to call sbpd and pigpiod etc. at the startup. That would be awesome! And how to call it from the tweaks page. Thank you! Jursi's Profile: http://forums.slimdevices.com/member.php?userid=69100 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] Simple rotary encoder and button's for controlling Jivelite
Jursi wrote: > Hello, > > This is exactly what I am looking for! > > Could you share some more instructions on how to set it up?0 > > Thank you! What do you want to know. ? Do you have all the neccesary things ? I orderd the following on aliexpress : 'board' (https://nl.aliexpress.com/item/32707712465.html?spm=a2g0s.9042311.0.0.26874c4dr4Z4p9) 'encoders' (https://nl.aliexpress.com/item/32898093924.html?spm=a2g0s.9042311.0.0.27424c4dquzWPO) en flash the board with the code to be found on 'buttonbox' (https://www.xsimulator.net/community/threads/diy-arduino-buttonbox.8302/) If you dm me, i will send/mail you my code. After flashing you can connect it to your raspberry and you have an extra keyboard KleinKipje's Profile: http://forums.slimdevices.com/member.php?userid=64791 View this thread: http://forums.slimdevices.com/showthread.php?t=110605 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
Just wondering if it's possible to redirect the sbpd commands to a Jivelite installation on a difference device. I know the MAC address option can be used to send commands to a specific player, but if, say, I have Jivelite running on a Jogger, can I send keystrokes to that Jivelite somehow? I'm guessing not, given the uinput involvement, but I thought I'd ask. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy