Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

signalk-postgsail

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signalk-postgsail - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

26

index.js
/*
* Copyright 2019-2021 Ilker Temir <ilker@ilkertemir.com>
* Copyright 2021-2022 Francois Lacroix <xbgmsharp@gmail.com>
* Copyright 2021-2023 Francois Lacroix <xbgmsharp@gmail.com>
*

@@ -96,3 +96,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

baseURL: host,
timeout: 20000,
timeout: 40000,
headers: {

@@ -161,3 +161,2 @@ 'Authorization': `Bearer ${token}`,

clearInterval(submitProcess);
//clearInterval(monitoringProcess);
clearInterval(statusProcess);

@@ -173,8 +172,8 @@ db.close(); // Bug save settings

type: "string",
title: "Host (Optional - default to cloud PostgSail https://beta.openplotter.cloud/)",
default: "https://beta.openplotter.cloud/api/"
title: "Host (Optional - default to cloud PostgSail https://iot.openplotter.cloud/)",
default: "https://api.openplotter.cloud/"
},
token: {
type: "string",
title: "Token (obtain free from https://beta.openplotter.cloud/)"
title: "Token (obtain free from https://iot.openplotter.cloud/)"
},

@@ -310,4 +309,5 @@ source: {

app.debug('Successfully deleted metrics from buffer, will continue sending metrics to the server');
// Avoid conflict between setInterval data process and SetTimeout data process??
setTimeout(function(){
app.debug('SubmitDataToServer, submitting next metrics batch');
app.debug('setTimeout, SubmitDataToServer, submitting next metrics batch');
submitDataToServer();

@@ -529,3 +529,3 @@ }, 19*1000); // In 8 seconds

// Force status while moving
if (status == 'moored') {
if (status != "sailing" || status != "motoring") {
status = 'sailing';

@@ -542,3 +542,3 @@ }

// Force status while moving
if (status == 'moored') {
if (status != "sailing" || status != "motoring") {
status = 'sailing';

@@ -556,3 +556,3 @@ }

// Force status while moving
if (status == 'moored') {
if (status != "sailing" || status != "motoring") {
status = 'sailing';

@@ -614,4 +614,6 @@ }

// Wait for a valid status before sending data ?
app.debug(`Save: ${path} with value ${value}`);
status = value;
if (path) {
app.debug(`Save: ${path} with value ${value}`);
status = value;
}
break;

@@ -618,0 +620,0 @@ case 'navigation.altitude':

{
"name": "signalk-postgsail",
"version": "0.0.7",
"version": "0.0.8",
"description": "Automatically log your sails and remotely monitor your boat with history. Your vessel logbook, monitoring and visibility open-source stack.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,3 +23,3 @@ # Signal K PostgSail plugin

## Dependencies
## Optional dependencies
[signalk-autostate](https://www.npmjs.com/package/@meri-imperiumi/signalk-autostate) by @meri-imperiumi. Used to determine the vessel's state based on sensor values, and updates the `navigation.state` value accordingly.

@@ -26,0 +26,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc