Commit 2f0380c9 by Kornkitt Poolsup

delete unused file

parent 1402c687
note.txt
index.html
icon/
SVG/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OneCityCentre Bangkok</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
<!-- <link href="./css/main.css" rel="stylesheet" /> -->
<!-- <?xml version="1.0" encoding="utf-8"?> -->
<style>
* {
box-sizing: border-box;
}
head {
min-width: 320px;
max-width: 575.98px;
display: flex;
flex-direction: column;
}
body {
font-size: 14px;
font-family: 'Poppins';
background: linear-gradient(360deg, rgba(235, 238, 255, 0.6) 0%, rgba(245, 246, 252, 0.6) 100%);
margin-left: auto;
margin-right: auto;
min-width: 320px;
max-width: 575.98px;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
footer {
margin-top: auto;
}
a.disabled {
pointer-events: none;
cursor: default;
color: #A1A8B9;
}
button.headertab {
background-color: #FFFFFF;
border-width: 0em;
align-items: center;
white-space: normal;
}
.inactive-headertab {
display: flex;
align-items: center;
justify-content: center;
/* color: #A1A8B9; */
background-color: #FFFFFF;
border-width: 0em;
font-family: Poppins;
font-weight: Medium;
font-size: 14px;
width: 100%;
white-space: normal;
}
.active-headertab {
display: flex;
align-items: center;
justify-content: center;
/* color: #4C80F8; */
background-color: #FFFFFF;
border-width: 0em;
font-family: Poppins;
font-weight: bold;
font-size: 14px;
width: 100%;
white-space: normal;
}
.cls-1{opacity:0.8;}
.cls-2{fill:#4bc53e;}
.cls-3{fill:#48ab37;}
.cls-4{fill:#61dd49;}
.cls-5{fill:#654735;}
.cls-6{fill:#2c2c2c;}
.active-svg {fill: #A1A8B9;}
.inactive-svg {fill: #4C80F8;}
.tab-line {
width: 100%;
height: 15%;
align-items: flex-end;
justify-content: end;
background: #4C80F8;
border-radius: 6px 6px 0px 0px;
flex: none;
order: 3;
flex-grow: 0;
}
.column-line {
width: 24px;
height: 0px;
border: 1px solid #A1A8B9;
transform: rotate(90deg);
/* Inside auto layout */
flex: none;
order: 3;
flex-grow: 0;
}
.text-title-in-card {
color: rgba(54, 69, 90, 1);
font-family: Poppins;
font-weight: Medium;
font-size: 14px;
}
.text-subtitle-in-card {
color: rgba(161, 168, 185, 1);
font-family: Poppins;
font-weight: Light;
font-size: 14px;
}
.center-item-in-card {
margin-left: auto;
margin-right: auto;
}
.text-on-card {
color: rgba(161, 168, 185, 1);
font-family: Poppins;
font-weight: Light;
font-size: 12px;
text-align: left;
}
.aqi-value {
color: rgba(54, 69, 90, 1);
font-family: Poppins;
font-weight: Medium;
font-size: 32px;
opacity: 1;
text-align: center;
}
/*Filter styles*/
.saturate {
filter: saturate(3);
}
.grayscale {
filter: grayscale(100%);
}
.contrast {
filter: contrast(160%);
}
.brightness {
filter: brightness(0.25);
}
.blur {
filter: blur(3px);
}
.invert {
filter: invert(100%);
}
.sepia {
filter: sepia(100%);
}
.huerotate {
filter: hue-rotate(180deg);
}
.rss.opacity {
filter: opacity(50%);
}
</style>
<nav class="navbar shadow-sm bg-body rounded"
style="background-color: #FFFFFF; width: 100%; padding-bottom: 6px;">
<div class="container-fluid">
<span class="navbar-brand mt-3 mb-0 h1" style="color: #36455A;"><b>Good Morning</b></span>
</div>
<div class="container-fluid">
<p id="showtime" style="color: #6A6F7D;">-</p>
</div>
<hr>
<div class="container-fluid" style="display: inline-block;">
<div class="row row-flex">
<div class="col-4">
<button class="active-headertab" id="home-menu-tab" type="button" onclick="navigate('home')" disabled>
</button>
<div id="home-tab-line" class="tab-line" style="visibility: visible;"></div>
</div>
<div class="col-4">
<button class="inactive-headertab" id="camera-menu-tab" type="button" onclick="navigate('camera')">
</button>
<div id="camera-tab-line" class="tab-line" style="visibility: hidden;"></div>
</div>
<div class="col-4">
<button class="inactive-headertab" id="forecast-menu-tab" type="button" onclick="navigate('forecast')">
</button>
<div id="forecast-tab-line" class="tab-line" style="visibility: hidden;"></div>
</div>
</div>
</div>
</nav>
</head>
<body>
<!-- Homepage -->
<div class="container-fluid mt-3" id="homepage" style="display: inline-block;">
<div class="row row-flex mb-3" style="color: #36455A;">
<div class="col-12">
<div class="card shadow-sm p-3 bg-body rounded"
style="border-width: 0px; display: flex; justify-content: center; height: 100%;">
<!-- <div class="card-body"> -->
<div class="row">
<div class="col">
<svg version="1.1" id="airquality-icon" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 96 96"
style="enable-background:new 0 0 96 96; width: 2rem;" xml:space="preserve">
<style type="text/css">
.st0 {
fill: #737373;
}
</style>
<path class="st0"
d="M50.7,35.5H8.3c-1.7,0-3-1.3-3-3c0-1.7,1.3-3,3-3h42.4c4.7,0,8.6-3.8,8.6-8.6c0-4.7-3.8-8.6-8.6-8.6s-8.6,3.8-8.6,8.6c0,0,0,0,0,0c0,1.7-1.3,3-3,3s-3-1.3-3-3c0-8.1,6.5-14.6,14.6-14.6s14.6,6.5,14.6,14.6C65.3,29,58.8,35.5,50.7,35.5C50.7,35.5,50.7,35.5,50.7,35.5z" />
<path class="st0"
d="M72,77.8c-9.9,0-18-8.1-18-18c0-1.7,1.3-3,3-3s3,1.3,3,3c0,6.6,5.4,12,12,12s12-5.4,12-12s-5.4-12-12-12H8.3c-1.7,0-3-1.3-3-3s1.3-3,3-3H72c9.9,0,18,8.1,18,18S81.9,77.8,72,77.8z" />
<path class="st0"
d="M33.2,83.6c-8.1,0-14.7-6.6-14.7-14.7c0-1.7,1.3-3,3-3s3,1.3,3,3c0,4.8,3.9,8.7,8.7,8.7c4.8,0,8.7-3.9,8.7-8.7c0-4.8-3.9-8.7-8.7-8.7c0,0,0,0,0,0h-25c-1.7,0-3-1.3-3-3s1.3-3,3-3h25c8.1,0,14.7,6.6,14.7,14.7C47.9,77,41.3,83.6,33.2,83.6z" />
</svg>
</div>
<div class="col" style="text-align: right;">
<p class="card-title" style="font-size: medium; font-weight: 500;"><b>Air Quality</b></p>
<p class="card-subtitle mb-2 text-muted" style="font-size: small; font-weight: 300;">PM2.5
(μg./m<sup>3</sup>)</p>
</div>
</div>
<div id="airquality-value" style="text-align: center; display: block; border-radius: 6px;">
<div class="row">
<div class="col-4 justify-content-center" id="home-pm25-pic" style="align-items: center; display: flex; justify-items: center;">
<!-- <img id="home-pm25-pic" src="icon/pm1.png" width="48"> -->
</div>
<div class="col-4">
<p id="home-pm25" style="font-size: 3rem; color: #36455A; position: relative; font-weight: 500;">-</p>
<p style="font-weight: 400; color: #6A6F7D;">US AQI</p>
</div>
<div class="col-4 justify-content-center" style="align-items: center; display: flex; justify-items: center;">
<span id="pm25state" class="badge rounded-pill text-light"
style="background-color: #A1A8B9; font-weight: 500; align-items: center; font-size: medium; word-wrap: break-word">-</span>
</div>
</div>
</div>
<!-- </div> -->
<div class="card-footer bg-transparent border-light">
<p id="pm25describe" class="text-on-card mt-2" style="font-size: small; margin-top: auto;">-</p>
</div>
</div>
</div>
</div>
<div class="row row-flex" style="color: #36455A;">
<div class="col-6">
<div class="card shadow-sm p-3 mb-2 bg-body rounded"
style="border-width: 0px; display: flex; justify-content: center; ">
<!-- <div class="card-body"> -->
<svg version="1.1" id="thermometer-icon" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 96 96"
style="enable-background:new 0 0 96 96; width: 2rem;" xml:space="preserve">
<style type="text/css">
.st0 {
fill: #737373;
}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v6h6.8v6.1h-6.8v6h6.8v6.1h-6.8v6h6.8v6.6c0,0.9,0.4,1.8,1.2,2.4c2.9,2.1,4.6,5.5,4.6,9.1V70.3z" />
</svg>
<div style="color: #A1A8B9;">
<b>
<p id="home-temperature" style="font-size: 2rem; display: inline; color: #36455A;">-</p>
</b> (°C)
</div>
<p class="card-text" style="color: #6A6F7D;">Temperature</p>
<!-- </div> -->
</div>
</div>
<div class="col-6">
<div class="card shadow-sm p-3 mb-2 bg-body rounded"
style="border-width: 0px; display: flex; justify-content: center; ">
<!-- <div class="card-body"> -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" viewBox="0 0 96 96" style="enable-background:new 0 0 96 96; width: 2rem;"
xml:space="preserve">
<style type="text/css">
.st0 {
fill: #737373;
}
</style>
<path class="st0" d="M33.1,22.1c-5-9.3-6.1-9.3-7.6-9.3s-2.6,0-7.6,9.3c-3.1,5.9-4.8,10.2-4.8,13c0.2,6.8,5.9,12.2,12.7,12
c6.6-0.2,11.8-5.5,12-12C37.8,32.4,36.2,28,33.1,22.1z M25.5,41.5c-3.5,0-6.4-2.9-6.4-6.4c0-2.8,3.8-10.1,6.4-14.2
c2.6,4.2,6.4,11.5,6.4,14.2C31.8,38.7,29,41.5,25.5,41.5z" />
<path class="st0" d="M79.9,22.1c-5-9.3-6.2-9.3-7.6-9.3s-2.6,0-7.6,9.3C61.6,28,60,32.4,60,35.2c0.2,6.8,5.9,12.2,12.7,12
c6.6-0.2,11.8-5.5,12-12C84.7,32.4,83.1,28,79.9,22.1z M72.3,41.5c-3.5,0-6.3-2.9-6.3-6.4c0-2.8,3.8-10.1,6.3-14.2
c2.6,4.2,6.4,11.5,6.4,14.2C78.7,38.7,75.9,41.6,72.3,41.5z" />
<path class="st0" d="M48.6,50.2c-1.4,0-2.6,0-7.6,9.3c-3.2,5.9-4.8,10.3-4.8,13c-0.2,6.8,5.2,12.5,12,12.7s12.5-5.2,12.7-12
c0-0.2,0-0.5,0-0.7c0-2.8-1.6-7.1-4.8-13C51.1,50.2,50,50.2,48.6,50.2z M48.6,78.9c-3.5,0-6.4-2.9-6.4-6.4c0-2.8,3.8-10.1,6.4-14.2
c2.6,4.2,6.4,11.5,6.4,14.2C54.9,76,52.1,78.9,48.6,78.9z" />
</svg>
<div style="color: #A1A8B9;">
<b>
<p id="home-humidity" style="font-size: 2rem; display: inline; color: #36455A;">-</p>
</b> %HR
</div>
<p class="card-text" style="color: #6A6F7D;">Humidity</p>
<!-- </div> -->
</div>
</div>
</div>
</div>
<!-- Camera page -->
<div class="container-fluid mt-3" id="camerapage" style="display: none;">
<div class="row row-flex">
<div class="col">
<div class="card shadow-sm p-3 mb-2 bg-body rounded" style="border-width: 0px;">
<img id="cam01" src="https://occ-hitachi.nexpie.com/data/z1/cam1.png" class="card-img-top" width="100%">
<div class="card-body" style="display: flex; justify-content: space-between;">
<b>
<p style="font-size: large;">Camera 01</p>
</b>
<p id="camera01-time" style=" color: #A1A8B9;"></p>
</div>
</div>
<div class="card shadow-sm p-3 mb-2 bg-body rounded" style="border-width: 0px;">
<img id="cam02" src="https://occ-hitachi.nexpie.com/data/z1/cam2.png" class="card-img-top" width="100%">
<div class="card-body" style="display: flex; justify-content: space-between;">
<b>
<p style="font-size: large;">Camera 02</p>
</b>
<p id="camera02-time" style=" color: #A1A8B9;"></p>
</div>
</div>
<div class="card shadow-sm p-3 mb-1 bg-body rounded" style="border-width: 0px;">
<img id="cam03" src="https://occ-hitachi.nexpie.com/data/z1/cam3.png" class="card-img-top" width="100%">
<div class="card-body" style="display: flex; justify-content: space-between;">
<b>
<p style="font-size: large;">Camera 03</p>
</b>
<p id="camera03-time" style=" color: #A1A8B9;"></p>
</div>
</div>
<div class="card shadow-sm p-3 mb-2 bg-body rounded" style="border-width: 0px;">
<img id="cam04" src="https://occ-hitachi.nexpie.com/data/z1/cam4.png" class="card-img-top" width="100%">
<div class="card-body" style="display: flex; justify-content: space-between;">
<b>
<p style="font-size: large;">Camera 04</p>
</b>
<p id="camera04-time" style=" color: #A1A8B9;"></p>
</div>
</div>
<div class="card shadow-sm p-3 mb-2 bg-body rounded" style="border-width: 0px;">
<img id="cam05" src="https://occ-hitachi.nexpie.com/data/z1/cam5.png" class="card-img-top" width="100%">
<div class="card-body" style="display: flex; justify-content: space-between;">
<b>
<p style="font-size: large;">Camera 05</p>
</b>
<p id="camera05-time" style=" color: #A1A8B9;"></p>
</div>
</div>
<div class="card shadow-sm p-3 mb-2 bg-body rounded" style="border-width: 0px;">
<img id="cam06" src="https://occ-hitachi.nexpie.com/data/z1/cam6.png" onloadstart="getCamera()"
class="card-img-top" width="100%">
<div class="card-body" style="display: flex; justify-content: space-between;">
<b>
<p style="font-size: large;">Camera 06</p>
</b>
<p id="camera06-time" style=" color: #A1A8B9;"></p>
</div>
</div>
</div>
</div>
</div>
<!-- Forecast page -->
<div class="container-fluid mt-3" id="forecastpage" style="display: none;">
<div class="row row-flex">
<div class="col" style="width: 100%;">
<!-- <i class="bi bi-geo" style="color: #36455A; font-size: large;"> Bangkok</i> -->
<div id="locationplain" style="display: inline-block;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 2rem;">
<defs>
<style>
.cls-1 {
fill: #737373;
}
</style>
</defs>
<path class="cls-1"
d="M48,45.65A15.72,15.72,0,1,1,63.72,29.93,15.74,15.74,0,0,1,48,45.65Zm0-25.44a9.72,9.72,0,1,0,9.72,9.72A9.73,9.73,0,0,0,48,20.21Z" />
<path class="cls-1"
d="M48,85.16c-11.74,0-20.58-5-20.58-11.72a8.18,8.18,0,0,1,2-5.23A3,3,0,1,1,34,72a2.29,2.29,0,0,0-.62,1.4c0,2.28,5.81,5.72,14.58,5.72s14.59-3.44,14.59-5.72A2.34,2.34,0,0,0,61.92,72a3,3,0,1,1,4.57-3.89,8.22,8.22,0,0,1,2.1,5.34C68.59,80.12,59.74,85.16,48,85.16Z" />
<path class="cls-1"
d="M48,94.66c-19.63,0-35-8.3-35-18.88,0-5.44,3.92-10.38,11-13.92a3,3,0,0,1,2.67,5.38C21.81,69.67,19,72.78,19,75.78c0,6.09,11.91,12.88,29,12.88s29-6.79,29-12.88c0-3-2.81-6.11-7.71-8.54A3,3,0,0,1,72,61.86c7.12,3.54,11,8.48,11,13.92C83,86.36,67.63,94.66,48,94.66Z" />
<path class="cls-1"
d="M48,74.07c-4.4,0-14.38-13.78-16.33-16.54-4.58-6.46-12.25-18.64-12.25-27.6a28.58,28.58,0,1,1,57.16,0c0,9-7.68,21.13-12.27,27.6C62.36,60.29,52.37,74.07,48,74.07ZM48,7.34A22.61,22.61,0,0,0,25.42,29.93C25.42,41.39,43,63.35,48,67.61c5-4.28,22.59-26.28,22.59-37.68A22.61,22.61,0,0,0,48,7.34Z" />
</svg>
<p id="forecast-location" style="display: inline; font-weight: 400; font-size:x-large; padding: .2rem;">-</p>
<p id="forecasttime" style="color: #6A6F7D;">-</p>
</div>
<div id="forcastplain" style="text-align: center; display: inline-block; width: 100%;">
<img id="forecast-pic" class="mt-5" style="align-items: center;" width="200rem">
<br>
<p id="forecast-temperature"
style="font-size: 5rem; display: inline; color: #36455A; text-align: center; font-weight: 400;">-</p>
<p style="display: inline; font-size: 2rem; color: #A1A8B9;">°C</p>
<p id="forecast-description" style="display: block; font-weight: 500; color: #6A6F7D;"></p>
</div>
<div class="card shadow-sm p-3 mb-2 bg-body rounded" style="border-width: 0px;">
<!-- <div class="card-body"> -->
<!-- <div class="container-fluid"> -->
<div class="row" style="align-items: center;">
<div class="col-4" style="color: #6A6F7D; text-align: center; align-items: center;">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" viewBox="0 0 96 96" style="enable-background:new 0 0 96 96; width: 3rem;" xml:space="preserve">
<style type="text/css">
.st0 {
fill: #737373;
}
</style>
<path class="st0"
d="M45,48c-1.7,0-3,1.3-3,3v19.2c0,4.2-3.4,7.6-7.7,7.6c-3.7,0-6.9-2.7-7.5-6.3c-0.3-1.6-1.8-2.7-3.5-2.5
c-1.6,0.3-2.7,1.8-2.5,3.5c1.3,7.4,8.3,12.4,15.7,11.2C43.2,82.5,48,76.8,48,70.2V51C48,49.3,46.7,48,45,48z" />
<path class="st0" d="M48,11.8V8.5c0-1.7-1.3-3-3-3s-3,1.3-3,3v3.3C22.5,13.4,6.6,28.2,3.7,47.5c-0.2,1.5,0.7,2.9,2.2,3.3l0,0H6
c0.1,0,0.2,0,0.2,0.1l0,0c0.2,0,0.3,0,0.5,0c1.3,0,2.5-0.9,2.9-2.1c1.6-5.4,7.4-8.5,12.8-6.9c3.3,1,5.9,3.6,6.9,6.9
c0.5,1.6,2.1,2.5,3.7,2c1-0.3,1.7-1,2-2c1.6-5.4,7.4-8.5,12.8-6.9c3.3,1,5.9,3.6,6.9,6.9c0.5,1.6,2.2,2.5,3.7,2c1-0.3,1.7-1,2-2
c1.6-5.4,7.4-8.5,12.8-6.9c3.3,1,5.9,3.6,6.9,6.9c0.4,1.5,1.8,2.4,3.4,2.2h0.1l0.3-0.1l0,0c1.5-0.4,2.4-1.8,2.2-3.3
C83.3,28.3,67.5,13.5,48,11.8z M57.7,41.7c-5.6-7-15.8-8.2-22.8-2.6c-1,0.8-1.9,1.7-2.6,2.6c-4.4-5.6-12-7.7-18.7-5
c6.2-11.6,18.3-18.8,31.4-19c13.1,0.1,25.2,7.4,31.4,19C69.7,34,62.1,36,57.7,41.7L57.7,41.7z" />
<path class="st0" d="M12,17.3c3.1,0,5.7-2.5,5.7-5.7c0,0,0,0,0,0C17.6,8.5,13,1.3,12,1.3S6.3,8.5,6.3,11.6
C6.3,14.8,8.8,17.3,12,17.3C12,17.3,12,17.3,12,17.3z" />
<path class="st0"
d="M84.2,7.6c-1.1,0-5.7,7.2-5.7,10.3c0,3.1,2.5,5.7,5.7,5.7s5.7-2.5,5.7-5.7C89.9,14.8,85.2,7.6,84.2,7.6z" />
</svg>
<br> <b>
<p id="forecast-precip" style="color: #36455A; font-size: large;">-</p>
</b>
<p>Precipitation</p>
</div>
<!-- <div class="column-line"></div> -->
<div class="col-4" style="color: #6A6F7D; text-align: center; align-items: center;">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" viewBox="0 0 96 96" style="enable-background:new 0 0 96 96; width: 3rem;" xml:space="preserve">
<style type="text/css">
.st0 {
fill: #737373;
}
</style>
<path class="st0" d="M33.1,22.1c-5-9.3-6.1-9.3-7.6-9.3s-2.6,0-7.6,9.3c-3.1,5.9-4.8,10.2-4.8,13c0.2,6.8,5.9,12.2,12.7,12
c6.6-0.2,11.8-5.5,12-12C37.8,32.4,36.2,28,33.1,22.1z M25.5,41.5c-3.5,0-6.4-2.9-6.4-6.4c0-2.8,3.8-10.1,6.4-14.2
c2.6,4.2,6.4,11.5,6.4,14.2C31.8,38.7,29,41.5,25.5,41.5z" />
<path class="st0" d="M79.9,22.1c-5-9.3-6.2-9.3-7.6-9.3s-2.6,0-7.6,9.3C61.6,28,60,32.4,60,35.2c0.2,6.8,5.9,12.2,12.7,12
c6.6-0.2,11.8-5.5,12-12C84.7,32.4,83.1,28,79.9,22.1z M72.3,41.5c-3.5,0-6.3-2.9-6.3-6.4c0-2.8,3.8-10.1,6.3-14.2
c2.6,4.2,6.4,11.5,6.4,14.2C78.7,38.7,75.9,41.6,72.3,41.5z" />
<path class="st0" d="M48.6,50.2c-1.4,0-2.6,0-7.6,9.3c-3.2,5.9-4.8,10.3-4.8,13c-0.2,6.8,5.2,12.5,12,12.7s12.5-5.2,12.7-12
c0-0.2,0-0.5,0-0.7c0-2.8-1.6-7.1-4.8-13C51.1,50.2,50,50.2,48.6,50.2z M48.6,78.9c-3.5,0-6.4-2.9-6.4-6.4c0-2.8,3.8-10.1,6.4-14.2
c2.6,4.2,6.4,11.5,6.4,14.2C54.9,76,52.1,78.9,48.6,78.9z" />
</svg>
<br> <b>
<p id="forecast-humid" style="color: #36455A; font-size: large;">-</p>
</b>
<p>Humidity</p>
</div>
<!-- <div class="column-line" style="display: inline;"></div> -->
<div class="col-4" style="color: #6A6F7D; text-align: center; align-items: center;">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" viewBox="0 0 96 96" style="enable-background:new 0 0 96 96; width: 3rem;" xml:space="preserve">
<style type="text/css">
.st0 {
fill: #737373;
}
</style>
<path class="st0"
d="M89.5,45.8c0.4-1.5,0.6-3,0.6-4.5c0-9.6-7.8-17.3-17.3-17.3c-1.7,0-3.4,0.2-5,0.7C62.2,13.4,48.6,8.8,37.4,14.3
c-6.4,3.2-11,9.2-12.3,16.3c-6.8,1.1-12,6.6-12.9,13.4c-9,3.3-13.6,13.2-10.3,22.2c2.5,6.9,9,11.4,16.3,11.4h14.6c1.7,0,3-1.3,3-3
s-1.3-3-3-3H18.1c-6.3,0-11.3-5.1-11.3-11.4c0-5.3,3.7-9.9,8.9-11c1.4-0.3,2.4-1.6,2.4-3c0-0.1,0-0.2,0-0.3c0-5.2,4.2-9.5,9.5-9.5
h0.2c1.6,0,2.9-1.2,3-2.8c0.6-9.2,8.6-16.1,17.7-15.5c6.8,0.5,12.6,5,14.7,11.4c0.3,0.8,0.9,1.5,1.8,1.8c0.8,0.3,1.7,0.3,2.5-0.1
c5.6-2.9,12.4-0.7,15.3,4.9c1.6,3,1.7,6.6,0.3,9.7c-0.6,1.4-0.1,3.1,1.3,3.8c5.5,3,7.5,9.9,4.5,15.4c-1.4,2.6-3.8,4.6-6.7,5.4
c-1.6,0.5-2.5,2.2-2,3.7c0.5,1.6,2.2,2.5,3.7,2c9.2-2.8,14.4-12.4,11.6-21.6C94.6,51.1,92.4,48,89.5,45.8z" />
<path class="st0" d="M57.2,59.8H30c-1.7,0-3,1.3-3,3c0,1.7,1.3,3,3,3h27.2c5.2,0,9.4-4.2,9.4-9.4s-4.2-9.4-9.4-9.4
c-3.8,0-7.2,2.3-8.6,5.7c-0.6,1.5,0.1,3.3,1.6,3.9c1.5,0.6,3.3-0.1,3.9-1.6c0.7-1.7,2.7-2.5,4.4-1.8c1.7,0.7,2.5,2.7,1.8,4.4
C59.8,59,58.6,59.8,57.2,59.8z" />
<path class="st0" d="M69.1,71.6H41.8c-1.7,0-3,1.3-3,3s1.3,3,3,3h27.2c1.9,0,3.4,1.5,3.4,3.3c0,1.9-1.5,3.4-3.3,3.4
c-1.4,0-2.6-0.8-3.1-2.1c-0.7-1.5-2.5-2.1-4-1.4c-1.4,0.7-2.1,2.3-1.5,3.8c2,4.8,7.5,7,12.3,5c4.8-2,7-7.5,5-12.3
C76.2,73.9,72.8,71.6,69.1,71.6L69.1,71.6z" />
</svg>
<br> <b>
<p id="forecast-ws" style="color: #36455A; font-size: large;">-</p>
</b>
<p>Wind Speed</p>
</div>
</div>
<!-- </div> -->
<!-- </div> -->
</div>
</div>
</div>
</div>
<!-- </div> -->
<script>
var update_interval = false;
function navigate(tabname) {
// a1a8b9
var tabpic = [
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 40px;"><path class="active-svg" d="M29.3,62.2V60.07a3.3,3.3,0,0,0-6.6,0V62.2a10.26,10.26,0,0,0-7.09,9.72v.33A10.25,10.25,0,0,0,25.84,82.47h.32A10.25,10.25,0,0,0,36.39,72.25v-.33A10.26,10.26,0,0,0,29.3,62.2Z"/><circle class="active-svg" cx="26" cy="72.09" r="10.39"/><path class="active-svg" d="M39.43,57.88v-40a13.92,13.92,0,0,0-27.84,0V58.83A19,19,0,0,0,6.17,72.05v.51A19.43,19.43,0,0,0,25.74,91.79h.52A19.43,19.43,0,0,0,45.83,72.56v-.51A18.89,18.89,0,0,0,39.43,57.88Zm-.21,14.68a12.8,12.8,0,0,1-13,12.62h-.52a12.8,12.8,0,0,1-13-12.62v-.51a12.48,12.48,0,0,1,4.3-9.33,3.32,3.32,0,0,0,1.12-2.48V17.91a7.32,7.32,0,0,1,14.63,0v1h-7.5v6.6h7.5v6.73h-7.5v6.61h7.5V45.6h-7.5v6.61h7.5v7.23a3.3,3.3,0,0,0,1.31,2.64,12.42,12.42,0,0,1,5.08,10Z"/><path class="active-svg" d="M72.17,27.45A9,9,0,1,0,65,24,9,9,0,0,0,72.17,27.45Zm-3-9.43a3.08,3.08,0,0,1,3-2.68l.39,0a3,3,0,0,1,2,1.15,3.06,3.06,0,1,1-4.83,3.75A3,3,0,0,1,69.12,18Z"/><path class="active-svg" d="M53.43,70.11A8.35,8.35,0,0,0,63.68,83.3,8.35,8.35,0,0,0,53.43,70.11ZM60.89,77A2.28,2.28,0,0,1,60,78.56a2.35,2.35,0,1,1-2.89-3.71,2.31,2.31,0,0,1,1.44-.5l.3,0a2.34,2.34,0,0,1,2,2.63Z"/><path class="active-svg" d="M86.93,29.45a3.3,3.3,0,1,0,2.87,3.68A3.3,3.3,0,0,0,86.93,29.45Z"/><path class="active-svg" d="M78.61,67.37a3.3,3.3,0,1,0,2.88,3.68A3.31,3.31,0,0,0,78.61,67.37Z"/><path class="active-svg" d="M57.12,10.82a3.31,3.31,0,1,0-3.3-3.31A3.31,3.31,0,0,0,57.12,10.82Z"/><path class="active-svg" d="M51.15,26.23a3.3,3.3,0,1,0-3.31-3.3A3.3,3.3,0,0,0,51.15,26.23Z"/><path class="active-svg" d="M79.1,41.88a3,3,0,0,0-3,2.58H74.78a9.83,9.83,0,0,0-2.1-3.61l.7-1.2a3.07,3.07,0,0,0,1.1.24,3,3,0,0,0,1.5-5.6l-4.46-2.58a3,3,0,0,0-3.35,4.95l-.68,1.18a9.57,9.57,0,0,0-4.17,0l-.68-1.18a3,3,0,0,0-3.35-4.95l-4.46,2.58a3,3,0,0,0,1.5,5.6,3.07,3.07,0,0,0,1.1-.24l.7,1.2A9.83,9.83,0,0,0,56,44.46H54.67a3,3,0,0,0-6,.42V50a3,3,0,0,0,6,.43H56a9.87,9.87,0,0,0,2.1,3.6l-.69,1.19a3,3,0,0,0-2.61,5.37l4.46,2.58a3,3,0,0,0,3.35-5l.68-1.18a9.57,9.57,0,0,0,4.17,0l.68,1.18a3,3,0,0,0,3.35,5L76,60.62a3,3,0,0,0-2.61-5.37l-.69-1.19a9.87,9.87,0,0,0,2.1-3.6h1.36a3,3,0,0,0,6-.43V44.88A3,3,0,0,0,79.1,41.88ZM61.56,47.46A3.85,3.85,0,1,1,65.4,51.3,3.84,3.84,0,0,1,61.56,47.46Z"/></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 40px;"><path class="active-svg" d="M82,14.75H14A5,5,0,0,0,9,19.7V34.47a5,5,0,0,0,5,5h.72v8.83a33,33,0,0,0,33,33h.62a33,33,0,0,0,33-33V39.42H82a5,5,0,0,0,5-5V19.7A5,5,0,0,0,82,14.75Zm-1,5.9V32.78H14.92V20.65ZM47.69,75.25a26.88,26.88,0,0,1-9.44-1.7V61.05a9.52,9.52,0,0,1,9.5-9.5h.5a9.52,9.52,0,0,1,9.5,9.5v12.5a26.88,26.88,0,0,1-9.44,1.7Zm27.62-27A27,27,0,0,1,63.75,70.39V61.05a15.52,15.52,0,0,0-15.5-15.5h-.5a15.52,15.52,0,0,0-15.5,15.5v9.34A27,27,0,0,1,20.69,48.25V39.42H75.31Z"/><circle class="active-svg" cx="47.96" cy="60.02" r="3"/></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 40px;"><polyline class="active-svg" points="58.42 54.02 48.92 71.5 58.93 71.5 48.65 90.26 39.87 90.26 46.84 77.5 33.95 77.5 46.75 53.95"/><path class="active-svg" d="M27.53,36.87a16.53,16.53,0,0,1,4.2-1.32,17.17,17.17,0,0,1,9.55-14.89,14.5,14.5,0,0,0-14.07-1.08h0a14.45,14.45,0,0,0-5.38,21.91A17.25,17.25,0,0,1,27.53,36.87Z"/><path class="active-svg" d="M89.08,46.72A17.09,17.09,0,0,0,72.72,24.65a17.25,17.25,0,0,0-4,.47,17.12,17.12,0,0,0-9.25-10.39L57,20.19a11.16,11.16,0,0,1,6.5,9.18l.37,4.36L67.8,31.8l.25-.13A11.13,11.13,0,0,1,83.83,41.76a10.91,10.91,0,0,1-1.14,4.86l-1.28,2.62L84,50.59a11.11,11.11,0,0,1-5.11,21H65.16v6H78.89A17.1,17.1,0,0,0,89.08,46.72Z"/><path class="active-svg" d="M17.11,71.56a11.12,11.12,0,0,1-4.67-21.2L9.92,44.92a17.11,17.11,0,0,0,7.19,32.64h12v-6Z"/><path class="active-svg" d="M20.27,48.45,23,50.69l1.78-3c.64-1.11,2.84-4.22,5.27-5.34a11.08,11.08,0,0,1,4.61-1l3.79.06-.57-3.53A10.87,10.87,0,0,1,37.72,36a11.1,11.1,0,0,1,9.72-11l5.22-.65-3-3.84,9-9.06L54.49,7.2l-9.06,9.06a20.24,20.24,0,0,0-9.16-3.78V0h-6V12.48a20.09,20.09,0,0,0-5.59,1.66h0A20.27,20.27,0,0,0,21,16.38L11.78,7.2,7.54,11.44l9.23,9.23A20.48,20.48,0,0,0,13,30H.58v6H13.11A20.38,20.38,0,0,0,20.27,48.45Zm6.94-28.87h0a14.5,14.5,0,0,1,14.07,1.08,17.17,17.17,0,0,0-9.55,14.89,16.53,16.53,0,0,0-4.2,1.32,17.25,17.25,0,0,0-5.7,4.62,14.45,14.45,0,0,1,5.38-21.91Z"/></svg>`
];
// 4c80f8
var tabpicActive = [
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 40px;"><path class="inactive-svg" d="M29.3,62.2V60.07a3.3,3.3,0,0,0-6.6,0V62.2a10.26,10.26,0,0,0-7.09,9.72v.33A10.25,10.25,0,0,0,25.84,82.47h.32A10.25,10.25,0,0,0,36.39,72.25v-.33A10.26,10.26,0,0,0,29.3,62.2Z"/><circle class="inactive-svg" cx="26" cy="72.09" r="10.39"/><path class="inactive-svg" d="M39.43,57.88v-40a13.92,13.92,0,0,0-27.84,0V58.83A19,19,0,0,0,6.17,72.05v.51A19.43,19.43,0,0,0,25.74,91.79h.52A19.43,19.43,0,0,0,45.83,72.56v-.51A18.89,18.89,0,0,0,39.43,57.88Zm-.21,14.68a12.8,12.8,0,0,1-13,12.62h-.52a12.8,12.8,0,0,1-13-12.62v-.51a12.48,12.48,0,0,1,4.3-9.33,3.32,3.32,0,0,0,1.12-2.48V17.91a7.32,7.32,0,0,1,14.63,0v1h-7.5v6.6h7.5v6.73h-7.5v6.61h7.5V45.6h-7.5v6.61h7.5v7.23a3.3,3.3,0,0,0,1.31,2.64,12.42,12.42,0,0,1,5.08,10Z"/><path class="inactive-svg" d="M72.17,27.45A9,9,0,1,0,65,24,9,9,0,0,0,72.17,27.45Zm-3-9.43a3.08,3.08,0,0,1,3-2.68l.39,0a3,3,0,0,1,2,1.15,3.06,3.06,0,1,1-4.83,3.75A3,3,0,0,1,69.12,18Z"/><path class="inactive-svg" d="M53.43,70.11A8.35,8.35,0,0,0,63.68,83.3,8.35,8.35,0,0,0,53.43,70.11ZM60.89,77A2.28,2.28,0,0,1,60,78.56a2.35,2.35,0,1,1-2.89-3.71,2.31,2.31,0,0,1,1.44-.5l.3,0a2.34,2.34,0,0,1,2,2.63Z"/><path class="inactive-svg" d="M86.93,29.45a3.3,3.3,0,1,0,2.87,3.68A3.3,3.3,0,0,0,86.93,29.45Z"/><path class="inactive-svg" d="M78.61,67.37a3.3,3.3,0,1,0,2.88,3.68A3.31,3.31,0,0,0,78.61,67.37Z"/><path class="inactive-svg" d="M57.12,10.82a3.31,3.31,0,1,0-3.3-3.31A3.31,3.31,0,0,0,57.12,10.82Z"/><path class="inactive-svg" d="M51.15,26.23a3.3,3.3,0,1,0-3.31-3.3A3.3,3.3,0,0,0,51.15,26.23Z"/><path class="inactive-svg" d="M79.1,41.88a3,3,0,0,0-3,2.58H74.78a9.83,9.83,0,0,0-2.1-3.61l.7-1.2a3.07,3.07,0,0,0,1.1.24,3,3,0,0,0,1.5-5.6l-4.46-2.58a3,3,0,0,0-3.35,4.95l-.68,1.18a9.57,9.57,0,0,0-4.17,0l-.68-1.18a3,3,0,0,0-3.35-4.95l-4.46,2.58a3,3,0,0,0,1.5,5.6,3.07,3.07,0,0,0,1.1-.24l.7,1.2A9.83,9.83,0,0,0,56,44.46H54.67a3,3,0,0,0-6,.42V50a3,3,0,0,0,6,.43H56a9.87,9.87,0,0,0,2.1,3.6l-.69,1.19a3,3,0,0,0-2.61,5.37l4.46,2.58a3,3,0,0,0,3.35-5l.68-1.18a9.57,9.57,0,0,0,4.17,0l.68,1.18a3,3,0,0,0,3.35,5L76,60.62a3,3,0,0,0-2.61-5.37l-.69-1.19a9.87,9.87,0,0,0,2.1-3.6h1.36a3,3,0,0,0,6-.43V44.88A3,3,0,0,0,79.1,41.88ZM61.56,47.46A3.85,3.85,0,1,1,65.4,51.3,3.84,3.84,0,0,1,61.56,47.46Z"/></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 40px;"><path class="inactive-svg" d="M82,14.75H14A5,5,0,0,0,9,19.7V34.47a5,5,0,0,0,5,5h.72v8.83a33,33,0,0,0,33,33h.62a33,33,0,0,0,33-33V39.42H82a5,5,0,0,0,5-5V19.7A5,5,0,0,0,82,14.75Zm-1,5.9V32.78H14.92V20.65ZM47.69,75.25a26.88,26.88,0,0,1-9.44-1.7V61.05a9.52,9.52,0,0,1,9.5-9.5h.5a9.52,9.52,0,0,1,9.5,9.5v12.5a26.88,26.88,0,0,1-9.44,1.7Zm27.62-27A27,27,0,0,1,63.75,70.39V61.05a15.52,15.52,0,0,0-15.5-15.5h-.5a15.52,15.52,0,0,0-15.5,15.5v9.34A27,27,0,0,1,20.69,48.25V39.42H75.31Z"/><circle class="inactive-svg" cx="47.96" cy="60.02" r="3"/></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="width: 40px;"><polyline class="inactive-svg" points="58.42 54.02 48.92 71.5 58.93 71.5 48.65 90.26 39.87 90.26 46.84 77.5 33.95 77.5 46.75 53.95"/><path class="inactive-svg" d="M27.53,36.87a16.53,16.53,0,0,1,4.2-1.32,17.17,17.17,0,0,1,9.55-14.89,14.5,14.5,0,0,0-14.07-1.08h0a14.45,14.45,0,0,0-5.38,21.91A17.25,17.25,0,0,1,27.53,36.87Z"/><path class="inactive-svg" d="M89.08,46.72A17.09,17.09,0,0,0,72.72,24.65a17.25,17.25,0,0,0-4,.47,17.12,17.12,0,0,0-9.25-10.39L57,20.19a11.16,11.16,0,0,1,6.5,9.18l.37,4.36L67.8,31.8l.25-.13A11.13,11.13,0,0,1,83.83,41.76a10.91,10.91,0,0,1-1.14,4.86l-1.28,2.62L84,50.59a11.11,11.11,0,0,1-5.11,21H65.16v6H78.89A17.1,17.1,0,0,0,89.08,46.72Z"/><path class="inactive-svg" d="M17.11,71.56a11.12,11.12,0,0,1-4.67-21.2L9.92,44.92a17.11,17.11,0,0,0,7.19,32.64h12v-6Z"/><path class="inactive-svg" d="M20.27,48.45,23,50.69l1.78-3c.64-1.11,2.84-4.22,5.27-5.34a11.08,11.08,0,0,1,4.61-1l3.79.06-.57-3.53A10.87,10.87,0,0,1,37.72,36a11.1,11.1,0,0,1,9.72-11l5.22-.65-3-3.84,9-9.06L54.49,7.2l-9.06,9.06a20.24,20.24,0,0,0-9.16-3.78V0h-6V12.48a20.09,20.09,0,0,0-5.59,1.66h0A20.27,20.27,0,0,0,21,16.38L11.78,7.2,7.54,11.44l9.23,9.23A20.48,20.48,0,0,0,13,30H.58v6H13.11A20.38,20.38,0,0,0,20.27,48.45Zm6.94-28.87h0a14.5,14.5,0,0,1,14.07,1.08,17.17,17.17,0,0,0-9.55,14.89,16.53,16.53,0,0,0-4.2,1.32,17.25,17.25,0,0,0-5.7,4.62,14.45,14.45,0,0,1,5.38-21.91Z"/></svg>`
];
console.log(document.getElementById(tabname + "-menu-tab").className);
document.getElementById(tabname + "-menu-tab").className = "active-headertab";
document.getElementById(tabname + "-menu-tab").disabled = true;
document.getElementById(tabname + "-tab-line").style.visibility = "visible";
document.getElementById(tabname + "page").style.display = "inline-block";
var tab = ["home", "camera", "forecast"];
for (let t in tab) {
console.log(tab[t], t);
if (tabname == tab[t] ) {
document.getElementById(tab[t] + "-menu-tab").innerHTML = tabpicActive[t];
continue;
}
document.getElementById(tab[t] + "-menu-tab").className = "inactive-headertab";
document.getElementById(tab[t] + "-menu-tab").disabled = false;
document.getElementById(tab[t] + "-tab-line").style.visibility = "hidden";
document.getElementById(tab[t] + "-menu-tab").innerHTML = tabpic[t];
document.getElementById(tab[t] + "page").style.display = "none";
}
}
function capitalize(str) {
if (typeof str !== "string") { return; }
str = str.toString();
const lower = str.toLowerCase();
return str.charAt(0).toUpperCase() + lower.slice(1);
}
function hexToRgb(hex) {
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, function (m, r, g, b) { return r + r + g + g + b + b; });
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? {
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
} : null;
}
function reviseTimeFormat(t) {
var day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
return t ? day[t.getDay()] + " " + t.getDate().toString() + ", " + month[t.getMonth()] : "-";
}
function getData() {
let currentDate = new Date();
$.ajax({
type: "GET",
url: "https://occ-hitachi.nexpie.com/data/z1/sensor.json?time=" + new Date().getTime(),
complete: function (e, xhr, settings) {
switch (e.status) {
case 500: console.log('500 internal server error!'); break;
case 404: console.log('404 Page not found!'); break;
case 401: console.log('401 unauthorized access'); break;
}
}
}).done(function (data) {
// mock data
// data = JSON.stringify({
// success: 1,
// data: {
// temperature: 37,
// humidity: 72,
// pm10dot0: 55,
// pm2dot5: 87
// }
// });
var obj = jQuery.parseJSON(data);
if (obj.success == 1) {
$("#home-temperature").text(JSON.stringify(Math.round(obj.data.temperature)));
$("#home-humidity").text(JSON.stringify(Math.round(obj.data.humidity)));
$("#home-pm10").text(JSON.stringify(Math.round(obj.data.pm10dot0)));
$("#home-pm25").text(JSON.stringify(Math.round(obj.data.pm2dot5)));
var pm25state_color = ["#48AB37", "#FFC448", "#FA8200", "#ED1717", "#A3377B", "#7A3138"];
var pm25state_name = ["Good", "Moderate", "Unhealthy for<br>Sensitive Groups", "Unhealthy", "Very Unhealthy", "Hazardous"];
var pm25state_fontsize = ["medium", "small", "xx-small", "small", "x-small", "small"];
var pm25state_describe = [
"AQI From 0 to 50. Air quality is satisfactory and poses little or no risk, the air is great today.",
"AQI From 51 to 100. Sensitive individuals should avoid outdoor activity.",
"AQI From 101 to 150. Sensitive individuals in particular as irritation and respiratory problems.",
"AQI From 151 to 200. Harmful for sensitive groups, everyone should reduce outdoor activity.",
"AQI From 201 to 300. General public will be noticeable affected. Avoid outdoor activity.",
"AQI From 301. Serious risk of respiratory and cardiovascular effects. Avoid all outdoor activities."
];
var pm25state_value = [51, 101, 151, 201, 301, 999999999];
var pm25state_svg = [
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.47 170.47" style="justify-content: center; width: 50%; align-items: center;">
<g class="cls-1">
<circle class="cls-2" cx="85.24" cy="85.24" r="85.24" transform="translate(-35.31 85.24) rotate(-45)"/>
<path class="cls-3" d="M129.83,12.49A85.25,85.25,0,0,1,13.41,131.05,85.24,85.24,0,1,0,129.83,12.49Z"/>
<path class="cls-4" d="M11.58,94.23A79.13,79.13,0,0,1,153.45,46,79.14,79.14,0,1,0,22.1,133.67,78.75,78.75,0,0,1,11.58,94.23Z"/>
<path class="cls-5" d="M50.3,98.13a2.82,2.82,0,0,0-4.58,3.07,42.72,42.72,0,0,0,79,.78,2.81,2.81,0,0,0-4.54-3.1C107.72,111,81.24,128.19,50.3,98.13Z"/>
<path class="cls-6" d="M63.23,73A15.79,15.79,0,0,0,34,72.73a2.54,2.54,0,0,0,4.1,2.81c4.73-4.59,12.21-8.27,21,.25A2.54,2.54,0,0,0,63.23,73Z"/>
<path class="cls-6" d="M136.46,73a15.79,15.79,0,0,0-29.2-.29,2.54,2.54,0,0,0,4.1,2.81c4.73-4.59,12.21-8.27,21,.25A2.54,2.54,0,0,0,136.46,73Z"/>
<image
width="474"
height="179"
transform="translate(-28.53 54.93)
scale(0.48)"
xlink:href="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAdoAAACzCAYAAAAuaN2JAAAACXBIWXMAABcRAAAXEQHKJvM/
AAAgAElEQVR4Xuy9z3Ikx5H1+/
OIzPrTANiCPraalI1dk9FoXLRsVtrdDZ+Cz0Pj8+gpuLm7WY2pFzQZTfd+Y8Ommh+hJoCuqswM97vwiMyswp8GNYLUBOK0VWdWFVAoFPKc4+7hESFmRkVFRUVFRcX9ILzrCyoqKioqKir+flSjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4R1SjraioqKiouEdUo62oqKioqLhHVKOtqKioqKi4RzTv+oKK9wAiMp6b2S1fWVFR8RhQNeEXBal/o38h5mS5FfO/0V2/pf5hKyp+caia8CBRjfafgWvJY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3KtBGdDMfsKPX1/fnH0e3kdHgDQwHZejldJkPz9F0iJL1uCaGCS5xNxmcreguHcaPhnthaSck+/bCy+TB6l7YOnCfLgd2wm5C+1l7opskeU6ek/xaGbRbeXp6O/R0EtVkPESJuMItbUU3+Tf2grjelNDe0lUDNvQ8ul1kbWiGZmE9XT74IMDtTXfC9DCeXLYXdu+E0YNlDtxfRmhbZgOWeXiHzg7bGdOhGRJW+B4uCe9QdS8svLS9UCG0X2kpvknODtsllmJ65E2G78te+PGE9rtYHbYLeSPh57EXfgShBYCi//P3aAHgiwgtABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABQJLQAUCS0AFAktABT9BTYLC8R22xmAAAAAAElFTkSuQmCC"/></g>
</svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.47 170.47" style="justify-content: center; width: 50%; align-items: center;"><defs><style>.cls-1{opacity:0.8;}.cls-2{fill:#ffd053;}.cls-3{fill:#ffc448;}.cls-4{fill:#ffd77a;}.cls-5{fill:#2c2c2c;}.cls-6{fill:#654735;}</style></defs><g class="cls-1"><circle class="cls-2" cx="85.24" cy="85.24" r="85.24" transform="translate(-35.31 85.24) rotate(-45)"/><path class="cls-3" d="M129.83,12.49A85.25,85.25,0,0,1,13.41,131.05,85.24,85.24,0,1,0,129.83,12.49Z"/><path class="cls-4" d="M11.58,94.23A79.13,79.13,0,0,1,153.45,46,79.14,79.14,0,1,0,22.1,133.67,78.75,78.75,0,0,1,11.58,94.23Z"/><path class="cls-5" d="M63.23,73A15.79,15.79,0,0,0,34,72.73a2.54,2.54,0,0,0,4.1,2.81c4.73-4.59,12.21-8.27,21,.25A2.54,2.54,0,0,0,63.23,73Z"/><path class="cls-5" d="M136.46,73a15.79,15.79,0,0,0-29.2-.29,2.54,2.54,0,0,0,4.1,2.81c4.73-4.59,12.21-8.27,21,.25A2.54,2.54,0,0,0,136.46,73Z"/><path class="cls-6" d="M117.9,118.56a34.36,34.36,0,0,0-14.53-11,43.62,43.62,0,0,0-18.09-3.27,46,46,0,0,0-17.78,4.2,40.1,40.1,0,0,0-14.33,10.88,2,2,0,0,0,2.14,3.17l2-.61c4.68-1.44,9.1-2.8,13.52-3.75a79.5,79.5,0,0,1,14.82-1.9,70.57,70.57,0,0,1,14.77,1.11,92.94,92.94,0,0,1,15.2,4.28,2,2,0,0,0,2.29-3.06Z"/></g></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.47 170.47" style="justify-content: center; width: 50%; align-items: center;"><defs><style>.cls-1{opacity:0.8;}.cls-2{fill:#ff9600;}.cls-3{fill:#fa8200;}.cls-4{fill:#ff9d2e;}.cls-5{fill:#71523f;}.cls-6{fill:#ff6669;}.cls-7{fill:#2c2c2c;}</style></defs><g class="cls-1"><circle class="cls-2" cx="85.24" cy="85.24" r="85.24" transform="translate(-12.55 155.72) rotate(-80.78)"/><path class="cls-3" d="M129.83,12.49A85.25,85.25,0,0,1,13.41,131.05,85.24,85.24,0,1,0,129.83,12.49Z"/><path class="cls-4" d="M11.58,94.23A79.13,79.13,0,0,1,153.45,46,79.14,79.14,0,1,0,22.1,133.67,78.75,78.75,0,0,1,11.58,94.23Z"/><path class="cls-5" d="M121.46,126.1a36.46,36.46,0,0,0-72.45,0Z"/><path class="cls-6" d="M49,126.1s30.57-22.54,72.45,0Z"/><path class="cls-7" d="M39.26,86.61A3.61,3.61,0,0,1,37,80.15l12.29-9.58L36.62,63.1a3.62,3.62,0,1,1,3.67-6.23L57.58,67A3.61,3.61,0,0,1,58,73L41.48,85.85A3.62,3.62,0,0,1,39.26,86.61Z"/><path class="cls-7" d="M131.21,86.61a3.64,3.64,0,0,1-2.22-.76L112.51,73a3.6,3.6,0,0,1,.39-6l17.29-10.17a3.61,3.61,0,0,1,3.66,6.23l-12.71,7.47,12.3,9.58a3.61,3.61,0,0,1-2.23,6.46Z"/></g></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.47 170.47" style="justify-content: center; width: 50%; align-items: center;"><defs><style>.cls-1{opacity:0.8;}.cls-2{fill:#ff2019;}.cls-3{fill:#ed1717;}.cls-4{fill:#ff3535;}.cls-5{fill:#2c2c2c;}.cls-6{fill:#654735;}</style></defs><g class="cls-1"><circle class="cls-2" cx="85.24" cy="85.24" r="85.24" transform="translate(-12.55 155.72) rotate(-80.78)"/><path class="cls-3" d="M129.83,12.49A85.25,85.25,0,0,1,13.41,131.05,85.24,85.24,0,1,0,129.83,12.49Z"/><path class="cls-4" d="M11.58,94.23A79.13,79.13,0,0,1,153.45,46,79.14,79.14,0,1,0,22.1,133.67,78.75,78.75,0,0,1,11.58,94.23Z"/><ellipse class="cls-5" cx="53.83" cy="69.37" rx="6.28" ry="10.59"/><path class="cls-5" d="M122.92,69.37c0,5.85-2.81,10.59-6.28,10.59s-6.28-4.74-6.28-10.59,2.81-10.58,6.28-10.58S122.92,63.53,122.92,69.37Z"/><path class="cls-6" d="M120.17,123.12a2.82,2.82,0,0,0,4.58-3.07,42.72,42.72,0,0,0-79-.78,2.81,2.81,0,0,0,4.54,3.1C62.75,110.27,89.23,93.06,120.17,123.12Z"/><rect class="cls-5" x="55.1" y="34.48" width="8.08" height="26.97" transform="translate(-16.59 55.87) rotate(-45)"/><rect class="cls-5" x="107.29" y="34.48" width="8.08" height="26.97" transform="translate(66.52 -64.67) rotate(45)"/></g></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.47 170.47" style="justify-content: center; width: 50%; align-items: center;"><defs><style>.cls-1{opacity:0.8;}.cls-2{fill:#c3428d;}.cls-3{fill:#a3377b;}.cls-4{fill:#be5595;}.cls-5{fill:#2c2c2c;}.cls-6{fill:#654735;}</style></defs><g class="cls-1"><circle class="cls-2" cx="85.24" cy="85.24" r="85.24" transform="translate(-35.31 85.24) rotate(-45)"/><path class="cls-3" d="M129.83,12.49A85.25,85.25,0,0,1,13.41,131.05,85.24,85.24,0,1,0,129.83,12.49Z"/><path class="cls-4" d="M11.58,94.23A79.13,79.13,0,0,1,153.45,46,79.14,79.14,0,1,0,22.1,133.67,78.75,78.75,0,0,1,11.58,94.23Z"/><path class="cls-5" d="M39.26,83.24A3.61,3.61,0,0,1,37,76.78L49.33,67.2,36.62,59.73a3.62,3.62,0,1,1,3.67-6.23L57.58,63.67a3.61,3.61,0,0,1,.39,6L41.48,82.48A3.62,3.62,0,0,1,39.26,83.24Z"/><path class="cls-5" d="M131.21,83.24a3.64,3.64,0,0,1-2.22-.76L112.51,69.63a3.6,3.6,0,0,1,.39-6L130.19,53.5a3.61,3.61,0,0,1,3.66,6.23L121.14,67.2l12.3,9.58a3.61,3.61,0,0,1-2.23,6.46Z"/><path class="cls-6" d="M114.61,96.15a3.53,3.53,0,0,1,2.73,1.3l11.53,14.33a3.5,3.5,0,1,1-5.45,4.39l-8.55-10.61-12,18a3.51,3.51,0,0,1-2.91,1.56h0A3.48,3.48,0,0,1,97,123.59L85.24,106,73.45,123.59a3.48,3.48,0,0,1-2.91,1.56h0a3.51,3.51,0,0,1-2.91-1.56l-12-18-8.54,10.61a3.5,3.5,0,0,1-5.46-4.39L53.14,97.45a3.49,3.49,0,0,1,5.63.26l11.77,17.64L82.33,97.7a3.51,3.51,0,0,1,5.82,0l11.78,17.65L111.7,97.71a3.5,3.5,0,0,1,2.75-1.56Z"/></g></svg>`,
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.47 170.47" style="justify-content: center; width: 50%; align-items: center;"><defs><style>.cls-1{opacity:0.8;}.cls-2{fill:#963b41;}.cls-3{fill:#7a3138;}.cls-4{fill:#ad454f;}.cls-5{fill:#2c2c2c;}</style></defs><g class="cls-1"><circle class="cls-2" cx="85.24" cy="85.24" r="85.24" transform="translate(-35.31 85.24) rotate(-45)"/><path class="cls-3" d="M129.83,12.49A85.25,85.25,0,0,1,13.41,131.05,85.24,85.24,0,1,0,129.83,12.49Z"/><path class="cls-4" d="M11.58,94.23A79.13,79.13,0,0,1,153.45,46,79.14,79.14,0,1,0,22.1,133.67,78.75,78.75,0,0,1,11.58,94.23Z"/><path class="cls-5" d="M138,111c-2.26-7.36-7.77-12.12-14-12.12a12.62,12.62,0,0,0-6.79,2,17.67,17.67,0,0,0-3.87,3.75c-.56.66-1.08,1.28-1.64,1.85a11.73,11.73,0,0,1-4.15,2.65A9.43,9.43,0,0,1,97,105.77c-3-4.36-7.33-6.86-11.76-6.86A13,13,0,0,0,76,103.07a20.77,20.77,0,0,0-1.75,2,19,19,0,0,1-1.41,1.67,11.5,11.5,0,0,1-3.39,2.11,8.45,8.45,0,0,1-4.9.78,11,11,0,0,1-5.88-3.15c-.51-.53-1-1.11-1.55-1.73a19.21,19.21,0,0,0-4.07-3.89,12.64,12.64,0,0,0-6.71-2c-6.12,0-11.58,4.62-13.91,11.78a2.89,2.89,0,0,0,1.26,3.42,2.3,2.3,0,0,0,3-.66c2.93-3.69,7.79-7,12.66-5.34,2.39.83,4.37,3,6,5a14,14,0,0,0,8.7,5.12,11.59,11.59,0,0,0,1.66.12,13.77,13.77,0,0,0,10.64-5.58l.51-.66a10,10,0,0,1,7.21-4.55,8.38,8.38,0,0,1,4.81.88A14,14,0,0,1,91.3,110a18.07,18.07,0,0,1,2.39,2.51,21.16,21.16,0,0,0,2.79,2.9,12.34,12.34,0,0,0,16.88-.77c.39-.37,1.07-1.08,1.86-1.91,1-1.08,2.94-3.08,3.41-3.4a9,9,0,0,1,11,.28,22,22,0,0,1,4.16,4.15,2.31,2.31,0,0,0,2.95.67A2.85,2.85,0,0,0,138,111Z"/><rect class="cls-5" x="41.29" y="50.63" width="7.8" height="35.14" transform="translate(-34.99 51.93) rotate(-45)"/><rect class="cls-5" x="41.29" y="50.63" width="7.8" height="35.14" transform="translate(61.46 -11.98) rotate(45)"/><rect class="cls-5" x="121.38" y="50.63" width="7.8" height="35.14" transform="translate(-11.53 108.56) rotate(-45)"/><rect class="cls-5" x="121.38" y="50.63" width="7.8" height="35.14" transform="translate(84.92 -68.61) rotate(45)"/></g></svg>`
];
for (var i = 0; i < pm25state_value.length; i++) {
if (obj.data.pm2dot5 < pm25state_value[i]) {
var rgb = hexToRgb(pm25state_color[i]);
console.log(`(${rgb.r},${rgb.g},${rgb.b},.3)`);
document.getElementById("airquality-value").style.backgroundColor = `rgba(${rgb.r},${rgb.g},${rgb.b},0.3)`
document.getElementById("pm25state").style.backgroundColor = pm25state_color[i];
document.getElementById("pm25state").style.fontSize = pm25state_fontsize[i];
document.getElementById("pm25state").innerHTML = pm25state_name[i];
document.getElementById("pm25describe").innerHTML = pm25state_describe[i];
document.getElementById("home-pm25-pic").innerHTML = pm25state_svg[i];
console.log(pm25state_color[i], pm25state_name[i]);
break;
}
}
console.log(obj.data)
}
});
}
function getCamera() {
$("#cam01").attr('src', 'https://occ-hitachi.nexpie.com/data/z1/cam1.png?time=' + new Date().getTime());
$("#cam02").attr('src', 'https://occ-hitachi.nexpie.com/data/z1/cam2.png?time=' + new Date().getTime());
$("#cam03").attr('src', 'https://occ-hitachi.nexpie.com/data/z1/cam3.png?time=' + new Date().getTime());
$("#cam04").attr('src', 'https://occ-hitachi.nexpie.com/data/z1/cam4.png?time=' + new Date().getTime());
$("#cam05").attr('src', 'https://occ-hitachi.nexpie.com/data/z1/cam5.png?time=' + new Date().getTime());
$("#cam06").attr('src', 'https://occ-hitachi.nexpie.com/data/z1/cam6.png?time=' + new Date().getTime());
var date_show = new Date().toLocaleString();
console.log(date_show);
$("#camera01-time").text(date_show);
$("#camera02-time").text(date_show);
$("#camera03-time").text(date_show);
$("#camera04-time").text(date_show);
$("#camera05-time").text(date_show);
$("#camera06-time").text(date_show);
}
function getForecast() {
$.ajax({
type: "GET",
url: "https://occ-hitachi.nexpie.com/data/z1/forecast.json?time=" + new Date().getTime(),
complete: function (e, xhr, settings) {
switch (e.status) {
case 500:
console.log('500 internal server error!');
break;
case 404:
console.log('404 Page not found!');
break;
case 401:
console.log('401 unauthorized access');
break;
}
}
}).done(function (data) {
var obj = data;
if (typeof data == "string") {
obj = jQuery.parseJSON(data);
}
console.log(obj);
if (obj.success == 1) {
var now = Date.now();
var dt, location, temperature, precip, humid, ws, pic, description;
for (let d in obj.data.list) {
console.log(obj.data.list[d].dt * 1000, now);
if (obj.data.list[d].dt * 1000 > now) {
dt = obj.data.list[d].dt;
location = obj.data.city.name;
temperature = obj.data.list[d].main["temp"] - 273.15;
precip = obj.data.list[d].clouds["all"];
humid = obj.data.list[d].main["humidity"]
ws = obj.data.list[d].wind["speed"];
pic = obj.data.list[d].weather[0]["icon"] + ".png";
description = obj.data.list[d].weather[0]["description"]
console.log(pic, description);
break;
}
}
document.getElementById("forecast-location").innerText = location || "-";
document.getElementById("forecasttime").innerText = dt ? reviseTimeFormat(new Date(dt * 1000)) : "-";
document.getElementById("forecast-pic").src = "icon/" + pic;
$("#forecast-description").text(capitalize(description || "-"));
$("#forecast-temperature").text(
typeof (temperature) == "number" ?
Math.round(temperature).toString() : "-"
);
// $("#forecast-precip").text(precip ? precip.toString() + " %" : "-");
$("#forecast-humid").text(humid ? humid.toString() + " %" : "-");
$("#forecast-ws").text(ws ? ws.toString() + " km/h" : "-");
}
});
}
function showtime() {
document.getElementById("showtime").innerText = reviseTimeFormat(new Date());
}
function updateHTML() {
if (new Date().getMinutes() == 0 && !update_interval) {
getCamera();
getData();
getForecast();
showtime();
update_interval = true;
console.log("It's time to update!");
} else if (new Date().getMinutes() != 0 && update_interval) {
update_interval = false;
}
}
function init() {
getCamera();
getData();
getForecast();
showtime();
navigate('home');
console.log("init")
setInterval(updateHTML, 1000);
}
init();
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa"
crossorigin="anonymous"></script>
</body>
<footer>
<div class="container-fluid">
<p style="color: #A1A8B9;">Copyright © 2022 Created by NEXPIE Co., Ltd.</p>
</div>
</footer>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment