Tag Archives: rpi

Minimalistic live Belgian aviation weather (METAR) map with a Raspberry Pi

After almost 5 years of more-or-less continuous operation of my DIY weather and air-quality monitoring system, I decided that it was time to do something else with my Raspberry Pi, so I spent an evening on making a small, live METAR map of Belgium (and Luxembourg). I used the same hardware as in the previous project, you can check that out via the link above.

I simply placed the airports that provide METARs (Meteorological Aerodrome Reports) via the free CheckWX API on the low resolution matrix display (by selecting the most appropriate pixel, keeping especially the relative positions correctly represented), colouring each selected pixel according to the current weather condition, ranging from purple (LIFR – the worst), via red (IFR) and blue (MVFR), to green (VFR – this is what we like). This minimalistic display works very well, if you are familiar with the shape of Belgium and the location of the airports.

The coding is pretty lazy, but it does what it needs to do. The only extra feature that I added besides polling the API every 2.5 minutes (to stay inside the daily limits of the free tier of the API) is that the brightness of the LEDs changes according to the time of the day (or the altitude of the Sun to be precise): they get slowly dimmed approaching and past sunset so that the display is not disturbing at night (as it is placed under our TV).

It is nice to see the changing weather from the couch without having to check my phone :)

The spring months of 2018

It has been a while again, so it is time for another diary-style entry. My new job at TML is going well, I spent the first days reading course texts to get a bit of basic background knowledge (Traffic demand modelling, Transportation systems, Basics of transport economycs, etc.), but soon after I already started working on actual tasks. I am involved in the ClairCity project, by doing fleet models (basically mileage and emission predictions for different propulsion-type vehicle groups in cities), and mode-choice models (trying to tell what kind of transport mode a person will choose based on some input parameters, e.g., what is the chance that a young adult who has an average income and no car chooses to take the bike when she needs to take a 2 kilometer long commuting trip in the morning hours of the working week). This involves a lot of work with pretty cool statistical data bases, which I always liked. I presented some of my results already on one of our team meetings, and got to discuss with other people outside of TML on the annual ClairCity meeting in Sosnowiec (Poland) in April. I totally forgot to mention it the last time, but my brother (who is a flight attendant at Emirates) had visited me here in Leuven just a few days before I started my new job, and we had a nice burger and chat together :)

2018_spring_brothervisit

Thanks to a colleague I got involved in LeuvenAir, which is a citizen science project built on measuring fine dust concentrations using low-cost sensors in Leuven. I will write about this in more detail in a separate post, because having an air quality sensor quickly escalated into me buying a couple of more sensors, some wireless chips, and a small Raspberry Pi computer to make a complete weather and air-quality monitoring network around our apartment…

I had a pretty average early season on the bike, but average in this context is actually very positive, because the past years I always had a strong cycling spring. My “old” road bike surpassed the total mileage of my first road bike towards the end of April, becoming my highest mileage bike so far (32365 km and counting), and after waiting for almost two months for proper dry weather and clean roads, I finally got to ride my new bike during the annual Tornado Club-weekend in the Ardennes (and for already a total of 2252 km since then). The second ride during that long weekend in the Ardennes was actually my highest elevation gain ride within the borders of Belgium ever.

2018_spring_DutchLimburg

Other memorable rides from the past months were: a sunny roller-coaster in the Dutch Limburg with Hao, the first 200 km+ ride with the new bike for a slice of cake (I switched back to the Arione saddle for this already, the Aliante was not such a good fit for me), my first visit to the Oostkantons with some Instagram/Strava celebrities (where finally I was not the only one in a fancy outfit :D), my longest solo ride ever: 306 km over the highest points of Belgium and the Netherlands, two gravel rides: one short one just outside of Leuven through beautiful forests and fields, and a longer one around the top of Belgium in great company, and my first visit to the Eifel region with a group of TML colleagues.

2018_spring_Oostkantons

