docker_weather/README.md

24 lines
581 B
Markdown
Raw Normal View History

2023-09-22 08:21:01 +03:00
<h1>Säätiedot! Weather!</h1>
2023-09-22 08:21:48 +03:00
Lisätietoa täällä: https://github.com/chubin/wttr.in
2023-09-20 23:28:10 +03:00
Muunna script.py tiedostosta 15 ja 16 rivi.
Laita omat koordinaattisi missä asut, niin säätiedot haetaan sen mukaan.
2023-09-21 00:41:38 +03:00
git clone http://88.114.1.82:3000/RikuSi/docker_weather.git
cd docker_weather
2023-09-20 23:28:10 +03:00
sudo docker build -t weather .
sudo docker run -d --name wttrin10 -p 8600:80 weather
2023-09-22 08:27:57 +03:00
sudo docker update --restart unless-stopped wttrin10
2023-09-20 23:28:10 +03:00
sudo docker exec -it wttrin10 /bin/bash
http://localhost:8600
2023-09-22 08:21:01 +03:00
Scripti joka hakee tiedot päivittyy 1 min välein.
2023-09-21 21:45:42 +03:00
Selain päivittyy 1 min välein
2023-09-20 23:28:10 +03:00