INF221 Wiki Help

Weather Monitoring

Brief

If you live in Bergen, you are probably obsessed with the weather forecast. But this obsession can take a lot of time out of your day. Wouldn't it be nice if we could automate this obsession away.

The main part of this project is to query the Yr data, and present it in some way. Here are a few of our presentation ideas, you are welcome to come up with your own.

This one is pretty simple. Render whatever weather information you like on the terminal

Make a discord bot! It could message you whenever it starts raining. Maybe you can ask it for specific information at specific times and it shall provide that information. Perhaps it alerts you of weather warning changes.

A lesser known functionality in Apple's siri shortcuts is that Siri can run scrips over SSH. This would allow you to create siri commands that use weather information. If you need a hand hosting your program, Håkon or James have servers that can host your program temporarily.

If you are a linux user and attending this course, then you either use XMonad, or should be. The bar that most people use with XMonad is called XMobar. It is also written in haskell. It already has a weather plugin, but it can only get the current weather information from a near-by weather station. If you live in Bergen, it will probably be the at the airport.

What would be really nice is if you could make a plugin that can get better data from Yr. Maybe even give warnings if there will be bad weather coming up!

If you use linux and you like to really play with your desktop environment, you may have used Conky. It is a highly configurable application for displaying whatever data you like on your desktop. It would be nice if you could make a configurable applet that displays data from Yr.

According to the conky docs, all that this requires is creating an application that conky can poll. So it should be simple commandline parsing and displaying.

Extensions

Support more than one presentation option!

Helpers

  • Aeson (JSON Parsing)

  • There are loads of libraries for making HTTPS requests. You can find one

Last modified: 25 January 2024