The Processor is a component of the WoTKit that lets you create “Pipes” - visual scripts that take data from one or more input sources, process that data in any way, and output that data to one or more sensors and actuators.
Click on Pipes and then on New Pipe.
- If you do not have any existing pipes, clicking on Pipes will redirect you to the New Pipe page automatically.
Add modules to the pipe by dragging them from the Modules component and dropping them on the workspace.
- Each module will have an input dot on top and/or an output dot below
To pipe information between modules, drag the output dot of one module to the input dot of another.
Input:
- Twitter feed - The name of a twitter feed to poll
- Updated every time a new tweet is tweeted by the account
- Fields that will be outputted by this module:
- message - The content of the tweet
- Sensor input - The name or ID of a WoTKit sensor that you have access to (either public, or private and owned by you)
- Updated every time a new datum is posted to the sensor
- Fields that will be outputted by this module:
- value - The value of the datum
- {any other field} - If the sensor has any other fields, they will appear by name here
Threshold Alert - TODO
The input and output to/from the script are in the python dictionaries named called input and output
output['value'] = input['value'] * 2 + 1
Any entry in the output dictionary will be sent as the output of this script
Sensor output - Post the input to the named sensor
Actuator output - Post the input to the named actuator