Another pet project: "da quando non piove"
Since the advent of AI, I feel like my creativity is unleashed. I can finally design functionalities instead of focusing on coding. In this sense, I feel I am getting closer to become a product manager, instead of being "just" a developer.
The last project I've been vibe coding is "Da quando non piove", that translated would be "how many days since last rain". Unfortunately it's in Italian, but it's very easy to follow along.
The website is very stupid: you navigate to the main page, and it'll detect your current location, fetch the historical data, and tell you how long since the last rain. Nothing else.
In summer I can feel the total absence of water in my garden and in the hills around me: together with high temperatures, this can ease the spread of fires, which is a huge problem where I live. And also, given the climate change emergency we're living in, I thought this could be a useful website to spread some awareness.
This project took 1-2 hours to be completed. Honestly, the thing I spent most time on was connecting the domain name to netlify, and debugging an issue with the search bar - one can fetch the situation of any city in the world.
Cool things to know:
- multilanguage hasn't been done with fancy libraries, it's just two jsons of strings, one per language, and the right one is selected from the user's locale.
- I've used Vite to develop and bundle the site and it's blazing fast. All the code is typescript.
- Yes, even a small site like this has tests: i used vitest for it.
I'd like to thank the services that expose a free API for this, which are:
- OpenStreetMaps , that allows me to find the name of the city from the device's coordinates;
- Open-Meteo Geocoding API, that I use to autocomplete the name of the cities while you type;
- Open-Meteo Forecast API, that allows me to find weather data up until 92 days in the past.
Enjoy !