docker_weather/README.md

26 lines
705 B
Markdown
Raw Normal View History

2023-09-22 08:21:01 +03:00
<h1>Säätiedot! Weather!</h1>
2023-10-18 09:57:24 +03:00
Perustuu wttrin sääpalveluun: https://github.com/chubin/wttr.in
2023-09-20 23:28:10 +03:00
2023-10-18 09:57:24 +03:00
Kloonaa kansio:
2023-09-21 00:41:38 +03:00
git clone http://88.114.1.82:3000/RikuSi/docker_weather.git
2023-10-18 09:57:24 +03:00
Mene kansioon:
2023-09-21 00:41:38 +03:00
cd docker_weather
2023-09-20 23:28:10 +03:00
2023-10-18 09:57:24 +03:00
Pura kansio:
unzip weather-image.tar.zip
2023-09-20 23:28:10 +03:00
2023-10-18 09:57:24 +03:00
Lataa kontti Dockeriin:
sudo docker load -i weather-image.tar
2023-09-20 23:28:10 +03:00
2023-10-18 10:53:59 +03:00
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2023-10-18 09:57:24 +03:00
Käynnistä kontti:
sudo docker run -d --name weather -e LATITUDE="61.4981" -e LONGITUDE="23.7608" -e MAX_RESULTS="10" -e TZ="Europe/Helsinki" -p 8600:80 weather-image
2023-09-22 08:27:57 +03:00
2023-09-20 23:28:10 +03:00
2023-10-18 09:57:24 +03:00
sudo docker update --restart unless-stopped weather
2023-09-20 23:28:10 +03:00
2023-10-18 09:57:24 +03:00
http://localhost:8600
2023-09-20 23:28:10 +03:00
2023-10-18 09:57:24 +03:00
Scripti joka hakee tiedot päivittyy 10 min välein.
Selain päivittyy 5 min välein