-
-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add passive Flask-based sensor that echoes input #3667
Conversation
|
||
self._log.info('Listening for payload on http://%s:%s%s' % | ||
(self._host, self._port, self._path)) | ||
self._app.run(host=self._host, port=self._port) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use threaded=True
for Flask app, otherwise it will block on 1+ requests,
see similar: StackStorm-Exchange/stackstorm-activecampaign#3
If threading is not enabled, then it will block when there's more than one request. See similar: StackStorm-Exchange/stackstorm-activecampaign#3
@warrenvw looks like the trigger name dispatched in the .py file doesn't match the trigger definition in the YAML? |
So I guess Flask is already installed. How can I install my requirements for a sensor? Should I make a pack? |
@NikosVlagoidis Regardless of requirements, yes, your sensor will need to be in a pack, usually your own. That pack should have a |
thank you, sir. |
Tried to use that inside a Docker container. Flask complains. Port must be an integer. Can someone confirm that? |
Did you try changing it to an integer? Did that work?
…On Sun, Dec 17, 2017 at 6:11 AM NikosVlagoidis ***@***.***> wrote:
Tried to use that inside a Docker container. Flask complains. Port must be
an integer. Can someone confirm that?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3667 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADcKBntf_qDeeSct-RaR_pE7KHGdfsV8ks5tBSEDgaJpZM4O03_t>
.
|
Yes changing to integer worked. |
Good to hear. Would you mind submitting a PR with a fix? |
See #3663
A simple, Flask-based sensor that relays the incoming payload to the trigger.
To Do: