Download the tide times from a remote RSS service and convert them in a short format for sending as a text message to radio or SMS.
This flow shows how to send a request to a remote service, in this case an RSS feed from the http://www.tidetimes.org.uk website, and to filter/parse the data into a short format suitable for sending as a text message to a radio or mobile phone. An example use might be to send a text message to all radios users of a given seaside resort every morning letting them know the tide times for that day.
1 - inject
In this example we need to click the inject nodes buton whilst in the workflow editor to trigger the flow. However you could configure the inject to automatically trigger every day at say 7am.
2 - Tide Times [http request]
This node is configured with the URL of the tide times RSS feed for our location, in this case Southampton. When this node receives the input message from the inject node it makes a request to the given URL and returns the data as a payload. RSS feeds are based on the XML format.
3 - xml
This node converts the raw RSS/XML data into a format the gateway can work with.
4 - Get tide times [function]
5 - debug
The debug node lets us see the result in the debug sidebar. You could of course opt to add a text node here to send the tide times out to a radio group for example.
6 - Fetch tide times... [comment]
The comment node can be double clicked and once open will show some notes about the flow. It’s a good idea to use comment notes in your flows to record how a flow works.
How to customise the location
In order to customise the flow to work with your location, you’ll need to change the URL in the http-request node.
To download any files, please log on or register
Download Tide times UK flow
All Flows, sample applications and the like are provided only for your convenience and may be superseded by updates. You are responsible for ensuring the safety and fitness for purpose of any solution for a given, implied or expressed. SMC LTD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESSED OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. SMC Ltd disclaims all liability arising from this information and its use.