Skip to content

Commit

Permalink
added favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
CormacC30 committed Aug 30, 2023
1 parent 648e3ad commit 1ad370b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
30 changes: 30 additions & 0 deletions models/readings.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,36 @@
"dateTime": "29/8/2023 16:20:16",
"_id": "8c584afc-9ae8-4d07-a013-f4cab44b46fc",
"stationid": "2d293316-ab7a-4b7b-b3d9-c728d2311c17"
},
{
"code": 200,
"temperature": 16.87,
"windspeed": 3.58,
"winddirection": 350,
"pressure": 1011,
"dateTime": "29/8/2023 17:15:25",
"_id": "36a4e047-ee0e-4aea-a4a7-4f6f872d82a8",
"stationid": "5213b308-dfc3-4a03-8908-6dceef19900e"
},
{
"code": 200,
"temperature": 15.99,
"windspeed": 6.65,
"winddirection": 311,
"pressure": 1015,
"dateTime": "29/8/2023 17:15:46",
"_id": "47227013-2694-4752-b40b-bdafc28419ca",
"stationid": "61a84008-b9b8-4610-b18d-6c003aeca9da"
},
{
"code": 200,
"temperature": 15.44,
"windspeed": 1.54,
"winddirection": 191,
"pressure": 1012,
"dateTime": "30/8/2023 12:37:27",
"_id": "f65c3708-9c49-4d4b-8cef-7e7fb8d9ea98",
"stationid": "61a84008-b9b8-4610-b18d-6c003aeca9da"
}
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"express-handlebars": "^6.0.7",
"fs-extra": "^11.1.0",
"lowdb": "^5.1.0",
"serve-favicon": "^2.5.0",
"uuid": "^9.0.0"
},
"repository": {
"url": "https://github.com/wit-hdip-comp-sci-2023/playlist-1"
"url": "https://github.com/CormacC30/weathertop-2"
},
"license": "MIT",
"keywords": [
Expand Down
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import express from "express";
import favicon from "serve-favicon";
import path from "path";
import bodyParser from "body-parser";
import cookieParser from "cookie-parser";
import fileUpload from "express-fileupload";
Expand All @@ -12,6 +14,7 @@ const app = express();
app.use(cookieParser());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.static("public"));
app.use(favicon(path.join("public", "images", "favicon.ico")));
app.use(fileUpload());
app.engine(".hbs", engine({ extname: ".hbs", helpers: handlebarsHelpers }));
app.set("view engine", ".hbs");
Expand Down

0 comments on commit 1ad370b

Please sign in to comment.