You can absolutely achieve this. Chatgpt can even produce simple integrations. This was my prompt:
Write a python program which connects as a subscriber to a zeromq publisher, and toggles pins on a raspberry pi model 3 b+ based in the text messages received. The zeromq publisher implements openstint decoder protocol (URL REDACTED). The interresting messages are "Passings", which start with a letter "P" and has the following charactersistics:
```
P <decoder_timestamp:uint64> <transponder_type:string> <transponder_id:uint32_t> <rssi:float> <hit_count:uint32_t> <evm:float> [other future parameters]
```
Example messages:
```
P 1618706341 OPN 1615544 3.50 64 0.30 P 1618714251 OPN 1615544 3.08 40 0.25
```
Write a program that identifies transponders ids specified in a python dictionary, and sets the specified pin TRUE for 1 second whenever the transponder is detected, then resets the pin to FALSE:
```
TRANSPONDER_PINS = {
'1615544': 4 # transponder_id, GPIO pin
}
```
Use BCM pin numbering on the raspberry pi.
Both the chatgpt prompt and the generated code (I added minor modifications only) are available here:
gist.github.com zsellera/5b5b2cb178dd1cdd0c35bc6f06a974b8