This is a first in a series of 5 iPaaS Puzzles we are posting in the next couple of weeks. Don’t we all love a little Puzzle, even more if it helps us keep our webMethods skills sharp. If the solution is practical and immediately applicable to the benefit of the environment even better!
1st iPaaS Puzzle: Local Drought Water Calculator
Picture from SWR Aktuell
My mother recently pointed out to me that in Freiburg, citizens are adopting trees and watering them in their neighborhoods. (Article is in German. English translation via Google).
Like many areas of the world, Freiburg is living through one of the worst droughts in recent memory. It is so bad, that concerned folks in the cities are adopting trees to prevent them from dying, giving them up to 100 liters of water when needed.
On some days there was some rainfall, often overnight when you have little idea of how much actually came down. Fresh water is precious, you want to minimize how much of that precious water you need to use to safe your tree.
Our First iPaaS Puzzle Question to be solved is:
How much additional water should the people give their adopted trees on these days of light rainfall?
There are public APIs that you can call to find out how much rain came down the last 24 hours in your area.
Create an integration that calls an API to find out the amount of rain that has fallen, then calculate how much water still needs to be flowing for the tree to survive and post/return that result.
Stretch goals:
• Allow using city, country, and/or zip code instead of longitude and latitude as input parameters.
• Take into account the weather for the current/next days (or week) to determine whether additional water is really needed.
By the way: once you have the results from the above iPaaS Puzzle, why not connect it to your garden watering system to dial down the watering to exactly what is needed on rainy days.
Data Sources
In the UK there is the following environmental data API that you can call to get rainfall data for specific weather stations, or coordinates over given time periods:
- UK Rainfall API reference
- Australia BOM - Australian Bureau Meteorology API (Overview, SDK Documentation & Alternatives) | RapidAPI
- Poland Dane publiczne
- France: Here is a curl example to get rainfall for Paris curl "http://webservice.meteofrance.com/rain?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaH
- https://mausam.imd.gov.in/imd_latest/contents/api.pdf - APIs for India but needs permissions to access
- APIs for Canada: MSC GeoMet API and geospatial web services - Canada.ca
- South Africa’s rainfall measurements are here https://saas.afrigis.co.za/rest/2/weather.measurements.getByCoord/myapisamples/bBFMNngfUSqQ80kFWUwmihszdPs/?location=-25.808589,28.255833&location_buffer=10000&station_count=3
- Deutschland: Deutscher Wetterdienst API - OpenAPI Documentation (bund.dev) Have not checked API call gets you the rainfall of the last 24 hours.
Please find and post similar data sources for your country in the comments. Let’s turn this map blue!
Submissions
Please post your solution to the puzzle as replies to this thread.
Use the “blur spoiler” tag to hide your results so that folks must click on your solution to indicate they want to see it!
iPaaS Puzzle Show
Every Friday for the next 5 weeks, starting on the 9th of September, we are hosting an iPaaS show you hopefully join us to explain your thinking behind your interesting solution.
We will briefly talk about the different solutions for this week’s Puzzle, what to learn from them, and introduce next week’s iPaaS Puzzle. Hope you can join us. We will kick it off on the 9th of September with two iPaaS Puzzle Shows and then alternate from week to week between APJ/EMEA time 8am CEST and EMEA/Americas 5pm CEST.
We are officially kicking off the iPaaS Puzzle during our webMethods Get-Togethers:
- APJ/EMEA 8am CEST See webMethods Community Get-Together APJ/EMEA at Software AG Groups International webMethods User Group
- EMEA/Americas 5pm CEST See webMethods Community Get-Together EMEA/Americas at Software AG Groups International webMethods User Group
The 1st iPaaS Puzzle show will be on Friday the 9th of September 8am CEST! and 5pm CEST! Details to come!
Deadline
Just have your solution posted before the iPaaS Puzzle Show on Friday the 9th of September 8am CEST. If you want to be invited on the show, please post your solution by Thursday the 8th 8am CEST.
Prizes
The winners get fame and glory. We want this to be a friendly competition we want to highlight great work, without having to crown a weekly winner.
Suggest a Puzzle
If you have another great idea for an iPaaS Puzzle, please suggest it in this form. It must be a little challenge that is doable within a week and has easy access to the source data needed. If your challenge is geared towards improving our lives, then even better!
If your iPaaS Puzzle suggestion does get selected, we’d invite you to personally introduce it in our iPaaS Puzzle Show and you will receive a wooden Tangram game as a token of our appreciation.
The actual prize may look different!