Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ondrej Tomcik
    @ondrejtomcik

    Josef, can you indicate how to resolve the merge conflict on jakarta?

    Wouter, is this commit from Daniel or Martin Roesch ? Jozef is out until Monday.

    hi, I'm a newbee and just tried setup this https://plgd.dev/quickstart/deploy-plgd-cloud/ in my aws cloud

    Hello. Are you deploying this bundle image in the AWS? Bundle is supposed to be deployed on your local PC. Of course you can deploy it in AWS but then this deployment guidline won’t help you with set up of load balancer and so on. Do you have all your ports open? Can you telnet to 5684 5683 and 443 ?

    1 reply
    Wouter
    @WAvdBeek

    Josef, can you indicate how to resolve the merge conflict on jakarta?

    Wouter, is this commit from Daniel or Martin Roesch ? Jozef is out until Monday.

    I guess it is from Josef, not sure why this is now an issue with merging... we can wait until monday

    Ondrej Tomcik
    @ondrejtomcik
    Ok. Let’s wait until then.
    xiao8xiao1
    @xiao8xiao1
    微信图片_20210625144735.jpg
    when i use otgc, how to config the cloud?
    how to fill the authentication provider, the cloud url , the access token, cloud uuid ? anybody know ? thanks
    Ondrej Tomcik
    @ondrejtomcik
    Hello. I would download plgd onboarding tool from appstore / google play store.
    Do you need to use otgc?
    Jozef Kralik
    @jkralik
    @xiao8xiao1
    do you have plgd/bundle running or do you want to onboard it to the try.plgd.cloud ?
    Jozef Kralik
    @jkralik

    for try.plgd.cloud:

    Authentication Provider: plgd
    Cloud Url: coaps+tcp://try.plgd.cloud:5684
    Access token: you need to get from  https://api.try.plgd.cloud/api/authz/code
    CloudID: adebc667-1f2b-41e3-bf5c-6d6eabc68cc6

    all infromation you can get from https://try.plgd.cloud/.well-known/ocfcloud-configuration

    xiao8xiao1
    @xiao8xiao1
    @ondrejtomcik yes, i need to use otgc, the plgd app can onboard my device to the cloud, but then i can only control device via web, the plgd app can't control device
    xiao8xiao1
    @xiao8xiao1
    0b1763c9b0ef174585f64a0775245c74.jpg
    when i open the otgc cloud configuration again, there is nothing. and i see a info: 'retrive cloud status has failed'
    e47c1911e55cf718c39bbd09e5dea4d3.jpg
    xiao8xiao1
    @xiao8xiao1
    @jkralik can you please tell me how to onboard the device to try.plgd.cloud , thanks
    use the otgc
    Jozef Kralik
    @jkralik

    @xiao8xiao1 There are two other thinks which you need to do:

    1. at first you need to add certificate authority to the device - https://try.plgd.cloud/.well-known/ocfcloud-configuration (member cloud_certificate_authorities)
    2. you need to ACL for cloud to access the device - otherwise cloud cannot get/update resources.

    And the end you can set Cloud Configuration.

    BTW: we have android/ios application which do all these steps automatically: https://play.google.com/store/apps/details?id=dev.plgd.client , https://apps.apple.com/ch/app/plgd/id1536315811

    xiao8xiao1
    @xiao8xiao1
    @jkralik yes, the plgd.client can onboard device to cloud. but the plgd.client can't control device like otgc.
    and can you tell me how to use the otgc add certificate authority to the device ? can you give me a screenshot ?
    i want to onboard device to cloud and then control the devie in one application , is it possible?
    David Márquez Fàbrega
    @DavidMarquezF
    As far as I know the plgd app is only used to onboard the device to the cloud. It cannot do anything more. There is the OTGC mobile app but I don't know if it supports setting up the cloud from there (at least a few months ago it didn't). The only way you can control the device that I know of is either through the webpage or by doing the whole process using the onboarding CMD tool
    Is it possible to set up a local development bundle and make it work with the mobile app?
    I've seen a commit in this branch talking about it, but is it possible yet? https://github.com/plgd-dev/plgd.mobile/blob/v2update/lib/services/ocfClient.dart
    Ondrej Tomcik
    @ondrejtomcik
    @DavidMarquezF yes, you can use plgd mobile app with the bundle. When you start it, at the bottom you can set a custom plgd cloud endpoint. This can be bundle.
    David Márquez Fàbrega
    @DavidMarquezF
    Okay, then maybe I'm missing something simple, but if I start the local server in my PC and use the plgd dev app from my phone, using Configure custom plgd cloud endpoint and using my local IP gives an error: The configuration was fetched but was invalid
    Well apparently now I get the same error even if I press continue to try.plgd.cloud. I've tried clearing cache and app data but it still does the same
    Ondrej Tomcik
    @ondrejtomcik
    :) Yes, there is a new version already released in the appstore...
    Which doesn’t match currently released plgd cloud. Change is still on a MR. On monday there will be new bundle.
    David Márquez Fàbrega
    @DavidMarquezF
    The last version available for me is the 1.2.0
    Ondrej Tomcik
    @ondrejtomcik
    Yes. It was released yesterday.
    Do you need also UI ?
    plgd ui ?
    we are changing contract before official v2 release, so I can give you bundle but UI doesn’t work there yet.
    David Márquez Fàbrega
    @DavidMarquezF
    I have been using the CMD tool all along but I have to present the project and it's always nicer if done with a good-looking app hahah
    David Márquez Fàbrega
    @DavidMarquezF

    :) Yes, there is a new version already released in the appstore...

    You mean in the try.plgd.cloud? Because the appstore release date I have says Nov24, 2020

    Ondrej Tomcik
    @ondrejtomcik
    When do you have a presentation ?
    Do you run your presentation on your own bundle instance or try.plgd.cloud instance ?
    David Márquez Fàbrega
    @DavidMarquezF
    I run it on my own bundle on my laptop. The presentation will be two weeks from now
    Jozef Kralik
    @jkralik
    @xiao8xiao1 I never use otgc client so I only know theory what need to do because I implement it in plgd client(sdk)
    You can try to reach diego.bartolome@dekra.com - he is responsible for otgc tool.
    David Márquez Fàbrega
    @DavidMarquezF
    In order to test things, if I use the latest bundle of v2 branch with the latest plgd sdk from v2 branch, I should be able to get everything working right?
    Jozef Kralik
    @jkralik
    @DavidMarquezF the (PR)[plgd-dev/cloud#288] which contains all API changes. It is branch http-gateway-provides-metadata.
    David Márquez Fàbrega
    @DavidMarquezF
    Okay, thank you! Either way I managed to get it working with the v2next bundle and the v2 branch of the sdk. However I do see a problem in the mobile phone app OCFClient which maybe should be documented or fixed (maybe I'm doing something wrong though). When setting up the the bundle locally, the /.well-known/ocfcloud-configuration has a cloud url like the following: coaps+tcp://localhost:5684. In line https://github.com/plgd-dev/plgd.mobile/blob/1045e7b8835eedafd434320c0f17cb3dba80083e/ocfclient/OCFClient.go#L169 the cloud url is set to the device. However it is obviously not going to work because instead of localhost it should be the address of the bundle server.
    For now I just put the url by hand to do some testing, but I'm sure there is a better way of making this work
    For my testing I copied the OCFCLient from the mobile source code and called the functions directly in a golang script in order to run this in a shell
    Jozef Kralik
    @jkralik
    @DavidMarquezF at bundle there is a enviroment variable FQDN, where you can set ip of your notebook. After that you will see good address at /.well-known/ocfcloud-configuration.
    Eg. docker run -e FQDN=192.168.1.35 ... plgd/bundle:v2next
    Ondrej Tomcik
    @ondrejtomcik

    @DavidMarquezF , I would propose to not update to version from Jozef. Stay with your older version where UI is working and I will send you older version of mobile plgd app. Do you have apple or android phone?

    There is no space to switch to new version and have it stable for your demo in 2 weeks.

    David Márquez Fàbrega
    @DavidMarquezF
    Thank you @jkralik ! I'll try that. @ondrejtomcik seems like a good idea but it won't work in my case because I modify some other things in the ACLs. For now I've solved it by creating my implementation of the OCFClient of the mobile app and running it with golang. However, I'm thinking about doing the same updates in a fork of the mobile and then build the apk. Is that possible? In the end I understand that the mobile app's dart service stays the same, since the only thing to modify is the .aar that gets generated from the OCFClient.go file. Am I on the wrong here? Or is it worth giving it a try?