-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
5,691 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
# meteoboard | ||
One-page HTML and JS website with weather information (OWM Api) and meteo station sensor readings(narodmon api) | ||
# MeteoBoard | ||
## One-page HTML and JS website with weather information (OWM Api) and meteo station sensor readings(narodmon api) | ||
|
||
### Figma File: | ||
|
||
### How to run? | ||
1. Open file ./js/api.js | ||
2. Set the coordinates of your city in **lat** ang **lon** variables (example lat = 43.25 and lon = 76.95) | ||
3. Set the OpenWeatherMap API key in **apiKey** variable (https://openweathermap.org/api) | ||
4. Set the WAQI API key in **airApiKey** variable (https://aqicn.org/api) | ||
5. Run page! | ||
|
||
### Todo: | ||
~~make a design in figma~~ | ||
~~Create an html page based on the design~~ | ||
~~add integration with openweathermap (weather data)~~ | ||
~~add integration with the wagi api (data api)~~ | ||
add integration with the narodmon api (meteo sensors data) | ||
english supports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Прогноз погоды</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
} | ||
.weather-section { | ||
margin-bottom: 20px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="current-weather" class="weather-section"> | ||
<h2>Текущая погода</h2> | ||
<p id="temp">Температура: </p> | ||
<p id="humidity">Влажность: </p> | ||
<p id="time">Время запроса: </p> | ||
<p id="sunrise">Восход: </p> | ||
<p id="sunset">Закат: </p> | ||
<p id="wind-speed">Скорость ветра: </p> | ||
<p id="wind-deg">Направление ветра: </p> | ||
<p id="weather-description">Состояние погоды: </p> | ||
<p id="uvi">UV индекс: </p> | ||
</div> | ||
<div id="hourly-weather" class="weather-section"> | ||
<h2>Почасовая погода (на 7 часов вперед)</h2> | ||
</div> | ||
<div id="daily-weather" class="weather-section"> | ||
<h2>Прогноз на неделю</h2> | ||
</div> | ||
|
||
<script src="js/api.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.