happy hippo
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
dist/
|
||||
node_modules/
|
||||
.vscode/
|
||||
@@ -134,7 +134,7 @@ app.get('/lancianoCheck', async (req, res) => {
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
});
|
||||
let hostRes='';
|
||||
let hosts = ["10.8.0.2","10.8.0.3"];
|
||||
let hosts = ["10.8.0.45","10.8.0.46"];
|
||||
let promArr=[];
|
||||
for(let host of hosts) {
|
||||
promArr.push(ping.promise.probe(host));
|
||||
@@ -143,10 +143,10 @@ app.get('/lancianoCheck', async (req, res) => {
|
||||
.then(function (res) {
|
||||
for (let item of res) {
|
||||
if(item.alive) {
|
||||
hostRes+=item.host+' is alive ';
|
||||
hostRes+=item.host+' alive ';
|
||||
}
|
||||
else{
|
||||
hostRes+=item.host+' is dead ';
|
||||
hostRes+=item.host+' dead ';
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
+7
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "forbidden-fruit-dashboard",
|
||||
"version": "2.0.0",
|
||||
"version": "3.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
@@ -14,7 +14,12 @@
|
||||
"js-yaml": "^3.14.0",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"register-service-worker": "^1.7.1",
|
||||
"vue": "^2.6.11"
|
||||
"vue": "^2.6.11",
|
||||
"compression": "^1.7.4",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"ping": "^0.3.0",
|
||||
"rpio": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.4.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Dashboard",
|
||||
"short_name": "homer",
|
||||
"name": "Forbidden Fruit Dashboard",
|
||||
"short_name": "FFruit",
|
||||
"theme_color": "#3367D6",
|
||||
"icons": [
|
||||
{
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ module.exports = {
|
||||
appleMobileWebAppStatusBarStyle: "black",
|
||||
appleMobileWebAppCapable: "yes",
|
||||
name: "Forbidden Fruit Dashboard",
|
||||
short_name: "FF",
|
||||
short_name: "FFruit",
|
||||
theme_color: "#3367D6",
|
||||
icons: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user