I was very excited to find the "Interactions" in HiFiBerryOS. I'd like to notify my home automation system when the music source changes (starts/stops). Unfortunately, it doesn't seem like the "Actions" don't support scripts or webhooks. Is there any way to hack in the support to call a shell script? I suppose I could build an Arduino that received the message via the serial port and relayed it to the home automation server, but that seems incredibly over-engineered.
5 comments
-
HiFiBerry team Today there is no such thing. However, if you want to do a bit of Javascript programming, we're open for contributions for new interactions.
-
Zane Claes I could be convinced :) Could you point me at a relevant example of how actions are defined (Javascript code) and registered (made available to the UI & invoked)?
-
HiFiBerry team There isn't really a documentation for this today. Let me come back to you in a few days. I'll see what we can do.
-
Zane Claes No rush. I'm also comfortable with a few links to github source code lines and a relevant sentence or two (if necessary). Just something to point me in the right direction, without needing to understand the whole project's architecture.
-
Torsten Beyer You could always write a simple plugin that registers for MetaData - that way you'll receive song info and play/pause/stop info. I've done that to let my magic mirror know which song is playing.