dylanfm / mhl-buoy-data Goto Github PK
View Code? Open in Web Editor NEWMHL buoys track swell conditions off the coast of NSW Australia. This will parse their GIF graphs so the data can be used in other ways.
License: MIT License
MHL buoys track swell conditions off the coast of NSW Australia. This will parse their GIF graphs so the data can be used in other ways.
License: MIT License
This searches back to the left from the right to locate where the data is on the graph. When 2 or more points have the same value, there's a layering. This means whatever value is beneath cannot be read. In this case, sometimes by shifting the search 1 pixel further to the left will fetch the data correctly, albeit a tiny bit earlier in time I guess.
https://bugsnag.com/errors/5125d6b3d0ae0b80248a5e02/events/newest
Feb 26 21:10:22 buoys app/scheduler.5165: Error: Error: TypeError: Cannot read property '0' of undefined
Feb 26 21:10:23 buoys app/scheduler.5165: at /app/worker.coffee:34:21
Feb 26 21:10:23 buoys app/scheduler.5165: at parseMHLGraph (/app/node_modules/mhl-buoy-data/index.js:174:7)
Feb 26 21:10:23 buoys app/scheduler.5165: at parseGif (/app/node_modules/mhl-buoy-data/gif.js:364:7)
Feb 26 21:10:23 buoys app/scheduler.5165: at IncomingMessage.getImageData (/app/node_modules/mhl-buoy-data/gif.js:18:9)
Feb 26 21:10:23 buoys app/scheduler.5165: at IncomingMessage.EventEmitter.emit (events.js:126:20)
Feb 26 21:10:23 buoys app/scheduler.5165: at IncomingMessage._emitEnd (http.js:366:10)
Feb 26 21:10:23 buoys app/scheduler.5165: at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
Feb 26 21:10:23 buoys app/scheduler.5165: at Socket.socketOnData [as ondata] (http.js:1367:20)
Feb 26 21:10:23 buoys app/scheduler.5165: at TCP.onread (net.js:403:27)
Image that's triggering this error:
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.