Menu

Tree [4d8655] master /
 History

HTTPS access


File Date Author Commit
 static 2022-04-07 Tapani Voutilainen Tapani Voutilainen [4d8655] edited readme
 templates 2022-04-05 Tapani Voutilainen Tapani Voutilainen [2634bf] edited readme and index
 .gitignore 2022-04-05 Tapani Voutilainen Tapani Voutilainen [ef0768] changed .gitignore
 LICENSE.md 2022-04-04 Tapani Voutilainen Tapani Voutilainen [c988bc] changed license
 README.md 2022-04-07 Tapani Voutilainen Tapani Voutilainen [4d8655] edited readme
 app.py 2022-04-04 Tapani Voutilainen Tapani Voutilainen [c988bc] changed license
 requirements.txt 2022-04-03 Tapani Voutilainen Tapani Voutilainen [c8f6ca] added tests
 test_.py 2022-04-03 Tapani Voutilainen Tapani Voutilainen [c8f6ca] added tests

Read Me

Weather Forecasting

With this simple app you can search for hourly weather forecasting data for three day period. To search data you simply enter the coordinates
to the fields and then click "find!". If you don't know the coordinates then you can click on the map and it will give the coordinates for you.
The hourly weather forecasting data will be printed below the map as a list. The list will show you the weather information for each hour.

The project's entry file is app.py. The dependencies are listed in the requirements.txt. The static-folder holds the CSS files for styling and
the Leaflet Coordinates Control module. The templates-folder holds the index.html template file.

test_.py holds the automatic tests. To run the tests enter 'pytest' command in the CLI in the project folder.

This project uses OpenWeatherMap API as a source. To use this tool you need to acquire an API id. This id is included in the REST API calls.
OpenWeatherMap API is made available under the Open Data Commons Open Database License.
- https://opendatacommons.org/licenses/odbl

This project uses Leaflet as an open-source JavaScript library for mobile-friendly interactive maps.
- https://github.com/Leaflet/Leaflet/blob/main/LICENSE

This project uses Leaflet Coordinates Control. It captures mouseclick and displays its coordinates with easy way to copy them.
- https://github.com/zimmicz/Leaflet-Coordinates-Control/blob/master/LICENSE.md

This project uses Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.
- http://creativecommons.org/licenses/by/3.0
- https://www.openstreetmap.org/copyright
- https://opendatacommons.org/licenses/odbl

Follow these steps to run this program:
1. Install Python.
2. Open CLI in the project folder and enter 'pip install'. This will install the dependencies specified in the requirements.txt.
3. To enable the API calls you should acquire an id from OpenWeatherMap's website openweathermap.org. Create a .env file to the root directory
of this project. To this file write 'APP_ID = [your OpenWeatherMap API id]' without quotation marks.
4. Run program by entering 'python -m flask run' in CLI and enjoy!

Copyright 2022 Tapani Voutilainen

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.