It is a shame that the Instagram photos taken during rides are not visible anymore on Strava (only when added manually afterwards, which I do now), because I really enjoyed that I can just look back at these there :(

2018_spring_photos1

On top of all of this, in the beginning of May we had a week of cycling between the Ardèche and the Cévennes regions in France, which was pretty nice. Those without the bike could enjoy the sunshine at our private pool, and an excursion to Nîmes on the afternoon of the rest day. In six days I biked 665 km with almost 11000 meters of elevation gain, most of the time on small, practically traffic-free roads in great weather. (The week after it was snowing there, so we were definitely a bit lucky.) All rides were great (1, 2, 3, 4, 5, 6), but the most memorable moments are from the second day and the rest day.

2018_spring_France

On the second day just after reaching the top of the climb leading up to the Plateau de Montselgues we got into a thunderstorm. I thought the best is to keep on biking, because otherwise we would just get cold and wet (since there was not much shelter around), but things got much worse really soon. The storm quickly grew into a torrential downpour containing centimeter-sized hail, water was coming from everywhere (from above, from the road, and from the side blown by strong gusts of wind), and the temperature dropped to 8 degrees Celsius. I tried to descend towards the warmer altitudes as fast as I could, but it turns out that this way I basically kept going along with the core of the storm (because the people behind me who either took the descent slower or were still on the climb on the other side of the mountain got much less extreme weather, some even made it without encountering any ice). It took me more than a half hour to get down the mountain, of which at least 20 minutes was in hail (which was not only painful but also left impact cracks on the top layer of my helmet at multiple spots). At the bottom I was shaking from the cold, so I stepped into the first open pub I saw, ordered two hot chocolates (when I actually managed to form words from shaking), and got hugged by a large middle-aged French lady while trying to warm up (which was a bit more intimacy than what I would be normally comfortable with from a stranger, but she was so warm!). It took me 20 minutes to get into a state that we could continue… Luckily as soon as I got back on the bike I managed to warm up quickly, and since it was not raining anymore, things got back to normal very fast.

2018_spring_photos2

For the rest day I included the climb to the Mont Bouquet (also known as the local wall) in the route, and if you think 4.6 km at an average 9% simply would not be enough for a recovery ride, then you might be one of the lucky few who would have honestly appreciated the 500 meters at 16-18% in the middle :D (The rest was also typically in the double digits, and only a few short flat/downhill sections pulled the average below ten percent.) That was an epic climb, but I am sure nobody will let me plan rest-day rides anymore. Besides the biking, I got a short initiation into fly-fishing from Willem, and we had a nice campfire on the last evening. Driving back was a bit less fun after a week of cycling, but there is nothing I can not handle with a liter of coffee I guess…

Since we came back Filou (our adopted cat) is much more cuddly and affectionate than he was before, he comes to sit with me in the couch every evening (he used to always lie in one of his spots before, now he chooses me most of the time), and he follows me around the apartment quite often. He also became more vocal after being almost completely silent in the first few months, so now every day after work he runs to the door when one of us arrives home and probably tells us never dare to leave his side ever again. Or that he needs more attention. He is the cutest ball of fluff ever. My parents also had their annual visit, this time we went to the Durbuy, Dinant, and Gent. They also liked Filou :)

2018_spring_Filou

And last but not least, a few words about Liverpool FC. This season was again a very good one for us, and I managed to watch almost every game. While Coutinho was sold in the winter transfer window, with the arrival of Virgil van Dijk (and with the better and better performance of our young wing-backs) our defensive line got a serious upgrade, which resulted in a significantly less conceded goals in the second half of the season. Our front three (Mane, Firmino, and Salah) played wonderful football, and Mohamed Salah (the Egyptian king, running down the wing) broke most Premier League and Liverpool goal-scoring records during his first year in a red shirt.

2018_spring_Salah

We finished comfortably in fourth position in the league, and the glorious European nights have also returned to Anfield (a.k.a. Champions League football). After going through from the group, in the quarter- and semi-finals Liverpool played exhilarating football in front of the Kop (3-0 against Manchester City, 5-2 against Roma – We’ve conquered all of Europe, We’re never gonna stop…). As a result we played our second European Cup final in three years, which really says a lot about how good Jürgen Klopp’s team really is. Unluckily Mo Salah got injured early in the game, and our goalkeeper (Karius) made two huge mistakes, so we lost against Real Madrid, but reaching the final was already an amazing achievement. I liked this season’s team and jersey so much, that I even bought a special 125th anniversary double shirt boxed set including a replica of Liverpool’s first ever jersey from 1892, a 2017-18 home shirt, and a book of 25 historical photos. It is a really nice memorabilia. I am looking forward to the next season!