mist-gps-node
Advanced tools
Comparing version 0.0.3 to 0.0.5
{ | ||
"name": "mist-gps-node", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"author": "André Kaustell <andre.kaustell@controlthings.fi>", | ||
@@ -8,3 +8,3 @@ "description": "Mist sample implementation of a dummy GPS receiver using mist-api.", | ||
"dependencies": { | ||
"mist-api": "0.0.12" | ||
"mist-api": "0.0.18" | ||
}, | ||
@@ -11,0 +11,0 @@ "license": "Apache-2.0", |
# Mist GPS | ||
Dependent on the mist-api package, which currently is working with Linux x64 and nodejs v6.x only. To get it working you also need to run a Wish Core on the same host. The Wish Core linux-x64 executable can be downloaded https://mist.controlthings.fi/dist/wish-core-v0.6.6-stable3-linux-x64. | ||
This is bleeding egde software and WILL BREAK from time to time, you have been warned. | ||
## Prerequisits | ||
This package is dependent on the mist-api package, which currently is working with Linux x64, OSX x64 and Raspberry Pi, on nodejs v6.x only. To get it working you also need to run a Wish Core on the same host. | ||
Download and run wish-core (https://mist.controlthings.fi/dist/wish-core-v0.6.6-stable3-linux-x64). | ||
## Prerequisites | ||
```sh | ||
./wish-core-v0.6.6-stable3-linux-x64 | ||
``` | ||
*If you ended up here by accident, you might not get this to work.* | ||
To access the GPS you need to access the MistApi. You may do that using a Mist Ui, Cli or programmatically using mist-api node.js package. An easy option is to install the MistUi Android app. You need the following apps: | ||
To access the GPS you need to access the MistApi. You may do that using a Mist Ui, Cli or programmatically using mist-api node.js package. | ||
### Option 1: Android Ui | ||
An easy option is to install the MistUi Android app. You need the following apps: | ||
* Wish - Peer-to-peer trustbased networking layer | ||
@@ -20,2 +22,6 @@ * Mist - IoT layer for Wish | ||
### Option 2: Command line tool | ||
Check out https://www.npmjs.com/package/mist-cli | ||
## Install and run | ||
@@ -22,0 +28,0 @@ |
@@ -10,3 +10,3 @@ var util = require("util"); | ||
function update() { | ||
self.emit('update', { lat: 60.404 + Math.sin(Date.now()/600000)*0.01, lon: 25.681 + Math.cos(Date.now()/600000)*0.01, accuracy: 10 }); | ||
self.emit('update', { lat: 60.4042 + Math.sin(Date.now()/10000)*0.0002, lon: 25.6814 + Math.cos(Date.now()/10000)*0.0005, accuracy: 10 }); | ||
} | ||
@@ -13,0 +13,0 @@ |
@@ -25,3 +25,4 @@ { | ||
"type": "int", | ||
"read": true | ||
"read": true, | ||
"write": true | ||
}, | ||
@@ -28,0 +29,0 @@ "config": { |
@@ -10,2 +10,4 @@ var Mist = require('mist-api').MistNode; | ||
console.log("mist write:", epid, data); | ||
if(epid==='counter') { c = data; } | ||
}); | ||
@@ -16,3 +18,3 @@ | ||
console.log("mist invoke:", data); | ||
cb({ here: "you", go: true }); | ||
cb({ here: "you", go: true, echo: data }); | ||
}); | ||
@@ -19,0 +21,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4888
90
45
+ Addedmist-api@0.0.18(transitive)
- Removedmist-api@0.0.12(transitive)
Updatedmist-api@0.0.18