52North / OpenSensorSearch

Open Sensor Search is a platform for sensor discovery across all sensor web supporting major specifications (OGC SWE) and popular IoT websites (Xively, Thingspeak, ...).
Apache License 2.0
13 stars 12 forks source link

Integrate with SOS by using Iceland #49

Open nuest opened 9 years ago

nuest commented 9 years ago

Things to consider/steps to be taken:

Switch to Iceland

nuest commented 9 years ago

@autermann @CarstenHollmann Can you confirm that, if we switch OpenSensorSearch to be based on iceland, it should be very straightforward to add it to the (existing or a new one) webapp-bundle? Then configuration and endpoints etc. should "just work", correct?

nuest commented 9 years ago

@autermann @CarstenHollmann Would it be possible to "add" example requests to the test client from a different file? I don't want to overwrite the example requests in the bundle, but include an additional file with example requests to be shown (given the respective endpoints are activated) and so forth.

autermann commented 9 years ago

Currently that's not possible. We're loading the example requests from a single JSON file called client-config.json via JavaScript, so we can't just load a set of file e.g. via a file pattern.

But, as that file is already 5k lines long, it would make sense to allow splitting it up... Something like this should be viable:

{
  "examples": [
    "static/conf/examples/sos_v100.json",
    "static/conf/examples/sos_v20.json",
    "static/conf/examples/aqd_v10.json",
  ]
}

Then you still have to replace the file, but you have to provide far less content...

nuest commented 9 years ago

Or why not reading all files from a directory instead of having this "index" file? Then an overlay could just add a file, or also replace the index file if they do not want other examples to be loaded.

{
  "examples": [
    "static/conf/examples/",
    "static/conf/examples/*.json",
  ]
}

But once the examples are loaded, then the filtering within the client works, right?

I also assume that iceland does not include the test client - correct?

autermann commented 9 years ago

Am 15.06.2015 18:29 schrieb "Daniel Nüst" notifications@github.com:

Or why not reading all files from a directory instead of having this "index" file? Then an overlay could just add a file, or also replace the index file if they do not want other examples to be loaded.

{ "examples": [ "static/conf/examples/", "static/conf/examples/*.json", ] }

And how do I load all files in a directory from a browser using JavaScript?

But once the examples are loaded, then the filtering within the client works, right?

It should :-)

I also assume that iceland does not include the test client - correct?

That's right...

nuest commented 9 years ago

Good point about the javascript loading :-) Regexes also won't work. Ok - I updated the first entry to reflect the agreement on example requests.

nuest commented 8 years ago

Will work on this within https://github.com/nuest/OpenSensorSearch/tree/feature/iceland