Can I communicate with Mycodo from the command line or outside the UI?

Yes, there is a REST API (API manual entry) that allows you to interact with Mycodo over your network as well as the Mycodo client that can be executed from the command line.