I just pushed out an update to my "Reef-pi script utils". It includes a 'reef-py.py' command that provides a CLI for the API calls . It tries to mimic the reef-pi db command as much as possible. It also has full Bash completion support, to assist with available options and configured reef-pi ids. It can do some simple value extractions, pretty-print the JSON, or you can pipe the JSON into jq for more advanced options.
Examples:
reef-py.py show temperature_current 2
reef-py.py show ph_readings 7 --value current --last value
reef-py.py list timers --pretty
I use it to get the current pH, temperature and time for an OLED display for my tank.
Script utilities for the Reef-pi reef tank controller - tmbarbour/reef-pi-script-utils
github.com