GadgeteerZA

Bitfocus Companion buttons can show status info from OS commands or OPNsense firewall on Stream Deck


Listen Later

This video will help if you need to execute various OS commands from a Stream Deck and you want to have your buttons show what the status is of what was executed. I demonstrate how a button that toggles the mute status of a microphone, or the speakers, can change the button between green and red colours to indicate the status.

The only proviso is that there should be an OS command that can query the status of whatever you want to monitor.

A further example shown uses a curl command to fetch information via the API from OPNsense to display the OPNsense firewall temperature and disk space used on the Stream Deck. This could be expanded to use any of the other available API functions too.

So whilst having some connectors provided by Bitfocus and the community, there is no need to be limited to only having those to use on Bitfocus Companion. Using script files and curl commands, can open up a whole new world of possibilities.

If any other Stream Deck app (or any app) can execute OS commands and do something with the feedback, this video may also be of use for that type of scenario too.

This video follows on from my first video I did about Bitfocus Companion. It is worth watching the first video if you want to get a better overview of Companion and how it works with some existing connectors to VLC, Home Assistant, opening apps, etc.

CHAPTERS:

Intro 00:00

Demo Button Status 01:46
General Approach 04:26
Companion Button Settings 06:19
Setup Custom Variable 08:19
Trigger to Update Status 08:52
Button Feedback Display 10:12
Script Files 13:06
Volume Levels 16:57
OPNsense Disk Space Button 21:32
OPNsense Temp Alert 22:40
Trigger Alert Page for Temp 23:50
OPNsensetemp Script File 25:26
Outro 30:56

LINKS:

Bitfocus Companion https://bitfocus.io/companion

My previous Companion video https://www.youtube.com/watch?v=zakLajaUZYY
mic_muted.sh https://links.gadgeteer.co.za/micmuted
speakers_muted.sh https://links.gadgeteer.co.za/speakersmuted
speaker_volume.sh https://links.gadgeteer.co.za/speakervolume
opnsdensetemp.sh https://links.gadgeteer.co.za/opnsensetemp
OPNsense API - https://docs.opnsense.org/development/api.html

FOLLOW ME:

My daily tech blog at https://gadgeteer.co.za/blog

I post to all these social networks at https://gadgeteer.co.za/social-networks-i-post-to/
Videos are posted to YouTube at https://www.youtube.com/@GadgeteerZA, Odysee at https://odysee.com/@GadgeteerZA and Peertube at https://video.hardlimit.com/c/gadgeteerza/videos

#technology #streamdeck #bitfocuscompanion

...more
View all episodesView all episodes
Download on the App Store

GadgeteerZABy