From dmuriel at bitergia.com Tue Jan 5 16:43:54 2016 From: dmuriel at bitergia.com (David Muriel) Date: Tue, 5 Jan 2016 16:43:54 +0100 Subject: [Fiware-developer-experience] CPr and sensors Message-ID: Hi, We've added an example of Context Provider configuration and use to devguide. The example is quite simple and it's not directly coupled with the restaurants, as that would require adding and extra layer of complexity into devguide. You can find the example and how to use it on the file https://github.com/Bitergia/fiware-devguide-app/blob/master/doc/ContextProvider.md. Also, we've added the option to automate the sensors creation at container startup time. There's two new environment variables in the compose file to enable this: - SENSORS_GENERATION_ENABLED: Setting this to true will create and initialize the sensors for each restaurant. Please note that this is takes some time to complete, so the devguide container will not be ready until this process completes. This can be done manually via the server/feeders/sensorsgenerator.js script. - SENSORS_FORCED_UPDATE_ENABLED: Setting this to true will force an update of all the created sensors, randomly varying the value of each sensor. This can be done manually via the server/feeders/sensorsupdater.js script. It is also advisable to enable subscriptions via ORION_SUBSCRIPTIONS_ENABLED so that devguide adds the sensors readings to each restaurant every time the sensors are updated. Regards, -- David Muriel. From alberto.martin at bitergia.com Tue Jan 5 18:22:57 2016 From: alberto.martin at bitergia.com (=?UTF-8?Q?Alberto_Mart=C3=ADn_Casado?=) Date: Tue, 5 Jan 2016 18:22:57 +0100 Subject: [Fiware-developer-experience] CPr and sensors In-Reply-To: References: Message-ID: Perfecto, adem?s justo estaba actualizando la documentaci?n con las variables de la imagen :) On Tue, Jan 5, 2016 at 4:43 PM, David Muriel wrote: > Hi, > > We've added an example of Context Provider configuration and use to > devguide. The example is quite simple and it's not directly coupled > with the restaurants, as that would require adding and extra layer of > complexity into devguide. You can find the example and how to use it > on the file > https://github.com/Bitergia/fiware-devguide-app/blob/master/doc/ContextProvider.md > . > > Also, we've added the option to automate the sensors creation at > container startup time. There's two new environment variables in the > compose file to enable this: > > - SENSORS_GENERATION_ENABLED: Setting this to true will create and > initialize the sensors for each restaurant. Please note that this is > takes some time to complete, so the devguide container will not be > ready until this process completes. This can be done manually via the > server/feeders/sensorsgenerator.js script. > > - SENSORS_FORCED_UPDATE_ENABLED: Setting this to true will force an > update of all the created sensors, randomly varying the value of each > sensor. This can be done manually via the > server/feeders/sensorsupdater.js script. > > It is also advisable to enable subscriptions via > ORION_SUBSCRIPTIONS_ENABLED so that devguide adds the sensors readings > to each restaurant every time the sensors are updated. > > Regards, > > -- > David Muriel. > _______________________________________________ > Fiware-developer-experience mailing list > Fiware-developer-experience at lists.fiware.org > https://lists.fiware.org/listinfo/fiware-developer-experience > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.martin at bitergia.com Mon Jan 11 13:02:04 2016 From: alberto.martin at bitergia.com (=?UTF-8?Q?Alberto_Mart=C3=ADn_Casado?=) Date: Mon, 11 Jan 2016 13:02:04 +0100 Subject: [Fiware-developer-experience] License and copyright Message-ID: Hi! As we've discussed before, we are checking that all the files contains Copyright and license. I've been talking with Alvaro and we are going to follow the format we've been using for the files in the repository, so maybe you would like to use it also. The format is like the following example: /* * occupancyupdater.js * Copyright(c) 2015 Bitergia * Author: David Muriel , * MIT Licensed Calculates and updates the occupancy levels for all the restaurants. First it creates a new service. Then registers the sensors for each restaurant. */ So the main fields are: - Filename - Copyright - Author - License Does it looks good for you? Best! Alberto Mart?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaisiel at gmail.com Wed Jan 20 11:03:08 2016 From: jaisiel at gmail.com (Jaisiel Santana) Date: Wed, 20 Jan 2016 10:03:08 +0000 Subject: [Fiware-developer-experience] New dudes about the tour guide. Message-ID: Hi! We are updating the client of the tour guide and some questions have arisen. We would appreciate if you can answer it. - We found that the API allows to write more than one review per user about the same restaurant. Is this behaviour correct? - If we retrieve a set of reviews, the ids are not listed. We need them to update or delete reviews, we also noticed that they are not specified in the responses located in the API specification. For example, if we request for: http://compose_devguide_1/api/orion/reviews/restaurant/Ondalan we get: [ { "@context": "http://schema.org", "@type": "Review", "author": { "name": "user5", "@type": "Person" }, "itemReviewed": { "name": "Ondalan", "@type": "Restaurant" }, "name": "Rating description", "publisher": { "name": "Bitergia", "@type": "Organization" }, "reviewBody": "Body review", "reviewRating": { "ratingValue": 4, "@type": "Rating" } } ] - Have you considered to add restrictions to make reservations? (number of commensals, schedule ,maximum of reservations...) In that case, how can we retrieve this information? - We can?t access to the API specification in Apiary ( http://docs.devguide.apiary.io/#reference/api-especification-for-devguide/). We suppose that the project name has been changed according to the new nomenclature. Can you provide us the new url? Regards, -- Jaisiel Santana. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.martin at bitergia.com Wed Jan 20 12:31:10 2016 From: alberto.martin at bitergia.com (=?UTF-8?Q?Alberto_Mart=C3=ADn_Casado?=) Date: Wed, 20 Jan 2016 12:31:10 +0100 Subject: [Fiware-developer-experience] New dudes about the tour guide. In-Reply-To: References: Message-ID: Hi! Comments inline. On Wed, Jan 20, 2016 at 11:03 AM, Jaisiel Santana wrote: > Hi! > > We are updating the client of the tour guide and some questions have > arisen. We would appreciate if you can answer it. > > > - > > We found that the API allows to write more than one review per user > about the same restaurant. Is this behaviour correct? > > Yes. We conclude that a user can go to a restaurant once, twice or more times; and the service each time can be different, so we let the reviews open to more than one. > > - > > If we retrieve a set of reviews, the ids are not listed. We need them > to update or delete reviews, we also noticed that they are not specified > in the responses located in the API specification. > > For example, if we request for: > http://compose_devguide_1/api/orion/reviews/restaurant/Ondalan we get: > > > [ > > { > > "@context": "http://schema.org", > > "@type": "Review", > > "author": > > { > > "name": "user5", > > "@type": "Person" > > }, > > "itemReviewed": > > { > > "name": "Ondalan", > > "@type": "Restaurant" > > }, > > "name": "Rating description", > > "publisher": > > { > > "name": "Bitergia", > > "@type": "Organization" > > }, > > "reviewBody": "Body review", > > "reviewRating": > > { > > "ratingValue": 4, > > "@type": "Rating" > > } > > } > > ] > True. Actually the 'id' field it's a field that breaks the Review schema in schema.org, that's why we did not add it. I'll have a look again to try to find a way to add it in every review response (as in Orion it's already there but not being displayed in our API). > > > - > > Have you considered to add restrictions to make reservations? (number > of commensals, schedule ,maximum of reservations...) In that case, how can > we retrieve this information? > > Reservations are restricted already. The procedure we've follow is: - Everytime a user try to create a reservation, the application calculates how many reservations has been done in the previous 2 hours of the time we want to reserve a table. - If there's enough space, the reservation can be done; and if not, is discarded. We have a script to update that information into the restaurants: https://github.com/Fiware/tutorials.TourGuide-App/tree/master/server/feeders#occupancy-updater We are still thinking on how to 'automate' this occupancy levels into the restaurants (as I guess is the information you need). Also, we can discuss on how can we display this information and what's better for the client side, so we can talk a bit deeper about it to match your requirements. > > - > > We can?t access to the API specification in Apiary ( > http://docs.devguide.apiary.io/#reference/api-especification-for-devguide/). > We suppose that the project name has been changed according to the new > nomenclature. Can you provide us the new url? > > > Yes, sorry. I've updated in the repository thinking that it would work as github does (doing redirections) but seems not. It has been changed from 'devguide' to 'tourguide': http://docs.tourguide.apiary.io/. Sorry for the inconvenience! > > Regards, > -- > Jaisiel Santana. > > _______________________________________________ > Fiware-developer-experience mailing list > Fiware-developer-experience at lists.fiware.org > https://lists.fiware.org/listinfo/fiware-developer-experience > > Best, Alberto Mart?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaisiel at gmail.com Wed Jan 20 15:58:49 2016 From: jaisiel at gmail.com (Jaisiel Santana) Date: Wed, 20 Jan 2016 14:58:49 +0000 Subject: [Fiware-developer-experience] New dudes about the tour guide. In-Reply-To: References: Message-ID: Hi! thanks for you response. We will be waiting for your decisions before continue with these working lines. Regards, Jaisiel Santana. On Wed, Jan 20, 2016 at 11:31 AM, Alberto Mart?n Casado < alberto.martin at bitergia.com> wrote: > Hi! > > Comments inline. > > On Wed, Jan 20, 2016 at 11:03 AM, Jaisiel Santana > wrote: > >> Hi! >> >> We are updating the client of the tour guide and some questions have >> arisen. We would appreciate if you can answer it. >> >> >> - >> >> We found that the API allows to write more than one review per user >> about the same restaurant. Is this behaviour correct? >> >> > Yes. We conclude that a user can go to a restaurant once, twice or more > times; and the service each time can be different, so we let the reviews > open to more than one. > > >> >> - >> >> If we retrieve a set of reviews, the ids are not listed. We need them >> to update or delete reviews, we also noticed that they are not specified >> in the responses located in the API specification. >> >> For example, if we request for: >> http://compose_devguide_1/api/orion/reviews/restaurant/Ondalan we get: >> >> >> [ >> >> { >> >> "@context": "http://schema.org", >> >> "@type": "Review", >> >> "author": >> >> { >> >> "name": "user5", >> >> "@type": "Person" >> >> }, >> >> "itemReviewed": >> >> { >> >> "name": "Ondalan", >> >> "@type": "Restaurant" >> >> }, >> >> "name": "Rating description", >> >> "publisher": >> >> { >> >> "name": "Bitergia", >> >> "@type": "Organization" >> >> }, >> >> "reviewBody": "Body review", >> >> "reviewRating": >> >> { >> >> "ratingValue": 4, >> >> "@type": "Rating" >> >> } >> >> } >> >> ] >> > > True. Actually the 'id' field it's a field that breaks the Review schema > in schema.org, that's why we did not add it. I'll have a look again to > try to find a way to add it in every review response (as in Orion it's > already there but not being displayed in our API). > > >> >> >> - >> >> Have you considered to add restrictions to make reservations? (number >> of commensals, schedule ,maximum of reservations...) In that case, how can >> we retrieve this information? >> >> > Reservations are restricted already. The procedure we've follow is: > > - Everytime a user try to create a reservation, the application calculates > how many reservations has been done in the previous 2 hours of the time we > want to reserve a table. > - If there's enough space, the reservation can be done; and if not, is > discarded. > > We have a script to update that information into the restaurants: > https://github.com/Fiware/tutorials.TourGuide-App/tree/master/server/feeders#occupancy-updater > > We are still thinking on how to 'automate' this occupancy levels into the > restaurants (as I guess is the information you need). > > Also, we can discuss on how can we display this information and what's > better for the client side, so we can talk a bit deeper about it to match > your requirements. > > >> >> - >> >> We can?t access to the API specification in Apiary ( >> http://docs.devguide.apiary.io/#reference/api-especification-for-devguide/). >> We suppose that the project name has been changed according to the new >> nomenclature. Can you provide us the new url? >> >> >> > Yes, sorry. I've updated in the repository thinking that it would work as > github does (doing redirections) but seems not. It has been changed from > 'devguide' to 'tourguide': http://docs.tourguide.apiary.io/. Sorry for > the inconvenience! > > >> >> Regards, >> -- >> Jaisiel Santana. >> >> _______________________________________________ >> Fiware-developer-experience mailing list >> Fiware-developer-experience at lists.fiware.org >> https://lists.fiware.org/listinfo/fiware-developer-experience >> >> > Best, > > > Alberto Mart?n > > -------------- next part -------------- An HTML attachment was scrubbed... URL: