To find out more about December challenges, see here.

Santa had a rough 2019 christmas and therefore slept until now, where he woke up in Brisbane. He found his reindeer sleigh and is about to take off to his first destination: Bangkok, where he will pick up his assistant Jingle-Bell

Santas problem:
His sleigh is very prone to wind. Therefore he needs to know the exact speed of wind on key points on his journey to Bangkok

Key Points

Brisbane

Port Douglas

Makassar

Palembang

Kuala Lumpur

Bangkok

• Describe how you will find the wind speed (m/s) of the above 6 cities using UiPath. The full solution also describes, how the wind speed will get saved.

• Bonus: The best descriptions will receive additional stars. Be as creative as you can, when you help Santa (you can add pictures, workflows etc.)

• Santa needs you to use the endpoint: https://vejr.eu/api.php?location=London&degree=C in order to be as sure as possible, when we pick up the wind speed (m/s). Try the link with a different city to inspect the syntax.

• Describe your solution. Add creative/best practice to it to score extra stars.

• The solution must include the UiPath activity “HTTP Request” (Get).

Remember

• You can enter both the Beginner and Advanced challenge (5 stars + 5 stars = 10 stars). In order to receive the extra stars, please specify which category, you want to be in (you can’t change it later, so be sure to pick advanced, if you are advanced - hint hint: It will be a very good idea!)

• Adding pictures to your solution is great, when you want to describe and document it to Santa.

Submissions must be posted in this thread no later than the 2020-12-03T22:59:00Z.

17 Likes

Santa can do all by himself, but this year THOR is going to help Santa out! Starting with finding him a windy route since Santa needs good airflow (thick red jacket Santa needs to wear).

Looks like THOR did it, he suggests that Santa should first visit Brisbane, Australia
However, the wind speeds are not reported so well for the other parts of the world today. Only Australia has some wind. May be he will have better conditions going forward. In addition, Santa gets to start at a cooler place today - Brisbane which is only 23 degrees tonight.

THOR presents this CSV report to Santa. Santa specifically asked for CSV format.
Location,Temperature,SkyText,Humidity,WindText
“Brisbane, Australien”,23,Skyet,70,2 m/s Syd
“Port Douglas, Australien”,26,Mest skyet,80,5 m/s Sydøst
“Makassar, Indonesien”,25,Tordenvejr,94,0 m/s
“Palembang, Indonesien”,26,Let regn,93,0 m/s
“Kuala Lumpur, Malaysia”,27,Regnbyger,84,0 m/s Nordvest
“Bangkok, Thailand”,26,Mest klart,66,0 m/s

THOR also found out that the weather search endpoint he used seems to be in Danish, men Santa forstår dansk godt!

Santa looks at this report and is quite surprised at the suggested route. Do you mean I have to wait for better wind conditions? That’s a lot of time to travel in Australia. Are you sure my, Son?

I guess, Santa has to do what he does best, Travel. The Elf’s have already started packing!

Anyways, Santa asked me to submit this as a solution with detailed annotations for Advanced Advent Challenge #1
GET_me_weather_report_THOR.xaml (19.8 KB)

21 Likes

Haha - quality

5 Likes

Dear Santa,

I’ve received your letter in which you are asking for help in order to get wind informations!
You’re in luck, since this kind of task can be easily automated with UiPath!

I’ve also received the Excel you attached to the letter, you can give this to the robot in order to retrieve the informations you want!

Hard to believe, right?!

With that, the robot can extract informations from the table and, for every City, ask to a little Danish friend to GET the wind informations, as fast as HTTP goes!

But sometimes the Request can be little problematic, so it’s better to try and catch some errors, and if occurs go on with the other cities!

So now we have the informations, and with the help of JSONta Claus we can extract the wind status!

But wait… the little Danish friend gave us informations…in Danish!!

And I know for sure that Rudolph and Blitzen can’t read Danish…
So the little robot decided to switch his abilities in case it will be more helpful

and to transform the direction in… arrows!

So now you have your Excel filled with Wind speed and direction, pretty nice!

Wait, what? you don’t believe it’s possible?
Well… dear Santa, you should believe in anything, even if you can’t see it…
But for now, I will show you anyway!
https://youtu.be/qnxyDp79ctk

Happy automation,…and Drive safe!

Main.xaml (34.0 KB)

17 Likes

Super creative

9 Likes

@jeevith - Love the Marvel Cinematic Universe crossover with Thor!

@stefano_negro - Love the extra effort with the holiday spirit messages!

