https://github.com/dpashutskii/weather-stat
Weather statistics application
https://github.com/dpashutskii/weather-stat
php yii2
Last synced: 12 days ago
JSON representation
Weather statistics application
- Host: GitHub
- URL: https://github.com/dpashutskii/weather-stat
- Owner: dpashutskii
- License: other
- Created: 2017-03-30T19:27:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-18T13:27:39.000Z (almost 8 years ago)
- Last Synced: 2025-05-07T11:58:05.574Z (12 days ago)
- Topics: php, yii2
- Language: PHP
- Homepage:
- Size: 8.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Weather statistics
============================REQUIREMENTS
------------The minimum requirement by this project template that your Web server supports PHP 5.4.0.
INSTALLATION
------------```
git clone https://github.com/guar47/weather_stat.git
composer install
```
And after database configuration
```
php yii migrate
```CONFIGURATION
-------------### Database
Edit the file `config/db.php` with real data, for example:
```php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=weather',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
];
```OTHER COMMENTS
-------------
```
- Chosing date is not working now.
- To add data to the database from the public API, click the button "add data to DB" (on a trial basis, requested for January 2016)
- If you request the data multiple times in the database is a duplicate, but the stats will be displayed correctly as at the moment data are only for January 2016
- After add data, you can request the statistics by click "get statistics", with no data in the database the temperature will not be considered
```