|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>digitwin dashboard</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<link rel="icon" href="img/favicon.ico" type="image/x-icon" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link href="style.css" rel="stylesheet">
|
|
|
|
<script src='socket.io/socket.io.js'></script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<p id="title"> ~* *..* welcome to the dashboard ~</p>
|
|
|
|
<br><br>
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="flex-container">
|
|
|
|
<!-- 16 divs -->
|
|
|
|
<div>
|
|
|
|
<p class="data">
|
|
|
|
<br>
|
|
|
|
module name: wire::;;
|
|
|
|
<br>
|
|
|
|
temperature: 26 degrees
|
|
|
|
<br>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div>2</div>
|
|
|
|
<div>3</div>
|
|
|
|
<div>4</div>
|
|
|
|
<div>5</div>
|
|
|
|
<div>6</div>
|
|
|
|
<div>7</div>
|
|
|
|
<div>8</div>
|
|
|
|
<div>9</div>
|
|
|
|
<div>10</div>
|
|
|
|
<div>11</div>
|
|
|
|
<div>12</div>
|
|
|
|
<div>13</div>
|
|
|
|
<div>14</div>
|
|
|
|
<div>15</div>
|
|
|
|
<div>16</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
socket.on('node-data', function(data) {
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
// Split the data into separate parts
|
|
|
|
const [node, value] = data.split(' ');
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="js/input.js"></script>
|
|
|
|
</html>
|