Get into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 spacex OHOU 5UVIYQ unsplash

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 tohe key that was emailed to you.

EONET by Nasa Connector

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

Get into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 image 1

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

Get into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 image 2

The second action uses:

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

And now we get proper json returned:

Get into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 image 3

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 into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 image 6

And now we will get back our events:

Get into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 image 5

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.

Get into Space with Power Automate and the EONET by NASA connector Microsoft Office 365 image 4

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.

Leave a Reply

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

%d bloggers like this: