PDA

View Full Version : What are the keyboard controls



ryangodammit
2018-01-13, 00:52
I'm running squeezelite on picoreplayer on a raspberry pi 3 with a hifiberry amp 2.
What are the keyboard controls and how do I configure them?
Is it in squeezelite or picoreplayer?
I want to butcher a wireless keyboard and make a controller with pause/play next/last track and volume using arcade machine buttons.

Ryan

Also, what thread should I put this in?

Paul Webster
2018-01-17, 07:19
Aha - you had already started a new thread.

To summarise the responses in other posts ... when using a keyboard with pCP it is driving Jivelite (the UI).

The starting point for keyboard usage is as documented for SqueezePlay at
http://wiki.slimdevices.com/index.php/SqueezePlay_Developers_FAQ

However, I can see that it is not exactly as described there ... for example using a USB attached keyboard the "I" seemed to map to "Power Off" rather than "Up".

Update:
JiveLite souce from Ralphy's GitHub ...
https://github.com/ralph-irving/jivelite
Take a look at /share/jive/jive/InputToActionMap.lua
(which does indeed show "i" mapped to "Power" along with the rest)

ryangodammit
2018-01-17, 13:22
Aha - you had already started a new thread.

To summarise the responses in other posts ... when using a keyboard with pCP it is driving Jivelite (the UI).

The starting point for keyboard usage is as documented for SqueezePlay at
http://wiki.slimdevices.com/index.php/SqueezePlay_Developers_FAQ

However, I can see that it is not exactly as described there ... for example using a USB attached keyboard the "I" seemed to map to "Power Off" rather than "Up".

Update:
JiveLite souce from Ralphy's GitHub ...
https://github.com/ralph-irving/jivelite
Take a look at /share/jive/jive/InputToActionMap.lua
(which does indeed show "i" mapped to "Power" along with the rest)

Awesome thanks Paul. I felt like I was starting to push my luck chasing you guys around the internet with this.
I'll research those links and see if I can't get it up and running

