Archived
1
0

Testing WoL

This commit is contained in:
2022-12-16 14:05:56 -06:00
parent 56f700c423
commit 4a01fe4b3b

View File

@@ -2,7 +2,7 @@ const express = require("express");
const bodyParser = require("body-parser");
const cors = require("cors");
const fs = require("fs");
const wol = require("wol")
try {
var links = require('../src/links.json');
@@ -95,7 +95,11 @@ app.post("/sui/api/appUpdate", jsonParser, (req, res) => {
res.status(200).send(applications.apps)
});
app.post("/sui/api/wakeDakota", (req, res) => {
wol.wake('18:C0:4D:81:57:68', function(err, res){
console.log(res);
});
});
// app is listening on port 5000
app.listen(5000, () => {