Get into Space with Power Automate and the EONET by NASA connector

Have you tried the EONET by NASA or also known as Earth Observatory Natural Event Tracker connector in Power Automate yet?

First steps into space

Visit the NASA API site to get your api key. Within minutes you will receive youyr key. So if you don’t then you might want to check your junk folders.

Then you can add an EONET By Nasa action to your flow and the first time you do this you will have to supply the key that was emailed to you.

NASA connection
NASA connection

I’m going to start with the Get categories action. This action returns the categories of the events.

Get Categories of the events
Get Categories of the events

You might notice in the above that i’m getting text that looks like json returned rather than json.

I needed to steps to sort this out.

Two compose action. The first compose takes the body of the previous action but with [ and ] around it in text

Add [ and ] to create an array
Add [ and ] to create an array

The second action uses:

json(base64ToString( first(outputs('Compose'))?['$content']))

And now we get proper json returned:

formatted JSON presented in Compose actions
formatted JSON presented in Compose actions

Now we can use the above result from the second compose to get our events,

Getting events for categories

To get events for each of the catefgories, all we have to do is set the Apply to each to use the following code:

outputs('Compose_2')?['categories']

and in the Category

items('Apply_to_each')?['id']

Get events by category
Get events by category

And now we will get back our events:

No events may be returned
No events may be returned

Ah no events happening at the moment.

But as I step though the different categories, we have an event in the category seaLakeIce. We have an Iceberg A78 there.

Events returned
Events returned

Other categories that events are reported for are:

  • Drought
  • Dust and Haze
  • Earthquakes
  • Floods
  • Landslides
  • Manmade
  • Sea and Lake Ice
  • Severe Storms
  • Snow
  • Temperature Extremes
  • Volcanoes
  • Water Color
  • Wildfires

Ok, not really a space event, but still , this connector is nice to get all sorts of event reported wihtin your flow or Power App.


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Avatar of Pieter Veenstra

Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like. I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide. For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions. SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/ Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/ You can contact me using contact@sharepains.com

Related Posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains

Subscribe now to keep reading and get access to the full archive.

Continue reading