Octoprint-Filament-Reloaded icon indicating copy to clipboard operation
Octoprint-Filament-Reloaded copied to clipboard

Question about API to return filament status

Open xh3dx opened this issue 4 years ago • 0 comments

Can you please better explain how this works? I have googled every which way i could think of and can't for the life of me find anything about this portion, nor how it works

I've even tried to just put get /plugin/filamentreload/status into the command line and it just returns an error.

An API is available to check the filament sensor status via a GET method to /plugin/filamentreload/status which returns a JSON

{status: "-1"} if the sensor is not setup {status: "0"} if the sensor is OFF (filament not present) {status: "1"} if the sensor is ON (filament present)

xh3dx avatar Mar 30 '20 16:03 xh3dx