I have 2 12v fans cooling my pi, obviously they take power direct from 12v source not the pi. I want to turn them on/off with an external relay controlled by a gpio pin, as this is a battery powered remote rig.
I can code it myself in python or nodejs, but am thinking there must be a console applet someone already created to just allow one to toggle?a pin high/low. Console or xterm preferred as I vnc into the pi, but web interface ok too.
Thanks, Randy KN4YRM