Giter Club home page Giter Club logo

badeseenservice's People

Contributors

christiansch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

christiansch

badeseenservice's Issues

implement weather interface to third party APIs

  • implement automatic fetching of new weather data (depending on maximum available requests)
  • save weather data
  • implement frontend to that in the dashboard (/weather)
    • API status, requests, overview etc.

improve printing of nested models in dashboard

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 ;)

issues caused by the import script

  • I need to validate the model with the data
  • mongodb closes the connection after some data sets:
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)

fix import script

the script itself has to create the connection to mongo db as well as the tear down

introduce valid test lake

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.