I think I would put a vibration sensor on the table or window, and just write some firmware to retact the filament, raise the nozzle, and park while the train was going by. And then as soon as...