Changed MQTT server to local and fixed offset

nm_live
noah metz 2024-02-02 18:27:47 +00:00
parent 8313d5de4e
commit ced9ba1384
4 changed files with 21 additions and 13 deletions

@ -6,7 +6,7 @@ html{
background-color: pink;
}
body{
div{
margin: 0;
padding: 0;
display: flex;
@ -27,10 +27,15 @@ iframe{
}
</style>
</head>
<body>
<iframe src="index.html?field=1/1" width="1176" height="168"></iframe>
<iframe src="index.html?field=1/2" width="1176" height="168"></iframe>
<iframe src="index.html?field=1/3" width="896" height="128"></iframe>
<iframe src="index.html?field=1/4" width="896" height="128"></iframe>
</body>
<div>
<body>
<iframe src="index.html?field=1/1" width="896" height="128"></iframe>
<iframe src="index.html?field=1/2" width="1176" height="168"></iframe>
<iframe src="index.html?field=1/3" width="896" height="128"></iframe>
<iframe src="index.html?field=2/1" width="896" height="128"></iframe>
<iframe src="index.html?field=2/2" width="1176" height="168"></iframe>
<iframe src="index.html?field=2/3" width="896" height="128"></iframe>
</body>
</div>
</html>

@ -59,7 +59,7 @@ let display_state = "init";
/** @type {string} */
let display_class = "side-display";
const client = mqtt.connect("ws://metznet.ca:8883");
const client = mqtt.connect("ws://127.0.0.1:8883");
client.on("connect", () => {
@ -364,8 +364,9 @@ p {
.gif-foreground {
z-index: 1;
position: relative;
top: -103.3%;
position: absolute;
top: 0;
height: 100%;
width: 100%;
}
@ -376,6 +377,8 @@ p {
.gif-background {
z-index: 0;
position: absolute;
top: 0;
height: 100%;
width: 100%;
}

@ -9,7 +9,7 @@ let led_sizes = {
"side": { width: 896, height: 128 }
}
const client = mqtt.connect("ws://metznet.ca:8883");
const client = mqtt.connect("ws://127.0.0.1:8883");
let displays = {};
let division_names = {};
let divisions = {};
@ -101,4 +101,4 @@ client.on("message", (topic, message) => {
{/each}
</div>
{/if}
</div>
</div>

@ -1,7 +1,7 @@
<script>
import mqtt from "mqtt";
const client = mqtt.connect("ws://metznet.ca:8883");
const client = mqtt.connect("ws://127.0.0.1:8883");
/**
* @type any