arnapou / weather
Project - Forecast weather website
v3.1
2024-05-04 22:59 UTC
Requires
- php: ~8.3.0
- ext-redis: *
- arnapou/appcfg: ^1.5
- arnapou/encoder: ^2.2
- arnapou/owmclient: ^2.4
- arnapou/psr: ^2.8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.52
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/php-code-coverage: ^11.0
- phpunit/phpunit: ^11.0
README
Display weather information based on OpenWeatherMap.
I wrote this app for my usage because I needed more information to plan my bike trip to work (rain, wind, ...).
Installation
composer create-project arnapou/weather
packagist 👉️ arnapou/weather
Examples
- https://weather.arnapou.net/ - default location (check config / envvars)
- https://weather.arnapou.net/codes - list of country codes (Iso 3166 Alpha 2)
- https://weather.arnapou.net/CN/Shanghai - Shanghai weather
- https://weather.arnapou.net/3/FR/Paris - Paris weather (only 3 days)
- https://weather.arnapou.net/40.404,-3.721 - Madrid via latitude + longitude
Notes
- the date and time are relocated in the right timezone !
- the offset with UTC is mentioned
- data are cached for at least 5 minutes
- period is between 2 and 5 days
- compatible iOS to add it like a web-app
Screenshot
Php versions
Date | Ref | 8.3 | 8.2 | 8.1 |
---|---|---|---|---|
26/11/2023 | 3.x, main | × | ||
05/12/2022 | 2.x | × | ||
04/03/2022 | 1.x | × |