A small Haskell Program to get the current Weather condition
Get the current weather condition and 7-Day forecast for your current (geoip-determined) or a custom location:
Weather for Ulm, Germany at Sunday 5:00 AM
Current conditions:
+ --------------------------------------------------
| Temperature: 14°C
| Precipitation: 3%
| Humidity: 99%
| Wind: 3km/h
| Description: Mostly cloudy
Forecast:
+ --------------------------------------------------
| Sunday Scattered showers - (3,15)°C
| Monday Partly cloudy - (6,17)°C
| Tuesday Showers - (8,17)°C
| Wednesday Thunderstorm - (9,17)°C
| Thursday Showers - (8,15)°C
| Friday Partly cloudy - (8,17)°C
| Saturday Scattered showers - (7,18)°C
| Sunday Partly cloudy - (7,18)°C
Msys2: Download
MingW: Download
VSCode: Download
If you have chocolately install ghc & cabal
choco install ghc cabal
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
- Recent version of Cabal & GHC
- Clone repository
git clone https://github.com/ToiletCoders/WeatherGetter && cd WeatherGetter
- Switch to branch
git checkout [branch this will be on]
- Compile and run
cabal build && cabal run
Put the MacOS-script.sh
in /Users/YourUsername
and change the path in MacOS-script.sh
to the path you cloned the repository to.
Run the script to test if it works.
- Open the Terminal in the path you saved the script and run:
chmod +x MacOS-script.sh
- now you can type
./MacOS-script.sh
to run it
Put the Windows-script.bat
in /Users/YourUsername
and change the path in Windows-script.bat
to the path you cloned the repository to.
Run the script to test if it works.
Now you can type ./Windows-script.bat
to run it.
sometimes your location may not be determined correctly by your ip address. Therefore you may override it by entering a city name in location-override.txt
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Check out our Website: toiletcoders.xyz
Project Link: https://github.com/toiletcoders/WeatherGetter