ralphy
2018-01-18, 05:36
Here are the supported keys for jivelite. (https://github.com/ralph-irving/tcz-lirc/blob/master/jivekeys.csv)

See the Keypress and Jive Action columns.

Keys marked yes in the New column are only available with the latest code from my github jivelite repository (https://github.com/ralph-irving/jivelite).

ryangodammit
2018-01-26, 23:39
Here are the supported keys for jivelite. (https://github.com/ralph-irving/tcz-lirc/blob/master/jivekeys.csv)

See the Keypress and Jive Action columns.

Keys marked yes in the New column are only available with the latest code from my github jivelite repository (https://github.com/ralph-irving/jivelite).

That's fantastic thanks Ralphy.

How do I install the latest code onto my picoreplayer version.

Sorry for all the noobness. I definitely sit more on the user side of the fence

ralphy
2018-01-28, 04:37
That's fantastic thanks Ralphy.

How do I install the latest code onto my picoreplayer version.

Sorry for all the noobness. I definitely sit more on the user side of the fence

As you're already running picoreplayer, you'll have my jivelite build which supports all the keys listed.

ryangodammit
2018-01-28, 06:07
As you're already running picoreplayer, you'll have my jivelite build which supports all the keys listed.

Am I able to configure them myself?

ralphy
2018-01-30, 05:48
Am I able to configure them myself?

Yes, I describe how to add/change key mappings in this post (http://forums.slimdevices.com/showthread.php?105117-lirc-rpi-gpio-IR-support-for-picoreplayer&p=883651&viewfull=1#post883651).

Make sure you backup your pcp config before you reboot, or you'll loose all your changes.

ryangodammit
2018-04-15, 13:15
Yes, I describe how to add/change key mappings in this post (http://forums.slimdevices.com/showthread.php?105117-lirc-rpi-gpio-IR-support-for-picoreplayer&p=883651&viewfull=1#post883651).

Make sure you backup your pcp config before you reboot, or you'll loose all your changes.


Hi Ralphy,
In the keyboard control list there is the capability to set 9 presets.

Are those presets able to perform most functions?

I'd like to be able to start playing one of my favourites with one of them

Jeff07971
2018-04-15, 13:57
I'm running squeezelite on picoreplayer on a raspberry pi 3 with a hifiberry amp 2.
What are the keyboard controls and how do I configure them?
Is it in squeezelite or picoreplayer?
I want to butcher a wireless keyboard and make a controller with pause/play next/last track and volume using arcade machine buttons.

Ryan

Also, what thread should I put this in?

Squeezelite is the player
Jivelite is the User Interface Screen (UI)
PiCoreplayer is the "System"

Have you got a screen attached ?

ryangodammit
2018-04-15, 14:02
Squeezelite is the player
Jivelite is the User Interface Screen (UI)
PiCoreplayer is the "System"

Have you got a screen attached ?

No, trying to go screenless.

I've got a prototype working utilizing a butchered wireless keyboard and arcade machine controllers.
Volume, track advance play/pause and power all working. I just want to figure out a way of making a favourite play with one touch. I'm assuming that will be through using play_preset and set_preset.

I'll get there

Jeff07971
2018-04-15, 15:57
No, trying to go screenless.

I've got a prototype working utilizing a butchered wireless keyboard and arcade machine controllers.
Volume, track advance play/pause and power all working. I just want to figure out a way of making a favourite play with one touch. I'm assuming that will be through using play_preset and set_preset.

I'll get there

I thought I'd clear that up for Ralphy et al, I think they thought you were using Jivelite.

I'm not sure if the controls are the same for Jivelite and Squeezelite (I only use Jivelite for my players)

Hopefully they will clarify

Jeff

ryangodammit
2018-04-15, 16:05
I thought I'd clear that up for Ralphy et al, I think they thought you were using Jivelite.

I'm not sure if the controls are the same for Jivelite and Squeezelite (I only use Jivelite for my players)

Hopefully they will clarify

Jeff

I am using Jivelite, squeezelite doesn't have any keyboard control functions.

I'm just trying to get to the bottom of the InputToActionMap.lua file so I can change the set_preset_1 key to a key that doesn't require shift.

InputToActionMap.lua doesn't seem to be in the same place as stated in the instructional post https://forums.slimdevices.com/showthread.php?105117-lirc-rpi-gpio-IR-support-for-picoreplayer&p=883651&viewfull=1#post883651

I have found it in the ./tmp folder and the ./opt folder but have yet not tested changing these ones. Shall I give it a try? Whats the best way of rolling back to a copy of picoreplayer I know I haven't broken- make an iso copy?

ralphy
2018-04-16, 05:42
I am using Jivelite, squeezelite doesn't have any keyboard control functions.

I'm just trying to get to the bottom of the InputToActionMap.lua file so I can change the set_preset_1 key to a key that doesn't require shift.

InputToActionMap.lua doesn't seem to be in the same place as stated in the instructional post https://forums.slimdevices.com/showthread.php?105117-lirc-rpi-gpio-IR-support-for-picoreplayer&p=883651&viewfull=1#post883651

I have found it in the ./tmp folder and the ./opt folder but have yet not tested changing these ones. Shall I give it a try? Whats the best way of rolling back to a copy of picoreplayer I know I haven't broken- make an iso copy?
It's located at /tmp/tcloop/pcp-jivelite/opt/jivelite/share/jive/jive/InputToActionMap.lua in pcp, but it's read only. You need to copy it as I described in that post.

The set_preset_N keys map to HOLDING the function keys FN however the InputToActionMap.lua file only includes a mapping for setting preset 1 with a "standard key press".

To set presets 2-6 you have to press and hold the corresponding function key.

The number keys play a preset, if a value has been set.

Note that although lms supports 10 presets for each player from 0-9 both jivelite and squeezeplay only support setting 1-6 thought the keyboard interface, which is what lirc uses to communicate with jivelite.

ryangodammit
2018-04-16, 15:47
It's located at /tmp/tcloop/pcp-jivelite/opt/jivelite/share/jive/jive/InputToActionMap.lua in pcp, but it's read only. You need to copy it as I described in that post.

The set_preset_N keys map to HOLDING the function keys FN however the InputToActionMap.lua file only includes a mapping for setting preset 1 with a "standard key press".

To set presets 2-6 you have to press and hold the corresponding function key.

The number keys play a preset, if a value has been set.

Note that although lms supports 10 presets for each player from 0-9 both jivelite and squeezeplay only support setting 1-6 thought the keyboard interface, which is what lirc uses to communicate with jivelite.

Thanks Ralphy, that should still work for me.

Am I able to set a preset to play a favourite?

ralphy
2018-04-17, 04:19
Thanks Ralphy, that should still work for me.

Am I able to set a preset to play a favourite?

Not directly that I'm aware. Just the obvious, start playing the favourite and then save it as a preset.