testing trash osc

master
louisafriederike 1 year ago
parent f51973ff7f
commit 11c2211009

@ -19,8 +19,21 @@ var udpPort = new osc.UDPPort({
metadata: true 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. // Open the socket.
udpPort.open(); udpPort.open();
trashcan.open();
const { SerialPort } = require('serialport') const { SerialPort } = require('serialport')
const { ReadlineParser } = require('@serialport/parser-readline') const { ReadlineParser } = require('@serialport/parser-readline')
@ -60,6 +73,11 @@ io.on('connection', function(socket) {
console.log('[user][' + socket.id + '][' + msg + ']'); console.log('[user][' + socket.id + '][' + msg + ']');
socket.broadcast.emit('chat message', msg); socket.broadcast.emit('chat message', msg);
if (msg=="9292"){
console.log('secret trash received');
}
var oscmsg = { var oscmsg = {
address: "/silentserver", address: "/silentserver",
args: [ 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="" /> <meta property="og:image" content="" />
</head> </head>
<body> <body>
<!-- <img id="logo" src="img/logo.png">-->
<div class="profile"> <p id="title">Welcome to Eixogen, "player name".</p> <div class="profile"> <p id="title">Welcome to Eixogen, "player name".</p>
<button >profile</button> <button >profile</button>
@ -27,7 +27,9 @@
<div class="flex-container" > <div class="flex-container" >
<div class="flex-left"> <div class="flex-left">
<div> <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>
<div class="section" id="objective"><br><br><br><br> <div class="section" id="objective"><br><br><br><br>
<p>~* *..* active trails ~~</p> <p>~* *..* active trails ~~</p>

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