kapusta / pzgps Goto Github PK
View Code? Open in Web Editor NEWRead GPS data from a PiZero in a single page web app via a WebSocket
License: Apache License 2.0
Read GPS data from a PiZero in a single page web app via a WebSocket
License: Apache License 2.0
WAY TOO BIG
When running npm run lint
the following error is thrown wherever an es6 class method uses a fat arrow (which is desired syntax for the binding)...
error Parsing error: Unexpected token =
Useful Docs
Todo
staticmap
using a consumer key if it existsgpsData
changesIf the websocket dies, the reconnection attempt errors out and shows an undefined value
Use lite-server instead of live-server for local path installation in the angular1 package
Goal is to connect to the pizero as a wifi hotspot and have the pzgps-server running too. Here's the adafruit guide.
packages/pzgps-preact/src/lib/conf.js
to match wifi addressThings to do...
manifest.json
Things to understand...
src/components/RouteEditor/RouteEditor.jsx
src/components/App/Db.jsx
routes
end point for routes instead of using allDocs()routes
table, post some data into itQuestions...
App
?)angular1
FEKilling the socket on $destroy isn't necessary. Consider moving the connection to the WS server to the boostrapping phase in pzgps.js in a run() block.
Follow the instructions in the readme using this version...
https://nodejs.org/dist/v6.9.0/node-v6.9.0-linux-armv6l.tar.xz
Implement bluetooth connectivity
--independant
modeOn TPV events, if distance from previous location is greater than n meters, record the new location in a Realm. Provide access to that data from the FE.
/lib/realmApi.js
and add getter and setter/lib/realmSchema.js
and define a location objectNeeds....
New frames come in, the data is put into the component with setState which causes the entire app to recompile/run/mount/etc, consider moving that out of a setState call
Look into using haversine to calculate distance between the current location and either a previous location, or a destination.
npm install angular-websocket --save
live-server --entry-file=index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.