PyWeather

PyWeather

8 devlogs
2h 10m
•  Ship certified
Created by Kyle B

A CLI weather app built in Python, using tomorrow.io for data.

Timeline

Ship 1

1 payout of shell 50.0 shells

Kyle B

about 2 months ago

Kyle B Covers 8 devlogs and 2h 10m

I've now added a few more ASCII arts: thunderstorm and rain, as well as a smaller one for cloudy weather. I think it's good to ship now.

Update attachment
Kyle B Kyle B about 2 months ago
ASCII art**

Added the rest of the weather codes, so now there are no errors regardless of conditions. For conditions with no ascii art, such as hail, it will print No Ascii Art.

Update attachment

I've uploaded this project to PyPI so you can now install it with pip (python's package manager). This took a bit of light refactoring to fit with pyPI's requirements, and I had to write a pyproject toml file.

Update attachment

Created a detailed README file from scratch (no AI readmes here 😉), with instructions on installing, running, and getting an API key.

Update attachment

You can now enter the location, and your own API key. If you don't have one you can create one on tomorrow.io (I think that's okay but will check if I need to provide one). I also have the screen cleared after you enter this info so the weather is clearly there. Finally, I show the location on the top.

Update attachment

I added ascii art for cloudy conditions. Next I will sort out the formatting and add some more conditions.

Update attachment

I can now check for weather conditions (so far only clear, mostly clear, cloudy) using tomorrow.io's weather codes. They return numbers that correspond to conditions, like 1000 for clear.

Update attachment

I got tomorrow.io working and can now print the temperature to the console! Next I'm going to try to print different things based on current conditions, such as a sun emoji if it is sunny! I also need to find out how to get the units so I can print {temp}C or {temp}F based on that. (Image below is in C - yes it is that cold 🥶)

Update attachment