Hi,
I am trying to connect grasshopper to a 3D printer running klipper/moonraker
I’ve read “C# call REST client with x-api-key within grasshopper” and used some code from there for a http get request and it works. The 3d Printer / Moonraker returns a json object which is parsed with jswan. In this way the current position of the extruder can be retrieved in GH as a point…
Unfortunately the whole definition is quite messy and I have little understanding of the c# script; that’s also why the response is stored in a global var. in python script
I would like to combine all this functionality ( sending request, storing the response, deserializing json object) in one c# component but have no starting point how to get there…
Is there already something out there that can do this? I image post/get request are quite common / as is json… or any other tips how to do this -
Thanks!
httprequests.gh (18.5 KB)