Recording Time Farmware

Hi forum,
I am trying to find a good way to communicate between the FarmBot raspberry pi and my own raspberry pi. My group wants to find a way to record how long the GPIO pin is set to high. Can this be done through calling the user environment? Any advice will help, thank you.

Just thinking out loud: You could use openhab to trigger sequences in FB through MQTT and measure the time, that the pin is set, inside openhab…