signalk-to-noforeignland 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -11,14 +11,14 @@ const isReachable = require('is-reachable');
11
11
  const sendEmail = require('./sendEmail');
12
12
  const createGPX = require('./createGPX');
13
13
  const apiUrl = 'https://www.noforeignland.com/home/api/v1/boat/tracking/track';
14
- const pluginApiKey = 'eef6916b-77fa-4538-9870-034a8ab81989';
14
+ const pluginApiKey = '0ede6cb6-5213-45f5-8ab4-b4836b236f97';
15
15
  // const msToKn = 1.944;
16
16
 
17
17
 
18
18
  module.exports = function (app) {
19
19
  var plugin = {};
20
- plugin.id = 'signalk-to-nfl';
21
- plugin.name = 'SignalK To NFL';
20
+ plugin.id = 'signalk-to-noforeignland';
21
+ plugin.name = 'SignalK To noforeignland';
22
22
  plugin.description = 'SignalK track logger to noforeignland.com';
23
23
 
24
24
  plugin.schema = {
@@ -116,7 +116,7 @@ module.exports = function (app) {
116
116
 
117
117
  var unsubscribes = [];
118
118
  var unsubscribesControl = [];
119
- var routeSaveName = 'track.jsonl';
119
+ var routeSaveName = 'nfl-track.jsonl';
120
120
  let lastPosition;
121
121
  let upSince;
122
122
  let cron;
@@ -397,7 +397,7 @@ module.exports = function (app) {
397
397
  if (responseBody.status === 'ok') {
398
398
  app.debug('Track successfully sent to API');
399
399
  if (options.keepFiles) {
400
- const filename = new Date().toJSON().slice(0, 19).replace(/:/g, '') + '-track.jsonl';
400
+ const filename = new Date().toJSON().slice(0, 19).replace(/:/g, '') + '-nfl-track.jsonl';
401
401
  app.debug('moving and keeping track file: ', filename);
402
402
  await fs.move(path.join(options.trackDir, routeSaveName), path.join(options.trackDir, filename));
403
403
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "signalk-to-noforeignland",
3
- "version": "0.1.6",
4
- "description": "SignalK track logger to noforeignland.com",
3
+ "version": "0.1.8",
4
+ "description": "SignalK track logger to noforeignland.com ",
5
5
  "main": "index.js",
6
6
  "keywords": [
7
7
  "signalk-node-server-plugin",