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

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

@ -9,7 +9,7 @@ let led_sizes = {
"side": { width: 896, height: 128 } "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 displays = {};
let division_names = {}; let division_names = {};
let divisions = {}; let divisions = {};

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