In this recipe, we will create a function that takes the name of a city, looks up its weather information, and then display a portion of this information on the OLED display. To achieve this, the function in this recipe will combine different pieces from the recipes covered in this chapter.
In addition to outputting to the OLED, it will also print out the same information to standard output to facilitate debugging. This recipe can be useful to you when you want to see how a project such as weather machine can be broken into separate pieces that all call one another in a structured design.