ftrm-tracking
v0.0.0
Published
Footurama Tracking
Downloads
2
Readme
Footurama Package: Tracking
Not sure if NSA jokes are appropriate ;)
ftrm-tracking/owntracks
Retrieve geo positions using owntracks.
Configuration:
input
: 0.output
: 1. Output pipe. Format:[latitude, longitude]
.url
: URL to MQTT broker.topic
: MQTT topic to listen to.- all options of mqttjs client options
Example:
module.exports = [require('ftrm-tracking/owntracks'), {
output: 'geo-position',
url: 'mqtts://nsa.gov:8883',
topic: 'owntracks/user/device',
username: 'edward',
password: 'prism-is-a-dancer'
}];
ftrm-tracking/distance
Calculate distance to geo position
Configuration:
input
: 1. Input pipe of current position. Format:[latitude, longitude]
.output
: 1. Distance to home location.latitude
: Latitude of home position.longitude
: Longitude of home position.planetRadius
: Radius of your home planet. Default:6371000
. If you are living on Mars, change to3390000
.
Example:
module.exports = [require('ftrm-tracking/distance'), {
input: 'geo-position',
output: 'distance',
latitude: 37.234332396,
longitude: -115.80666344
}];