Completed Guide to setup project from scratch.
- Covered OS
- Ubuntu
For this project, we need to install following technologies and tools:
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
$ cd /usr/src
$ sudo wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
$ sudo tar xzf Python-3.7.6.tgz
$ cd Python-3.7.6/
$ sudo ./configure
$ sudo make altinstall
$ python3.7 -V
For details, you can see link
$ sudo apt-get install python3-pip
$ git clone https://github.com/xhahid43eb/weatherman.git
$ pip3 install virtualenv
Create new python virtual environment with default python version set to 3.7
$ virtualenv --python=`which python3.7` ./venv
$ source venv/bin/activate
$ sudo apt install build-essential
$ sudo apt-get install libmysqlclient-dev
$ apt-get install libxml2-dev libxslt1-dev python-dev
$ apt-get install libssl-dev libffi-dev
$ pip install -e .
For a given year display the highest temperature , lowest temperature and humidity .
$ python weatherman.py /path/to/files-dir -e 2002
For a given month display the average highest temperature , average lowest temperature , average mean humidity .
$ python weatherman.py /path/to/files-dir -a 2005/6
For a given month draw one horizontal bar chart on the console for the highest and lowest temperature on each day. Highest in red and lowest in blue.
$ python weatherman.py /path/to/files-dir -c 2005/6