Adding Weather Data - Life after WeatherUnderground


#1

I am looking at a new service from Particle called Particle Rules Engine - which is a managed implementation of NodeRed. One of my early efforts will be to use this service to add weather data to the hourly data uploads from my devices. I am looking auto using Dark Sky which offers micro-forecasting so I can put a fair bit of (real or imagined?) precision into the data.

So, here is the approach -

  • Particle Rules Engine - Node Red
  • Ubidots Node Red plug-in
  • Dark Sky plug-in
  • An injector to kick off an hourly update

It looks like this:

I have tested this and I can receive the data in Ubidots which looks like this:

So far, so good. Here is where I need some help:

  1. Can the lat and long be added to one of the other values (such as temp) as “context” so I can use the Ubidots map widget?
  2. Some of the data is textual, such as “detail” which is a one word description of the weather. How can I capture this. Context again?

Even for folks that don’t use Particle, this approach using Node Red seems like a very useful way to add weather context to Ubidots data.

If there is a better way of doing this, I am all ears.


#2

Greetings @chipmc, answering your questions:

Can the lat and long be added to one of the other values (such as temp) as “context” so I can use the Ubidots map widget?

Yes, if you send your coordinates to another variable different to position, you must set the variable to retrieve coordinates values from at the device view:

With this, you will not have issues when you attempt to create widgets.

Some of the data is textual, such as “detail” which is a one word description of the weather. How can I capture this. Context again?

Yes, you should use the context, please refer an example here

All the best


#3

OK, so it looks like I need to do a little more work in Node Red.

  1. I need to take the JSON payload from Dark Sky and pare it down to just the data points I want.
  2. I need to pick a “key” numeric variable - such as Temp and - using Node Red and a little JavaScript - add the latitude and longitude as “context”. The map widget will then key off that variable
  3. As I also want that detail descriptions which is text, I need to select another numeric variable - such as Humidity - and add the description as context there too.

Thank you for the link and the suggestions. I will keep you all posted on my progress.

Please know that the Ubidots NodeRed plugin-in is valued.

Thanks, Chip


#4

Hi @chipmc, thanks for your comments. Let us to know your project advance and if any assistance is required, just let me here or in the embeded chat a note and we will be glad to help you as much as we can.

All the best