I am doing a research project, and currently using OctoPrinter to connect a 3D printer. What I want is to acquire the data from the 3D printer via OctoPrint, then output the data to a cloud platform.
Therefore, I need to find the database or calling APIs to get the result of a JSON file to help me find the required data. I have tried access the data from the front-end and found that communication is generally used JSON for data transfer. It is temporarily determined that the front-end communication logic is implemented in 'client.js' file.
Now I need to see how the plugin source code is obtained, which is equivalent to our source code, and I need to know how to collect the corresponding data. Changing the corresponding text or interface, and modify the existing developed plugin seems to be a good idea.
I want to figure out three questions:
- Am I in the right direction? To acquire the data via JSON.
- How could I obtain the needed data, then use, demonstrate, analysing it in my cloud platform?
- Which solution is much quicker to finish this task for a beginner level programmer?
Can anyone help me with that? I do not have a strong computer science background and codings are not looking straight to me.
I appreciate your help and time.