Hi Philipp,
i tried http://localhost:5000/api/v1/geolife/all with the mentioned Json Array
Key and data but still get
HttpStreamProtocol: Error while fetching data from URL:
http://localhost:5000/api/v1/geolife/all
What do you mean with protocol, I simple created a response in rails rendering
the data as json e.g.
render json: {status: 'SUCCESS', message: 'Loaded ALL
',data:@positions}, status: :ok
But now I finally understand what Json Array Key means and what I have to add
as key value!
Any idea why this message occurs on my side?
Florian
Am 08.03.20 um 23:10 schrieb Philipp Zehnder:
Hi Florian,
you found some really cool data sets that we definitely should integrate.
I think it is a good starting point to implement your own REST API.
I checked out your project and run it locally. The only URL that returned data
was: http://localhost:5000/api/v1/geolife/all
Which protocol did you select? Since the data is in an array you have to select
the “Json Array Key” protocol and enter “data” as the key.
The adapter worked for me with this configuration. Can you please try this and
tell me if there are any issues?
It would also be cool to have specific adapters for the data sets you provided.
To implement an adapter is similar to implementing a processor.
Currently we do not have any documentation on the implementation, but we have
many examples in the project [1].
Philipp
[1]
https://github.com/apache/incubator-streampipes-extensions/tree/dev/streampipes-connect-adapters/streampipes-connect-adapter/src/main/java/org/apache/streampipes/connect
On 2020/03/08 15:27:49, Florian Micklich
<[email protected]<mailto:[email protected]>>
wrote:
Hi all,
So far I've worked with ISS streaming data, but I've started looking for more
streaming geospatial data and found some sources:
http://envirocar.github.io/enviroCar-server/api/ Car Service
https://developer.flightstats.com/api-docs/flightstatus/v2 --> plane
positions
https://opendata.rnv-online.de/startinfo-api → RNV data
https://dev.socrata.com/foundry/data.cityofnewyork.us/t29m-gskq → famous
new york taxi data
and my two favorite ones
GeoLife mention in this block series -->
https://anitagraser.com/category/gis/movement-data-in-gis/
and petrol stations with historic data -->
https://creativecommons.tankerkoenig.de/
But most of the geodata does not have an API and can't be used in StreamPipes.
So I had a short coding session and created a small API with some test data .
It is a ruby on rails API, running in docker and returns json data :)
It still needs some improvements but a first shot to access interesting data.
Everyone can find the API-Faker via Github -->
https://github.com/flomickl/api-faker with a short description.
Via Browser everything looks great but if I use it in StreamPipes I can't
access it.
For example if i try:
http://localhost:5000/api/v1/animal/latest
I get
HttpStreamProtocol: Error while fetching data from URL:
http://localhost:5000/api/v1/animal/latest
I also tried
127.0.0.1 → localhost
192.168.178.49 → IP of Host
172.17.0.1 → Docker IP
but still the same message.
Does anyone knows what to do to access the data?
Greetings and happy weekend
Florian
Disy Informationssysteme GmbH
Florian Micklich
Lösungsentwickler
+49 721 16006 477, [email protected]<mailto:[email protected]>
Firmensitz: Ludwig-Erhard-Allee 6, 76131 Karlsruhe
Registergericht: Amtsgericht Mannheim, HRB 107964
Geschäftsführer: Claus Hofmann
Bitte beachten Sie folgende Informationen für Kunden, Lieferanten und Bewerber
- Datenschutz: www.disy.net/datenschutz<http://www.disy.net/datenschutz>
- Informationspflichten:
www.disy.net/informationspflichten<http://www.disy.net/informationspflichten>
.........................................................
M. Sc. Philipp Zehnder
Wissenschaftlicher Mitarbeiter | Research Scientist
Information Process Engineering (IPE)
FZI Forschungszentrum Informatik
Haid-und-Neu-Str. 10–14
76131 Karlsruhe, Germany
Tel.: +49 721 9654-805
Fax: +49 721 9654-806
[email protected]<mailto:[email protected]>
https://www.fzi.de/mitarbeiter/philipp-zehnder
.........................................................
FZI Forschungszentrum Informatik
Stiftung des bürgerlichen Rechts
Stiftung Az: 14-0563.1 Regierungspräsidium Karlsruhe
Vorstand: Prof. Dr. Andreas Oberweis, Jan Wiesenberger, Prof. Dr.-Ing. J.
Marius Zöllner
Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus
.........................................................
Disy Informationssysteme GmbH
Florian Micklich
Lösungsentwickler
+49 721 16006 477, [email protected]
Firmensitz: Ludwig-Erhard-Allee 6, 76131 Karlsruhe
Registergericht: Amtsgericht Mannheim, HRB 107964
Geschäftsführer: Claus Hofmann
Bitte beachten Sie folgende Informationen für Kunden, Lieferanten und Bewerber
- Datenschutz: www.disy.net/datenschutz
- Informationspflichten: www.disy.net/informationspflichten