Skip to content

Commit

Permalink
Merge pull request #7 from iDerp/master
Browse files Browse the repository at this point in the history
v2.0.1
  • Loading branch information
iDerp authored Nov 5, 2018
2 parents 727ee45 + 1d65d9b commit fe25465
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions example.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"NOTE": "DO NOT CHANGE THE VERSION FIELD",
"version": "v2",
"version": "v2.0.1",
"PiHole": {
"IP": "127.0.0.1",
"AuthKey": "abc123"
Expand All @@ -15,6 +15,6 @@
"AuthKey": "LaMetric #2"
}
],
"updateInterval": 10,
"updateInterval": 60,
"debugMode": false
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ snek.get(`http://${config.PiHole.IP}/admin/api.php?getQueryTypes&auth=${config.P
totalDNSQueries: PiHoleSummaryData.body.dns_queries_all_types,
topQuery: `${Object.keys(PiHoleTopItemsData.body.top_queries)[0].toString()} (${topQueryArray[0].toString()} Queries)`,
topBlockedQuery: `${Object.keys(PiHoleTopItemsData.body.top_ads)[0].toString()} (${topBlockedQueryArray[0].toString()} Queries)`,
lastBlockedQuery: PiHoleRecentBlockedData.raw
lastBlockedQuery: PiHoleRecentBlockedData.raw.toString()
}).then(() => {
updateIndex++;
updateSpinner.succeed(`Sent update for "${LaMetricDeviceInfo2.body.name}" @ ${LaMetric.IP} to the server!`)
Expand Down
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "pi-hole-for-lametric",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/iDerp/Pi-Hole-for-LaMetric.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/iDerp/Pi-Hole-for-LaMetric/issues"
},
"homepage": "https://github.com/iDerp/Pi-Hole-for-LaMetric#readme",
"dependencies": {
"express": "^4.16.3",
"ora": "^3.0.0",
"snekfetch": "^4.0.4"
}
}
"name": "pi-hole-for-lametric",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/iDerp/Pi-Hole-for-LaMetric.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/iDerp/Pi-Hole-for-LaMetric/issues"
},
"homepage": "https://github.com/iDerp/Pi-Hole-for-LaMetric#readme",
"dependencies": {
"express": "^4.16.3",
"ora": "^3.0.0",
"snekfetch": "^4.0.4"
}
}

0 comments on commit fe25465

Please sign in to comment.