The next question is "Serial port". However, as is stated in at least one of your web pages, no modern MACs have a serial port. The Web page "Connecting JMRI to a Digitrax DCS240" says in its first ...
This section explains exactly how to run the end-to-end pipeline: JMRI → Python → AWS S3 → Rules + Isolation Forest → SNS/CloudWatch Alerts, plus automation and testing. Keep your .env secret. bashsrc ...