PollingSensor with Proxy Support

Hi all,
I need to create a PollingSensor to query a remote API once per hour and then action on the results of that API call.

Any suggestions on how to get the sensor working through a proxy server?
Is the Python Requests module used for http calls? Can I just add the proxy details?

Sure, you absolutely can do that.
Because Sensor Sensors and Triggers — StackStorm 3.1.0 documentation is Python-based, - just codify the required logic using requests.

Ah, of course.
The Sensor class doesn’t do the request itself but it’s the code that I write within that does all the hard work.

1 Like