You can control and monitor the Power Board from the command line using the pocs power command.
For example:
# Display the status for each power channel (relay)
pocs power status
# Turn off the fans.
pocs power off fans
# Turn on fans by relay index.
pocs power on RELAY_2
# See the current readings for all power channels.
pocs power readings
Commands
status
Get the status of the relays.
(conda-pocs) panoptes@panoptes pocs power status
[RELAY_0] weather_station..... ON
[RELAY_1] unused1............. OFF
[RELAY_2] fans................ ON
[RELAY_3] unused3............. ON
[RELAY_4] mount............... ON
(conda-pocs) panoptes@panoptes
off/on
Turn on or off the relay.
(conda-pocs) panoptes@panoptes pocs power off fans
{'relay': 'fans', 'command': 'turn_off'}
(conda-pocs) panoptes@panoptes pocs power status
[RELAY_0] weather_station..... ON
[RELAY_1] unused1............. OFF
[RELAY_2] fans................ OFF
[RELAY_3] unused3............. ON
[RELAY_4] mount............... ON
(conda-pocs) panoptes@panoptes pocs power on fans
{'relay': 'fans', 'command': 'turn_on'}
(conda-pocs) panoptes@panoptes pocs power status
[RELAY_0] weather_station..... ON
[RELAY_1] unused1............. OFF
[RELAY_2] fans................ ON
[RELAY_3] unused3............. ON
[RELAY_4] mount............... ON
control
A different way to control the relays.
(conda-pocs) panoptes@panoptes pocs power control --relay fans --command turn_off
{'relay': 'fans', 'command': 'turn_off'}
readings
Shows a simple bar plot of the most recent power usage statistics for each relay. Probably not actually useful.