infoscreens/bar-status/index.html

110 lines
3.2 KiB
HTML
Raw Permalink Normal View History

2017-11-30 17:48:30 +01:00
<!DOCTYPE html
<html>
<head>
<meta charset="utf-8">
<title>c-base bar status</title>
2018-12-09 21:42:17 +01:00
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
<script src="../vendor/plotly.js/plotly.min.js"></script>
<script src="../lib/infoscreens.js"></script>
2017-11-30 17:48:30 +01:00
<link rel="stylesheet" href="../theme/c-base.css">
<style>
h2 {
2017-11-30 18:49:48 +01:00
font-size: 3vmin;
2017-11-30 17:48:30 +01:00
margin: 0px;
padding: 0px;
text-align: center;
width: 20vw;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
main {
2017-11-30 18:10:36 +01:00
margin-top: 5vh;
margin-bottom: 5vh;
2017-11-30 17:48:30 +01:00
display: flex;
2017-12-05 12:27:48 +01:00
height: 50vh;
2017-11-30 17:48:30 +01:00
align-items: center;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;
}
main section {
margin: 2px;
}
2017-12-05 12:27:48 +01:00
cbase-linechart {
margin-left: auto;
margin-right: auto;
display: block;
width: 90vw;
height: 40vh;
}
2017-11-30 17:48:30 +01:00
cbase-currentstate {
display: block;
2017-11-30 18:06:06 +01:00
width: 20vw;
height: 20vh;
2017-12-05 13:21:49 +01:00
color: #000;
font-family: 'ceva', sans-serif;
text-align: center;
font-size: 4vmin;
line-height: 20vh;
2017-11-30 18:06:06 +01:00
}
2017-12-05 12:27:48 +01:00
cbase-time, h1 {
2017-11-30 18:06:06 +01:00
font-family: 'ceva', sans-serif;
2017-12-05 12:27:48 +01:00
font-weight: normal;
font-size: 6vmin;
line-height: 10vh;
2017-11-30 18:06:06 +01:00
color: #fff;
2017-12-05 12:27:48 +01:00
margin: 0px;
padding: 0px;
}
#screen-title {
text-align: left;
padding-left: 3vw;
position: absolute;
left: 0px;
bottom: 0px;
}
#current-time {
position: absolute;
right: 0px;
bottom: 0px;
text-align: right;
padding-right: 3vw;
2017-11-30 17:48:30 +01:00
}
</style>
</head>
2017-11-30 18:10:36 +01:00
<body class="station">
2017-11-30 17:48:30 +01:00
<main>
<section>
<cbase-currentstate timeseries="bar.open" interval="10" showrecent="3">bar status</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.1" interval="120">club mate</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.2" interval="120">berliner 1</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.3" interval="120">berliner 2</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.4" interval="120">flora</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.5" interval="120">premiumcola</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.6" interval="120">spezi</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
<section>
2017-12-05 13:21:49 +01:00
<cbase-currentstate timeseries="bar.replicator.7" interval="120">kraftmalz</cbase-currentstate>
2017-11-30 17:48:30 +01:00
</section>
</main>
2017-12-05 13:19:24 +01:00
<cbase-linechart timeseries="bar.open crew.online" shape="vhv" width="84" height="30" days="2"></cbase-linechart>
2017-12-05 12:44:38 +01:00
<h1 id="screen-title">c-base space station</h1>
2017-12-05 12:27:48 +01:00
<cbase-time id="current-time" interval="1" format="HH:MM"></cbase-time>
2017-11-30 17:48:30 +01:00
</body>
</html>