Hi, I started exploring labthings as a generic instrument interface tool with a toy project controlling a USB camera, see here: https://github.com/centuri-engineering/olf_control - I find it very promising.
There is something I can't get to work though (not sure if this is a bug or me not doing things correctly):
I don't understand how to pass the arguments to the post method of an Action with a POST request.
With curl, this as no effect (the default of 20 is used):
curl -X POST localhost:7485/actions/average?averages=10
And in Python with requests this as no effect either:
Hi, I started exploring labthings as a generic instrument interface tool with a toy project controlling a USB camera, see here: https://github.com/centuri-engineering/olf_control - I find it very promising.
There is something I can't get to work though (not sure if this is a bug or me not doing things correctly): I don't understand how to pass the arguments to the post method of an Action with a POST request.
With curl, this as no effect (the default of 20 is used):
And in Python with requests this as no effect either:
The post method is defined here and the corresponding
USBCamera
method is defined thereThe app is started with
python app.py
in the code linked above.Any hint appreciated!
Guillaume