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
Table of Contents
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.
I’m going to start with the Get categories action. This action returns the 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
The second action uses:
json(base64ToString( first(outputs('Compose'))?['$content']))
And now we get proper json returned:
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']
And now we will get back our events:
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.
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.