Weather Company Data for IBM Bluemix

We’ve been having some beautiful weather in the Bay Area this summer. And what better time than now to play around with the new updates to the Weather Company Data for IBM Bluemix service available in IBM Bluemix. Formerly known as Insights for Weather, the weather service offers even more endpoints and capabilities.


In the Weather Company for IBM Bluemix Node-RED lab, I show how to use several endpoints: almanac, alerts, forecast, current observations, and time series.


The complete flow can be imported into Node-RED.


To make this demo versatile, I’ve also added the option in the Node-RED flows to return both HTML webpages and the JSON returned from the weather service.

Many of these Weather Company Data API endpoints offer options for both GPS coordinates (latitude/longitude coordinates) and postal codes inputs. I have found that postal codes are easier (and more human-readable) than the GPS coordinates.


During a recent IBM Hack Night around the Weather Company Data APIs, I was inspired with new ideas:

  • finding the best vacation location for weather similar to where you live
  • mapping and correlating diseases with weather conditions
  • getting the weather texted to you before you leave your home in a high-rise building
  • finding the best hiking locations

If you’re interested in the same lab, but in Node.js, you can find a Node.js version in my GitHub repo here.

Posted in Node-RED | Comments Off on Weather Company Data for IBM Bluemix

Analyzing Twitter User’s Personality in Node-RED

Have you heard that Twitter timelines are public and that anyone can data mine what we tweet. From understanding what you might buy, to understanding how a competitor’s product is being talked about, to what’s trending, a Twitter timeline can be full of rich data ready to be analyzed.

Did you know you can also analyze your personality based on the tweets in your timeline? IBM has built a couple of sample applications that analyze a variety of things with the results of the Watson Personality Insights service available in IBM Bluemix. From matching your personality to a celebrity with Your Celebrity Match, to analyzing what type of designer your personality matches with Roztayger, Personality Insights offers scores of the Big 5 Personality traits (Openness, Conscientiousness, Agreeableness, Intro/Extroversion, and Emotional Range) and subcategories that can be used in your own applications to add additional data points about your users.


Using Node-RED to quickly prototype the application, I created a Node-RED lab that analyzes your personality using the tweets. It uses the Insights for Twitter Bluemix service and the Watson Personality Insights service to retrieve and analyze the tweets.


You can either use an existing Node-RED application, or deploy a new Node-RED starter boilerplate application in IBM Bluemix. Bind the Insights for Twitter service and Watson Personality Insights service to your application.



You can choose to walk through the lab and add the nodes manually, or import the whole flow by selecting Import -> Clipboard from the menu in Node-RED.


There are several ways to use this application. You can choose to analyze a specific user’s tweets, using the query parameter q=from:dothewww. You can also search for tweets using a search term and analyze the collective personality of matching tweets.

Both options offer two formats of the data returned: JSON output that can be used in third-party applications and a basic HTML webpage that can be extended or included in a webpage.



So…where does your personality take you?

Posted in Node-RED | Comments Off on Analyzing Twitter User’s Personality in Node-RED