Some form of scripting or submitting API commands to OctoPrint. Otherwise, you're going to have to be more specific. Pretty sure you can emulate a keyboard with arduino, and if so you could use the USB Keyboard plugin.
The API is documented at REST API — OctoPrint master documentation. I've made bash scripts that turn the printer on, connect octoprint to it, send GCODE via the API to the printer using curl, and in a different context, sent data from a sketch to a REST API, so this can be done.
Just curious here what sort of life GCODE stream yo would want to generate
Thanks. I am using sensors to get data from the body with an arduino. looking to import that data to octo print to print live as the data changes. is there a simple way to do this without going online? I am looking to hire someone to make this happen.
simple? Depends on the details. But an ESP8266 flashed with a suitable Arduino sketch can read all sorts of sensors if those sensors use a supported protocol and it can transfer data as GET or POST, which is how you talk to the OctoPrint API. No need to go via anything external, the mcu and the computer with OctoPrint would need to share a WLAN. Please PM me in case you like to talk more specific.
How do I PM? I have hooked up arduinos to different sensors and successfully gotten the data packets. Just don't know how to put it into OctoPrint and make a print. I would really like to talk to you more about this!