signalk-usage 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signalk-usage",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Track electrical and tank usage",
5
5
  "main": "plugin/index.js",
6
6
  "keywords": [
package/plugin/index.js CHANGED
@@ -6,7 +6,7 @@ const Publisher = require('./lib/publisher');
6
6
  module.exports = function (app) {
7
7
  let plugin = {
8
8
  id: 'signalk-usage',
9
- name: 'SignalK Usage',
9
+ name: 'SignalK-Usage',
10
10
  description: 'Report Electrical and Tank Usage',
11
11
  schema: schema,
12
12
 
@@ -18,7 +18,7 @@ module.exports = function (app) {
18
18
 
19
19
  plugin.start = function (options, restartPlugin) {
20
20
  try {
21
- app.debug('Starting SignalK Usage plugin');
21
+ app.debug('Starting SignalK-Usage plugin');
22
22
 
23
23
  // Validate configuration
24
24
  if (!options.influx) {
@@ -95,7 +95,7 @@ module.exports = function (app) {
95
95
 
96
96
  plugin.stop = function () {
97
97
  try {
98
- app.debug('Stopping SignalK Usage plugin');
98
+ app.debug('Stopping SignalK-Usage plugin');
99
99
 
100
100
  if (plugin.updateTimer) {
101
101
  clearInterval(plugin.updateTimer);
@@ -153,7 +153,7 @@ module.exports = {
153
153
  updateInterval: {
154
154
  type: 'number',
155
155
  title: 'Update Interval (seconds)',
156
- default: 20,
156
+ default: 300,
157
157
  description: 'How often to recalculate usage statistics'
158
158
  },
159
159
  cacheResults: {