Skip to content

Footurama/ftrm-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 to 3390000.

Example:

module.exports = [require('ftrm-tracking/distance'), {
	input: 'geo-position',
	output: 'distance',
	latitude: 37.234332396,
	longitude: -115.80666344
}];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published