Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lyarov22 committed Jul 29, 2024
1 parent a3458a4 commit f9e914e
Show file tree
Hide file tree
Showing 22 changed files with 5,691 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
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
37 changes: 37 additions & 0 deletions api.html
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>
2 changes: 2 additions & 0 deletions css/aos.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions css/plus-jakarta-text.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added favicon.ico
Binary file not shown.
Binary file added fonts/PlusJakartaText-Bold.woff
Binary file not shown.
Binary file added fonts/PlusJakartaText-Bold.woff2
Binary file not shown.
Binary file added fonts/PlusJakartaText-BoldItalic.woff
Binary file not shown.
Binary file added fonts/PlusJakartaText-BoldItalic.woff2
Binary file not shown.
Binary file added fonts/PlusJakartaText-Italic.woff
Binary file not shown.
Binary file added fonts/PlusJakartaText-Italic.woff2
Binary file not shown.
Binary file added fonts/PlusJakartaText-Light.woff
Binary file not shown.
Binary file added fonts/PlusJakartaText-Light.woff2
Binary file not shown.
Binary file added fonts/PlusJakartaText-LightItalic.woff
Binary file not shown.
Binary file added fonts/PlusJakartaText-LightItalic.woff2
Binary file not shown.
Binary file added fonts/PlusJakartaText-Regular.woff
Binary file not shown.
Binary file added fonts/PlusJakartaText-Regular.woff2
Binary file not shown.
Binary file added images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f9e914e

Please sign in to comment.