As far as I understand, I try to replace the sensor part in AutomatonExample.py by ReporterFormatter.py suggested by Paul Bender (second post in this topic). I am going to do that but being the first instance ever I write a script, I reserve the right of failure.
Here is another script you can look at:
This is a modification of BackAndForth.py that makes decisions based on a reporter output. ?In this case, the script makes a decision about which of three tracks in an inglenook configuration to place a car on.
The reporter I was using for this is an RFID reporter, but the basic idea is the same.
Paul