span8
span4
span8
span4
Note: Your FME Server will need to be externally accessible for this work.You will need to make sure you have an input bit before a cloudBit in the circuit.
For a video demonstration,see thetransformer documentation.
littleBits has an API,which allows users to set up a webhook for their littleBit.This allows the device to publish a message about an event to a endpoint URL that the user provides.
For use with FME Server or FME Cloud,this could be the Topic POST URL.To access the Topic POST URL,create a topic by navigating to Notifications > Topics > New in the web interface for FME Server.To avoid conflicting topic names,add .
Expand the Advanced section.This will allow you to see the two different POST URLs.For this example the ‘Message as Subscriber Content' URL will be used.The POST URL will be in this format:
http(s)://: /fmerest/v3/notifications/topics/ /message/subscribercontent?fmetoken=
In a blank workspace add a Creator,littleBitsConnector and a Logger.
To register the URL endpoint with littleBits,the POST URL copied from the FME Server Web UI needs to be set as the Server WebHook parameter inside the littleBitsConnector.Set the littleBits action to createPublication,and ensure the correct Device ID and Access Token is set.
Run the workspace and check the log file to ensure it has been set up correctly.
In the FME Server Web UI start monitoring the topic you created at the beginning of this exercise.When an event happens on the littleBits a topic message should be visible in the topic monitoring.
Every time you trigger an input - press a button,make some sound etc this will send a JSON message about the event to all registered endpoints for that cloudBit.
Posting to the littleBits cloudBit
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 |Legal