This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const haversine = require("haversine") | |
| const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args)); | |
| const ownLocation = { latitude: 60.2, longitude: 22.3 } | |
| let stationAmount; | |
| let distToStation = [] | |
| const stations = [ | |
| ["Kotka Haapasaari", 101042, 60.29, 27.18], | |
| ["Kotka Rankki", 101030, 60.38, 26.96], | |
| ["Loviisa Orrengrund", 101039, 60.27, 26.45], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Oct 22 22:22:29 TypeError: Cannot read properties of null (reading 'path') at /usr/lib/node_modules/signalk-server/lib/tokensecurity.js:462:98 at Array.find (<anonymous>) at /usr/lib/node_modules/signalk-server/lib/tokensecurity.js:461:35 at Array.find (<anonymous>) at strategy.shouldAllowWrite (/usr/lib/node_modules/signalk-server/lib/tokensecurity.js:455:46) at processUpdates (/usr/lib/node_modules/signalk-server/lib/interfaces/ws.js:365:31) at Sparky.<anonymous> (/usr/lib/node_modules/signalk-server/lib/interfaces/ws.js:162:33) at Sparky.emit (node:events:514:28) at done (/usr/lib/node_modules/signalk-server/node_modules/primus/spark.js:347:25) at transform (/usr/lib/node_modules/signalk-server/node_modules/primus/spark.js:309:30) at Sparky.transforms (/usr/lib/node_modules/signalk-server/node_modules/primus/spark.js:330:4) at decoding (/usr/lib/node_modules/signalk-server/node_modules/primus/spark.js:215:13) at Sparky.decoder (/usr/lib/node_modules/signalk-server/node_modules/primus/parsers/json.js:34:3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "2.2" | |
| services: | |
| influxdb: | |
| image: influxdb:1.8 | |
| container_name: influxdb | |
| restart: unless-stopped | |
| network_mode: host | |
| volumes: | |
| - $PWD/signalk_volume/influxdb:/var/lib/influxdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <OneWire.h> | |
| #include <DallasTemperature.h> | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| #include <SPI.h> | |
| #include <Wire.h> | |
| #include <ESP8266WebServer.h> | |
| #include <DNSServer.h> | |
| #include <WifiServer.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; PlatformIO Project Configuration File | |
| ; | |
| ; Build options: build flags, source filter | |
| ; Upload options: custom upload port, speed and extra flags | |
| ; Library options: dependencies, extra library storages | |
| ; Advanced options: extra scripting | |
| ; | |
| ; Please visit documentation for the other options and examples | |
| ; https://docs.platformio.org/page/projectconf.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| // Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/ | |
| // Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID | |
| // CONFIGURATION ####################################################################################################### | |
| const token = 'SLACK TOKEN'; // You can learn it from: https://api.slack.com/custom-integrations/legacy-tokens | |
| // GLOBALS ############################################################################################################# |