I got my first programming job in 1996. I still have days like this.
Today, I had a conversation with my boss about an apprentice in our team. Our senior front-end dev left a few months ago, and the apprentice has had to take on a lot of work with little guidance. Our team is very full of back-end devs with no front-end experience. During this conversation, we described our apprentice as “extremely capable but lacking experience”, and discussed the best way of getting him more experience. The conclusion we came to is that there is no shortcut here, but having good guidance from senior devs can help somewhat.
What I’m trying say here is that what you’re describing is absolutely normal, and based on what you’ve said, you’re doing fine. You have a little imposter syndrome, which seems worse than it is because of your genuine lack of experience… that experience will come with time, and days like today are the days where you learn a load from your mistakes. You’ll probably not hard-code things like that in future, and today you gained a tiny bit of that experience that you need - well done!
I use an app called WeatherRadar - https://apps.apple.com/gb/app/weather-radar-storm-alerts/id545993260
It shows cloud cover as well as rainfall, and also has a few other views I don’t use. But what I really like is the iOS home screen widget, which shows me my local weather even when I’m not actively looking at it.