MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.34k stars 396 forks source link

🚀 | Execute custom commands #913

Open Piehti opened 4 years ago

Piehti commented 4 years ago

Hey!

I'm just adding some extra features to my phoniebox and wanted to add some own command. Where can I find the hooks for the %YOURCOMMAND% variables in rfig_trigger_play.conf.

I'd just like to change some to my favours (lights, videos, pictures... but without MQTT and stuff).

It's specially for video-playback, web-gui showing and stuff.

Best regards Peter Found this: https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/717

Ps.: You propably want to add 3 custom fields for custom command on systemlevel in the webinterace in further versions.

that-coding-human commented 3 years ago

@Piehti , you mentioned:

Ps.: You propably want to add 3 custom fields for custom command on systemlevel in the webinterace in further versions.

What do you mean with "3 custom fields for custom command"? Can you elaborate on it a little more? Looks like you already have a clear idea how this should work. I am currently thinking about a proposal for how to achieve this as well.

s-martin commented 4 months ago

For anyone interested in implementing this, you should target the new V3 (future3 branches).

V3 uses RPC commands (see here), which could be extended for the desired functionality.