Prepare screens for robolab

This commit is contained in:
Henri Bergius 2017-12-05 14:50:17 +01:00
parent 55c45d2139
commit 16c4f998a0
3 changed files with 240 additions and 0 deletions

View file

@ -35,9 +35,12 @@ The URLs given here will generally only work inside the c-base member network.
* [c-lab (with music)](http://c-flo.cbrp3.c-base.org/c_lab-music/) * [c-lab (with music)](http://c-flo.cbrp3.c-base.org/c_lab-music/)
* [soundlab](http://c-flo.cbrp3.c-base.org/soundlab/) * [soundlab](http://c-flo.cbrp3.c-base.org/soundlab/)
* [weltenbaulab](http://c-flo.cbrp3.c-base.org/weltenbaulab/) * [weltenbaulab](http://c-flo.cbrp3.c-base.org/weltenbaulab/)
* [nerdarea](http://c-flo.cbrp3.c-base.org/nerdarea/)
* [nerdarea (with music)](http://c-flo.cbrp3.c-base.org/nerdarea-music/) * [nerdarea (with music)](http://c-flo.cbrp3.c-base.org/nerdarea-music/)
* [workshop](http://c-flo.cbrp3.c-base.org/workshop/) * [workshop](http://c-flo.cbrp3.c-base.org/workshop/)
* [workshop (with music)](http://c-flo.cbrp3.c-base.org/workshop-music/) * [workshop (with music)](http://c-flo.cbrp3.c-base.org/workshop-music/)
* [robolab](http://c-flo.cbrp3.c-base.org/robolab/)
* [robolab (with music)](http://c-flo.cbrp3.c-base.org/robolab-music/)
There are also screens available from c-beam: There are also screens available from c-beam:

130
robolab-music/index.html Normal file
View file

@ -0,0 +1,130 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>c-base robolab</title>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
<script src="../dist/infoscreens.js"></script>
<link rel="stylesheet" href="../theme/c-base.css">
<style>
main {
height: 88vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;
}
#crew-online, #mpd {
width: 69vw;
height: 45vh;
margin-left: 1vw;
}
cbase-userlist, cbase-mpd {
font-size: 5vmin;
display: block;
width: 68vw;
height: 43vh;
overflow-y: hidden;
box-sizing: border-box;
padding: 2vmin;
border: 2px solid #204a87;
margin-top: 2vmin;
background-color: rgba(0, 0, 0, 0.98);
}
cbase-mpd {
margin-top: 0;
height: 31vh;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#drink-status, #bar-history {
width: 30vw;
height: 45vh
}
cbase-currentstate {
display: block;
width: 30vw;
height: 8vh;
color: #000;
font-family: 'ceva', sans-serif;
text-align: center;
font-size: 4vmin;
line-height: 8vh;
margin-top: 1vh;
margin-bottom: 1vh;
}
#bar-status {
height: 23vh;
font-size: 12vmin;
line-height: 25vh;
}
section h2 {
line-height: 5vh;
font-size: 3vmin;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
margin: 0px;
padding: 0px;
}
cbase-time, h1 {
font-family: 'ceva', sans-serif;
font-weight: normal;
font-size: 6vmin;
line-height: 10vh;
color: #fff;
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;
}
#bar-history cbase-polar {
width: 40vmin;
height: 40vmin;
display: block;
margin-left: auto;
margin-right: auto;
</style>
</head>
<body class="station">
<main>
<section id="crew-online">
<cbase-userlist interval="10"></cbase-userlist>
</section>
<section id="drinks-status">
<cbase-currentstate id="bar-status" timeseries="bar.open" interval="10">bar</cbase-currentstate>
<cbase-currentstate id="replicator-beer-1" timeseries="bar.replicator.2" interval="120">berliner 1</cbase-currentstate>
<cbase-currentstate id="replicator-beer-2" timeseries="bar.replicator.3" interval="120">berliner 2</cbase-currentstate>
</section>
<section id="mpd">
<h2>roboblast</h2>
<cbase-mpd mpd="roboblast" interval="2"></cbase-mpd>
</section>
<section id="bar-history">
<h2>bar (last 7d)</h2>
<cbase-polar timeseries="bar.open" days="7" size="40" percentage></cbase-polar>
</section>
</main>
<h1 id="screen-title">c-base robolab</h1>
<cbase-time id="current-time" interval="1" format="HH:MM"></cbase-time>
</body>
</html>

107
robolab/index.html Normal file
View file

@ -0,0 +1,107 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>c-base robolab</title>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
<script src="../dist/infoscreens.js"></script>
<link rel="stylesheet" href="../theme/c-base.css">
<style>
main {
height: 88vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;
}
#crew-online, #mainhall-motion {
width: 70vw;
height: 45vh;
}
#drink-status, #softdrinks-status {
width: 30vw;
height: 45vh
}
cbase-currentstate {
display: block;
width: 30vw;
height: 8vh;
color: #000;
font-family: 'ceva', sans-serif;
text-align: center;
font-size: 4vmin;
line-height: 8vh;
margin-top: 1vh;
margin-bottom: 1vh;
}
#bar-status {
height: 23vh;
font-size: 12vmin;
line-height: 25vh;
}
section h2 {
line-height: 5vh;
font-size: 3vmin;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
margin: 0px;
padding: 0px;
}
cbase-time, h1 {
font-family: 'ceva', sans-serif;
font-weight: normal;
font-size: 6vmin;
line-height: 10vh;
color: #fff;
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;
}
</style>
</head>
<body class="station">
<main>
<section id="crew-online">
<h2>power consumption</h2>
<cbase-linechart timeseries="powermon.load" width="69" height="40"></cbase-linechart>
</section>
<section id="drinks-status">
<cbase-currentstate id="bar-status" timeseries="bar.open" interval="10">bar</cbase-currentstate>
<cbase-currentstate id="replicator-beer-1" timeseries="bar.replicator.2" interval="120">berliner 1</cbase-currentstate>
<cbase-currentstate id="replicator-beer-2" timeseries="bar.replicator.3" interval="120">berliner 2</cbase-currentstate>
</section>
<section id="mainhall-motion">
<h2>network traffic</h2>
<cbase-linechart timeseries="echelon.kdg.rx echelon.kdg.tx echelon.ipb.rx echelon.ipb.tx" width="69" height="40"></cbase-linechart>
</section>
<section id="softdrinks-status">
<cbase-currentstate timeseries="bar.replicator.1" interval="120">club mate</cbase-currentstate>
<cbase-currentstate timeseries="bar.replicator.4" interval="120">flora</cbase-currentstate>
<cbase-currentstate timeseries="bar.replicator.5" interval="120">premiumcola</cbase-currentstate>
<cbase-currentstate timeseries="bar.replicator.6" interval="120">spezi</cbase-currentstate>
</section>
</main>
<h1 id="screen-title">c-base robolab</h1>
<cbase-time id="current-time" interval="1" format="HH:MM"></cbase-time>
</body>
</html>