arnapou / weather
Project - Forecast weather website
v4.0
2024-11-25 09:26 UTC
Requires
- php: ~8.4.0
- ext-redis: *
- arnapou/appcfg: ^1.10
- arnapou/encoder: ^2.3
- arnapou/owmclient: ^2.7
- arnapou/psr-cache: ^1.1
- arnapou/psr-container: ^1.1
- arnapou/psr-http: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.65
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/php-code-coverage: ^11.0
- phpunit/phpunit: ^11.4
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.4 | 8.3 | 8.2 | 8.1 |
---|---|---|---|---|---|
25/11/2024 | 4.x, main | × | |||
26/11/2023 | 3.x | × | |||
05/12/2022 | 2.x | × | |||
04/03/2022 | 1.x | × |