Update README.md
This commit is contained in:
parent
f573aff485
commit
3e337837d0
24
README.md
24
README.md
@ -1,23 +1,25 @@
|
|||||||
<h1>Säätiedot! Weather!</h1>
|
<h1>Säätiedot! Weather!</h1>
|
||||||
Lisätietoa täällä: https://github.com/chubin/wttr.in
|
Perustuu wttrin sääpalveluun: https://github.com/chubin/wttr.in
|
||||||
|
|
||||||
Muunna script.py tiedostosta 15 ja 16 rivi.
|
|
||||||
Laita omat koordinaattisi missä asut, niin säätiedot haetaan sen mukaan.
|
|
||||||
|
|
||||||
|
Kloonaa kansio:
|
||||||
git clone http://88.114.1.82:3000/RikuSi/docker_weather.git
|
git clone http://88.114.1.82:3000/RikuSi/docker_weather.git
|
||||||
|
|
||||||
|
Mene kansioon:
|
||||||
cd docker_weather
|
cd docker_weather
|
||||||
|
|
||||||
sudo docker build -t weather .
|
Pura kansio:
|
||||||
|
unzip weather-image.tar.zip
|
||||||
|
|
||||||
sudo docker run -d --name wttrin10 -p 8600:80 weather
|
Lataa kontti Dockeriin:
|
||||||
|
sudo docker load -i weather-image.tar
|
||||||
|
|
||||||
sudo docker update --restart unless-stopped wttrin10
|
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
|
||||||
|
|
||||||
sudo docker exec -it wttrin10 /bin/bash
|
|
||||||
|
sudo docker update --restart unless-stopped weather
|
||||||
|
|
||||||
http://localhost:8600
|
http://localhost:8600
|
||||||
|
|
||||||
Scripti joka hakee tiedot päivittyy 1 min välein.
|
Scripti joka hakee tiedot päivittyy 10 min välein.
|
||||||
Selain päivittyy 1 min välein
|
Selain päivittyy 5 min välein
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user