codeforgiessen / badeseenservice Goto Github PK
View Code? Open in Web Editor NEWAPI for the badeseen mobile app
Home Page: http://ci.andinfinity.de/codeforgiessen/badeseenservice/
API for the badeseen mobile app
Home Page: http://ci.andinfinity.de/codeforgiessen/badeseenservice/
/weather
)
take for example lake.measurements
:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
This is not helpful. Should be beautified ;)
see https://gist.github.com/branneman/8048520
I originally went this way but it didn't seem to work for me this time. Need to check back on that.
Error: MongoError: Connection Closed By Application
(in lake_data_import.js
)
2015-02-16T22:36:40.403+0100 [conn22] insert badeseen.lakes query: { name: "Arheilger Mühlchen", hlugurl: "http://badeseen.hlug.de/badegewaesser/stadt-darmstadt/arheilger-muehlchen.html", latitude: 49.9045, longitude: 8.6713, openFrom: new Date(1400104800000), openTo: new Date(1410645600000), introtext: "Idyllisch im Stadtteil Arheilgen gelegen, wird dieses mit 1,4 Hektar relativ kleine Gewässer als städtisches Freibad genutzt. Die flachen Ufer sind ...", city: "Darmstadt", heightAboveSeaLevel: 140, areaHa: 1.1, depthMax: 2.97, depthAvg: 1.9, lakeType: "Weiher", extracurricularActivity: "Angelsport,Baden", _id: ObjectId('54e262e605e1723618de836b'), appropriateAuthority: [], operator: [], images: [ { copyright: "http://badeseen.hlug.de© HLUG", src: "http://badeseen.hlug.de/fileadmin/img_content/badeseen/Darmstadt/Arheilger_Muehlchen/Arheilger_Muehlchen03.JPG" }, { copyright: "http://badeseen.hlug.de© HLUG", src: "http://badeseen.hlug.de/fileadmin/img_content/badeseen/Darmstadt/Arheilger_Muehlchen/Arheilger_Muehlchen02.JPG" }, { copyright: "http://badeseen.hlug.de© HLUG", src: "http://badeseen.hlug.de/fileadmin/img_content/badeseen/Darmstadt/Arheilger_Muehlchen/Arheilger_Muehlchen01_T.JPG" } ], yearratings: [ { rating: 1, year: "2011" }, { rating: 1, year: "2012" }, { rating: 1, year: "2013" } ], measurements: [ { comment: "Sichtiefe 1,00 m", rating: 1, escherichiaColi: "30", enterocsocci: "<15", waterTemperature: 22, date: "2014-08-18T22:00:00.000Z" }, { comment: "Sichttiefe 1,10m", rating: 1, escherichiaColi: "30", enterocsocci: "15", waterTemperature: null, date: "2014-07-28T22:00:00.000Z" }, { comment: "Sichttiefe 1,10m", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: 23, date: "2014-06-30T22:00:00.000Z" }, { comment: "Sichttiefe 1.90m", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: 22, date: "2014-06-03T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: 19, date: "2014-05-05T22:00:00.000Z" }, { comment: "Sichttiefe 0,70m", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: null, date: "2013-08-18T22:00:00.000Z" }, { comment: "Sichttiefe 0,90cm", rating: 1, escherichiaColi: "15", enterocsocci: "<15", waterTemperature: null, date: "2013-07-28T22:00:00.000Z" }, { comment: "Sichttiefe 2,00m", rating: 1, escherichiaColi: "<15", enterocsocci: "15", waterTemperature: null, date: "2013-06-30T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "30", enterocsocci: "<15", waterTemperature: 17, date: "2013-06-02T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: 16, date: "2013-05-05T22:00:00.000Z" }, { comment: "Sichttiefe 0,75", rating: 1, escherichiaColi: "61", enterocsocci: "<15", waterTemperature: null, date: "2012-08-19T22:00:00.000Z" }, { comment: "Sichttiefe 0,70m", rating: 1, escherichiaColi: "197", enterocsocci: "46", waterTemperature: null, date: "2012-07-29T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: null, date: "2012-07-02T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "213", enterocsocci: "<15", waterTemperature: null, date: "2012-06-03T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "61", enterocsocci: "30", waterTemperature: null, date: "2012-05-06T22:00:00.000Z" }, { comment: "Sichttiefe 1,05 m", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: null, date: "2011-08-22T22:00:00.000Z" }, { comment: "Sichttiefe 1,76 m", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: null, date: "2011-07-31T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "<15", enterocsocci: "<15", waterTemperature: null, date: "2011-07-03T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "61", enterocsocci: "<15", waterTemperature: null, date: "2011-06-05T22:00:00.000Z" }, { comment: "", rating: 2, escherichiaColi: "108", enterocsocci: "15", waterTemperature: null, date: "2011-05-08T22:00:00.000Z" }, { comment: "", rating: 2, escherichiaColi: "179", enterocsocci: "77", waterTemperature: null, date: "2010-08-23T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "46", enterocsocci: "30", waterTemperature: null, date: "2010-08-01T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "15", enterocsocci: "<15", waterTemperature: null, date: "2010-07-04T22:00:00.000Z" }, { comment: "", rating: 2, escherichiaColi: "109", enterocsocci: "<15", waterTemperature: null, date: "2010-06-06T22:00:00.000Z" }, { comment: "", rating: 1, escherichiaColi: "15", enterocsocci: "<15", waterTemperature: null, date: "2010-05-10T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "30", enterocsocci: "15", waterTemperature: null, date: "2009-08-30T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "30", waterTemperature: null, date: "2009-08-02T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "<15", waterTemperature: null, date: "2009-07-05T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "15", waterTemperature: null, date: "2009-06-07T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "15", waterTemperature: null, date: "2009-05-10T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "15", waterTemperature: null, date: "2008-08-25T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "900", enterocsocci: "15", waterTemperature: null, date: "2008-07-27T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "15", waterTemperature: null, date: "2008-06-29T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "46", enterocsocci: "15", waterTemperature: null, date: "2008-06-01T22:00:00.000Z" }, { comment: "", rating: 0, escherichiaColi: "15", enterocsocci: "15", waterTemperature: null, date: "2008-05-04T22:00:00.000Z" } ], __v: 0 } ninserted:1 keyUpdates:0 numYields:0 locks(micros) w:62 1255ms
2015-02-16T22:36:40.403+0100 [conn22] command badeseen.$cmd command: insert { $msg: "query not recording (too large)" } keyUpdates:0 numYields:0 locks(micros) w:475 reslen:40 1328ms
2015-02-16T22:36:40.439+0100 [conn23] SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server [127.0.0.1:56617]
(log from mongodb instance)
… and show visualisation and dumb log in the dashboard. this should be a middleware as well (or kind of a plugin. need to research on best practices for that.)
the self
reference is missing (docs and res.json
)
the script itself has to create the connection to mongo db as well as the tear down
there is something really weird going on right now in the test/api.js
. to prevent fetching the first lake returned by the entry point we should instead define a testLake in crud.js
or something. that way the test would even work if the database was empty.
0.004947424900180562%
is just not beautiful. maybe we could use donut graphs.
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.