AaltoAsia / O-MI

Internet of Things data server implementing Open Messaging Interface and Open Data Format
BSD 4-Clause "Original" or "Old" License
22 stars 13 forks source link

How to integrate Waterbus data in the findParking results? #18

Closed didiercarels closed 5 years ago

didiercarels commented 6 years ago

What is the best way to proceed in order to allow the BMW i3 screen to display the integrated information between the Parking slot and the Waterbus stop? Do we have to add a method in the Waterbus OMI node to find the nearest parking slot? Or, do we have to add a method in the Parking OMI node to find the nearest Waterbus stop?

TK009 commented 6 years ago

You need to start the ParkingAgent that is supplied with O-MI Node and write mobivoc typed ParkingFacilities for it.

Here is more detailed steps to follow:

  1. Find the ParkingAgent in the application.conf and uncomment all related settings.
  2. Restart O-MI Node and check logs/omi.log that the configuration syntax was correct and ParkingAgent was loaded on startup.
  3. Create your ParkingFacility objects. You can see an example use of some mobivoc and schema.org types under line 185 here. I think that the InfoItems for BMW screen are:
    • ParkingFacility
      • geo
      • name
      • operatedBy
      • url
      • Capacities (this structure is optional)
        • CarCapacity
          • maximumValue
          • realTimeValue
  4. Don't forget the prefix attribute, line 2 of the example
  5. Write your ParkingFacilities under /Objects/ParkingService/ParkingFacilities/ as in the example for best chance of working correctly in all systems.
  6. Make sure you have registered your O-MI Node in IoTBnB.