testing trash osc

master
louisafriederike 8 months ago
parent f51973ff7f
commit 11c2211009

@ -19,8 +19,21 @@ var udpPort = new osc.UDPPort({
metadata: true
});
var trashcan = new osc.UDPPort({
// This is the port we're listening on.
localAddress: "0.0.0.0",
localPort: 57122,
// This is where sclang is listening for OSC messages.
remoteAddress: "192.168.2.15", //this is the hamsters ip
remotePort: 8888, //this is the hamsters port :*s
metadata: true
});
// Open the socket.
udpPort.open();
trashcan.open();
const { SerialPort } = require('serialport')
const { ReadlineParser } = require('@serialport/parser-readline')
@ -60,6 +73,11 @@ io.on('connection', function(socket) {
console.log('[user][' + socket.id + '][' + msg + ']');
socket.broadcast.emit('chat message', msg);
if (msg=="9292"){
console.log('secret trash received');
}
var oscmsg = {
address: "/silentserver",
args: [

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

@ -16,7 +16,7 @@
<meta property="og:image" content="" />
</head>
<body>
<!-- <img id="logo" src="img/logo.png">-->
<div class="profile"> <p id="title">Welcome to Eixogen, "player name".</p>
<button >profile</button>
@ -27,7 +27,9 @@
<div class="flex-container" >
<div class="flex-left">
<div>
<embed class ="embed" src="https://wttr.in/Rotterdam?T0">
<img id="logo" src="img/bw.png">
<embed class ="embed" id="weather" src="https://wttr.in/Rotterdam?T0">
</div>
<div class="section" id="objective"><br><br><br><br>
<p>~* *..* active trails ~~</p>

@ -312,6 +312,7 @@ button:active{
width: 30vw;
}
.section-main{
border: 2px solid #3d3f38;
@ -402,6 +403,11 @@ input[type="text"] {
}
#logo{
max-width: 50vw;
min-width: 360px;
max-width: 480px;
position: sticky;
z-index: 2;
}
#weather{
z-index: 0;
}
Loading…
Cancel
Save