You now have a working real-time stream of bicycle data. Next, you will integrate the data from a free weather API, adding current and forecasted weather data.
Create a free Visual Crossing account
Visual Crossing is a leading provider of weather data and enterprise analysis tools to data scientists, business analysts, professionals, and academics.
Go to the Visual Crossing sign up page.
Follow the instructions to create your account.
Go to the Account page to copy your key.
Keep it safe for later.
Weather real-time stream
You can now deploy the VisualCrossing connector from the Quix Code Samples:
Search the Code Samples for
weatherand select the
Nameas it is.
outputis set to
Paste your API key into the
api_tokenfield. This is the API key you obtained from your Visual Crossing account page.
The precompiled service is deployed to your environment and begins running immediately.
Visual Crossing usage limitation
The Visual Crossing API has limits on how much data you can access for free and the real weather only changes in real-time (this means slowly).
The free Visual Crossing account is limited to 1000 records per day so in order to prevent your account from being rate limited, the connector is coded to consume data every 2 minutes, however, you can trigger collection of new data by restarting the service as needed. You will do this several times throughout this tutorial.
At this stage you have two services running.
One is publishing
New York CitiBike data to a topic called
bikes-topic and another is publishing
Visual Crossing weather data to a topic called