Pioreactor / pioreactor

Hardware and software for accessible, extensible, and scalable bioreactors. Built on Raspberry Pi.
https://pioreactor.com
MIT License
101 stars 9 forks source link

Expose a `log` endpoint in /unit_api/ for CLI jobs to use #522

Closed CamDavidsonPilon closed 1 month ago

CamDavidsonPilon commented 1 month ago

Ex: it's expensive for something like pio log to create a MQTT client. Why not just post to /unit_api/.../log and this fires off the MQTT log message.

OTOH, often the pio will create a logger, which already connects to mqtt...