Flow
Flow Tips:
Test and debug your code in your Sandbox environment
Play around! This is your development and testing playground. On your sandbox you can debug your flow and stabilize it.
Sandboxenvironment
Deploy your stable release to a separate environment when you're happy with it
Scale out with ease! Create highly available environments with a click of a button. Navigate to the Run section on your sidebar to create, update and delete existing environments.
Environmentsmanagement
Easily access your node documentation and usage information
Read more about your node of choice, its documentation is accessible directly from the canvas. Just press the Info tab located on the canvas bottom bar.
Nodeinformation
Use the debug node to print to the canvas debug tab, console or both
See your flows output by accessing the debug tab located on the bottom bar of the canvas. You are also able to see your container's log by navigating to the console tab right next to it.
Debugyourflow
Some canvas changes require a full deploy
Changes on canvas that will cause creation or deletion of endpoints will trigger a full deploy on your next run request. Node changes that are expected to cause a full deploy will appear as highlighted on your canvas.
Fulldeploy
Confirm
Flow Tips:
Run your environment on distributed geo-located regions
Decide whether to run on a multiple or a single region mode. Control the number of running instances per each environment. Choose the best configuration for your app.
Deployonsingleormultipleregions
Access Logs, KPIs and usage metrics from the environment dashboard
Click on your environment to access important information such as logs, KPIs and metrics. From here you can also view important data such as your container's uptime and status.
Environmentdashboard
Easily communicate with your application via the endpoint of your choice. HTTP, TCP, UDP, Websockets - Everything goes!
After a successful deploy, you will be able to find your endpoints information in your environment dashboard.
Environmentendpoints
Perform advanced actions on your environment
From your environments dashboard you can stop/start your environment or a single region instance. From there you can also control the number of running instances and update the running release of your choice.
Manageyourenvironment
    1-M2X-Data-Forecaster
    This flow inserts weather data to M2X.

README.md

M2X Data Forecaster

This flow inserts weather data to M2X.

What does this flow do?

This flow retrieves weather data in XML format every 30 minutes from the National Oceanic and Atmospheric Administration (NOAA) web site. The data is parsed to a JavaScript object and is inserted into the RabbitMQ queue. The data is then retrieved from the RabbitMQ queue, and inserted to the M2X using a ‘postMultiple’ command. If the data is inserted successfully, ACK is sent to RabbitMQ queue.

Principal nodes

  • inject
  • http request
  • XML
  • rabbitMQ out
  • rabbitMQ in
  • function
  • M2X
  • json
  • switch

What do I have to do before using this flow?

In order to use the M2X node, you must first log in to the M2X environment and verify the API Key and the Device ID.

In addition, you must define a data source blueprint with the following two streams:

  • Temperature
  • Humidity

How does this thing work?

  • inject node - Triggers the http request every 30 minutes.
  • http request node - Sends a GET request to retrieve weather data from NOAA.
  • xml node - Parses the received XML to a JavaScript object.
  • rabbitmq out node - Inserts the data into the RabbitMQ queue.
  • rabbitmq in node - Receives the data from the RabbitMQ queue.
  • function node - Extracts the temperature and humidity and prepares a ‘postMultiple’ command to insert the data into M2X.
  • m2x node - Connects to M2X and inserts the data.
  • json node - Parses the answer that was returned from M2X to object.
  • switch node - If ‘success’ is returned, sends ACK to the RabbitMQ queue. In case of failure it sends an error message to the debug node.
  • function node - Prepares the ‘acknowledge’ command which is sent to the RabbitMQ queue when inserting the data is successful.

Some useful things to know

This flow uses the following links:

M2X:

https://m2x.att.com/developer/documentation/overview

RabbitMQ:

http://www.rabbitmq.com/documentation.html

NOAA:

http://w1.weather.gov/xml/current_obs/KNYC.xml

Hosted RabbitMQ credentials:

User name: guest

Password: guest

What it looks like

data-forecaster

Terms of Use Privacy Policy Contact Us

© 2019 AT&T Intellectual Property . All rights reserved.

AT&T, the AT&T logo and all other AT&T marks contained herein are trademarks of AT&T Intellectual Property and/or AT&T affiliated companies.

See Details ▸

About

Features News AT&T Developer

Develop

API Documentation Help Forum FAQ