span8
span4
span8
span4
The littleBitsConnector transformer has an action allowing a user to 'writeToDevice'.This uses the littleBits API to POST a JSON message to the cloudBit,turning on an output bit that follows the cloudBit in the circuit.
Within the transformer,you can choose to send an output percentage and duration,which will control the event on the connected bits.
The percentage out would control LED brightness,motor rotation or speaker volume.
The duration is in milliseconds (ms),and controls how long an event lasts.
Open a blank workspace and download the littleBitsConnector transformer to the canvas.Connect a Creator transformer before the littleBitsConnector - this will send one feature to kick off the process when the workspace is ran.
Open the littleBitsConnector parameters and choose the action ‘writeToDevice'.The required parameters for this are: littleBitsAccessToken,DeviceID,Output Percent and Output Duration.
When the workspace runs,every feature entering the transformer will trigger an event on the littleBits.You may want to increase the 'Output Duration' to give a greater chance of seeing or hearing the event.
Test different output bits on the littleBits to see what happens.
When the workspace is run,you should see an event on the output littleBits.This will depend on what bit follows the cloudBit.This could be a LED lighting up,sound playing,a motor moving,etc.
FME Server as a WebHook for littleBits
Publish a littleBits workspace as an FME Server Workspace Subscription
Streaming features from PostGIS to FME using WebSockets
HTTP POST Requests to FME Server from Node.js
Streaming features from PostGIS to Amazon SQS - Process in FME
© 2019 亚搏在线Safe Software Inc |法律