Very simple octoprint plugin that turns on a specified GPIO pin when the heatbed or hotend is turned on. This is a very simple initial version of the pluging. It has been tested on OctoPrint Version 1.8.4. If you would like to enhance this pluging, simply send a pull request and I will encorporate your change ASAP.
Install manually by copying the following url into the octoprint install new plugins "from URL" input box:
https://github.com/jchancel/OctoPrint-Heatled/archive/master.zip
Enter the Board ID (this is different from the BCM name) for the pin you wish to enable or disable when hot end or bed is turned on or off.