Giter Site home page Giter Site logo

fiware / tutorials.context-providers Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 11.0 2.67 MB

:blue_book: FIWARE 104: Registering Context Providers

Home Page: https://fiware-orion.rtfd.io

License: MIT License

Shell 100.00%
tutorial fiware fiware-orion contextual-data context-aware postman-collection expressjs ngsi node-js

tutorials.context-providers's Introduction

FIWARE Banner

FIWARE Core Context Management License: MIT Support badge

These tutorials teach FIWARE users about context data and context providers. The tutorial builds on existing entities created in the previous tutorials and enables a user to retrieve data about a store which is not held directly within the Context Broker.

The tutorial uses cUrl commands throughout, but is also available as Postman documentation.

Start-Up

NGSI-v2 Smart Supermarket

NGSI-v2 offers JSON based interoperability used in individual Smart Systems. To run this tutorial with NGSI-v2, use the NGSI-v2 branch.

git clone https://github.com/FIWARE/tutorials.Context-Providers.git
cd tutorials.Context-Providers
git checkout NGSI-v2

./services create
./services start
NGSI v2 ๐Ÿ“š Documentation Postman Collection

NGSI-LD Smart Farm

NGSI-LD offers JSON-LD based interoperability used for Federations and Data Spaces. To run this tutorial with NGSI-LD, use the NGSI-LD branch.

git clone https://github.com/FIWARE/tutorials.Context-Providers.git
cd tutorials.Context-Providers
git checkout NGSI-LD

./services create
./services start
NGSI LD ๐Ÿ“š Documentation Postman Collection

License

MIT ยฉ 2018-2024 FIWARE Foundation e.V.

tutorials.context-providers's People

Contributors

actions-user avatar fisuda avatar hylowaker avatar jason-fox avatar mnxonline avatar stbnrivas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tutorials.context-providers's Issues

Weather not working with Orion 2.3.0

I'm following the tutorial, but I'm unable to obtain weather live data (OpenWeatherMap api) related to a store. The live weather health check works fine.

I've registered the context-provider with the URL http://context-provider:3000/weather/weatherConditions, but when I obtain the store information (http://{{orion}}/v2/entities/urn:ngsi-ld:Store:001), the weather information is not showing, only the data in database appears. When retrieving live data from http://{{context-provider}}/weather/weatherConditions/op/query with the payload from the tutorial, I get a bad request with the message "bad query", and the URL to the OpenWeatherMap show q=undefined. The logs also show "tutorial:proxy Making a OpenWeatherMap API request: undefined".

If I change the Orion to version 2.2.0 and register the context provider with legacyForwarding equal to true, all works fine.

How can I make the tutorial work with Orion 2.3.0?

Thanks

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.