meltaxa / musicfig

A Raspberry Pi jukebox that uses LEGO Dimensions and Minifigures to play Spotify or MP3 tracks.
https://musicfig.com
MIT License
22 stars 9 forks source link

System commands via NFC tags #3

Closed zork32 closed 4 years ago

zork32 commented 4 years ago

Hi, Is it possible to execute system commands via NFC tags? For example, an NFC tag for system shutdown or volume up / down?

meltaxa commented 4 years ago

Hi @zork32. Checkout branch offline-fix-and-command-feature for the feature. Example usage:

043fd8daa74881:
    # Run a system command.
    name: Unix name
    command: uname -a

The command key can also be used in conjunction with the spotify or mp3 keys, as seen in the tags.yml-sample file.