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.

Related Posts

Leave a Reply

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