Great work to kick off the Advent Challenges!

7 Likes

Being a newbie I had to research a bit for this one.
My initial approach was to fetch the data using scraping(Now hold on - i’m new to UIPath)…
Instead what I have done feels right - to quote Chandler Bing - “Think of it as the thing that has been missing from…” my code.
Glad to be part of this advent…looking out for more… lots of learning… I think Santa would be happy with the solution

9 Likes

@stefano_negro
Haha, what an awesome post. Forms and a great story. Out of my own curiosity: How do you map the wind integers to the arrows? Looking at both yours and @jeevith xaml solutions could definately teach a UiPath newcomer a lot.

@Indranil_Nag
Welcome to the Forum - a very nice first post What is the Assign (urlString) doing? Santa should be very happy

6 Likes

@stefano_negro I have question about package.
What packages you use?

2 Likes

@AndersJensen Thanks! I used an array with the ASCII symbols of the arrows stored, and in the switch condition I will retrieve them based on the direction from the GET.

@fairymemay these are the packages used

5 Likes

Hi Santa ,

All you need is to give me your key points, I will give you report in few seconds.
Please check out the solution and also final handy printable sheet.

WindSpeedReport.zip (2.7 MB)
WindSpeedReport.pdf (164.1 KB)

Thanks,
Olaf - The SantaBOT

11 Likes

Well, we don’t really need that… that was a part of my master plan that never came to reality.
Its nice to be part of the family… Happy Holidays !

4 Likes

Good Luck everyone!
I will be more creative next time

9 Likes

Santa is RPA enthusiastic and would like to determine the wind speeds of his key points himself. His programming elves should not help him. An API call is much too simple. An ambitious challenge to automate a web UI robust and reliable. So he automates the UI of his Danish weather forecast. Why Danish he asks himself, I come from Finland . Anyway, here is his attempt.

1. Create a CSV file with the key points.
3. Open Danish weather forecast in the browser.
4. Loop over the CSV and read the key points.
5. Enter the key points into the field of the weather forecast.
7. Extract the wind speed from the result.
8. Write the wind speed into the CSV file.

With a tailwind the reindeers need less food or I can eat a little more, he said to himself and smiled.

10 Likes

Santa orders his shower power programming elf to come. “Hey” he says, “I need the wind speeds of my key points via the API of the Danish weather forecast”. “This is a very simple thing”, the elf replies. With an HTTP request in a loop that processes a CSV file it is quickly realized. No sooner said than done.

Afterwards they sit together at the fireplace and drink Glögg. A call via an API, they think, is much easier to realize than via the UI. No RPA elf (and of course Citizen Developer) should have concerns to use APIs. This can sometimes lead to success faster than trying to automate exclusively via the UI. Satisfied they look at each other and wait for the next advent challenge.

9 Likes

The Rock is cooking dinner for the people for the holidays!

When suddenly Santa Messaged him that he needs his help to get the wind directions.

The rock was pissed because he is about to taste the food he was Cooking (get it?)
So he raised his eyebrows

Then santa said. Dwayne, remember, you are currently on my good boy list. i dont want to add you to the naughty ones

Then he realized he was dreaming of the WWE Championship Belt and wished for Santa to let him win.

So he hurriedly checked for the wind speed of each country.

finally, since Santa is on a rush, instead of sending an email. He just sent the values of the wind direction via SMS.

Then, smelled that the food he was cooking was burning…

But then suddenly he realized that he was able to help Santa by using UiPath and Using API calls as well as using Twilio to send Santa his requests

The smell of Victory ;D ;D ;D

12 Likes

Dear Santa,

I hope you’re doing great in this special year !

1. Get the cities of your journey using UiPath Excel activities

1. Get cities wind information using UiPath Web activities

1. Generate your report using UiPath Presentation activities

I noted that the Excel file you sent is well formatted, thank you for that. I fed my elf-bot with, so that he knows for which cities you want wind information from.

After getting information from a Danish website, my elf-bot translated it in English so that you can understand in which side the wind is blowing…

Eventually, you’ll receive a PDF file listing the cities in your journey as well as wind information as requested (note : my elf-bot added local temperature as extra info for you to anticipate your clothing) .

Don’t forget to drop by my house for my gifts
Have a nice journey !

11 Likes

Excellent !!!

2 Likes

Dear Santa,

I made it as background process for you who are busy.
You can check information for wind on UiPath Assistant during other automation process keep running.

In addition, it outputs csv files as the following.