vokkim / tuktuk-chart-plotter Goto Github PK
View Code? Open in Web Editor NEWChart plotter with Signal K and MBTiles support
License: MIT License
Chart plotter with Signal K and MBTiles support
License: MIT License
instrument-config.js contains:
...
heading: { dataKey: 'navigation.headingTrue', transformFn: toDegrees, className: 'heading', title: 'HDG', format: '00', unit: '°' },
...
My nmea2000 network does not have 'navigation.headingTrue'. It does have 'navigation.headingMagnetic'. What would be the best way to add a section to instrument-config.js that would allow the chartplotter to use the heading that is present and to indicate what reference the heading uses (ex unit: '°M' or unit: '°T'?
Installed tuktuk 0.0.19 and charts-plugin 2.0.0 with latest signalk-server-node (v1.2.2). Enabled security and turned off 'Allow ReadOnly Access'. Subsequently tuktuk would not display the mbtiles charts. Investigated to discover that a request to /signalk/v1/api/resources/charts would generate a 401 error in this configuration. Confirmed that turning on 'ReadOnly Access' allowed the server to access the chart files.
See discussion on slack for details but it is believed that tuktuk is not passing along cookies to the '/signalk/v1/api/resources/charts' request.
Per SignalK/signalk-server#284 SK server mounts public
directory as webapp's root. Tuktuk has index.html under root and uses relative urls that assume public
is a separate directory as sibling to index.html.
I'd like to fix this by moving all static content under public
. Would you like to move the assets under public
under some dir or just stuff everything in one directory?
I have a finland.mbtiles file in the charts directory, and the following in client-config:
"charts": [
{
"index": 0,
"type": "local"
}
]
Nothing appears on the screen, or on the charts dropdown. However if I go to localhost:4999/charts, I get a Json doc:
[{"name":"finland","file":"/home/pi/signalk-server-node/node_modules/tuktuk-chart-plotter/charts/finland.mbtiles","bounds":[19.105224609375,59.645540251443215,27.88330078125,65.84776766596988],"minzoom":4,"maxzoom":15,"type":"tilelayer","format":"png","attribution":"Liikennevirasto. Ei navigointikäyttöön. Ei täytä virallisen merikartan vaatimuksia. https://github.com/vokkim/rannikkokartat-mbtiles https://creativecommons.org/licenses/by/4.0/","center":[23.4942626953125,62.746653958706545,9],"description":"Liikenneviraston merikartat (Yleiskartat, Rannikkokartat) 1.6.2017. https://github.com/vokkim/rannikkokartat-mbtiles","scheme":"tms","tilemapUrl":"/charts/finland/{z}/{x}/{y}"}]
Any ideas what I should be doing differently?
Node 8.9.3 under Raspbian Stretch.
Error says: WMS chart type not supported
Hi! I've been using TukTuk for sometime, it's great! However, when using too many charts or chart paths, tuktuk will not load. It will keep loading untill the browser gives an error "webpage cannot be loaded due to a script that is loading".
With freeboard and the same charts (they use the same chart source plugin) it works fine. When removing some charts from the chart source plugin in SignalK, TukTuk will start to work again.
TukTuk works fine with 3 offline and 1 online chartsource. When adding one more local chart source, it will get stuck.
If signalk have 2 titleset( .mbtitle file ) with the same metadata(into mysqlite file) tuktuk get confused upon activating/desacrivating them and apply change to the first one no matter witch one was clicked.
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.