On hyperbolic once-punctured-torus bundles IV: automata for lightning curves