Git Product home page Git Product logo

weathergetter's Introduction

WeatherGetter

A small Haskell Program to get the current Weather condition

About The Project

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

Built With

Downloads

Msys2: Download
MingW: Download
VSCode: Download
If you have chocolately install ghc & cabal

choco install ghc cabal

Getting Started

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.

Requirements

  • Recent version of Cabal & GHC

Building from source

  1. Clone repository
git clone https://github.com/ToiletCoders/WeatherGetter && cd WeatherGetter
  1. Switch to branch
git checkout [branch this will be on]
  1. Compile and run
cabal build && cabal run

Run the program

MacOS:

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.

  1. Open the Terminal in the path you saved the script and run:
  chmod +x MacOS-script.sh 
  1. now you can type ./MacOS-script.sh to run it

Windows:

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.

Location override

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

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Check out our Website: toiletcoders.xyz

Project Link: https://github.com/toiletcoders/WeatherGetter

weathergetter's People

Contributors

bircni avatar fabus1184 avatar

Stargazers

Bircni Development avatar  avatar

Watchers

 avatar

weathergetter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.