Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ondrej Tomcik
    @ondrejtomcik
    But I don’t think you need openid and profile
    And you need to put id of this api into your application -> Advanced settings -> OAuth
    Krzysztof Włodarczyk
    @kwlodarczyk
    Adding scopes alone didn't work. But it did work when I assigned Permissions manually to the user via the portal:
    image.png
    The consent page looks like below. The details look odd.
    image.png
    Krzysztof Włodarczyk
    @kwlodarczyk
    I think the custom auth0 account would be preferred for automated tests, since we will need to have management access in order to clear the previously granted consent before tests start. So it would be great if the custom setup mimicked the original one
    Ondrej Tomcik
    @ondrejtomcik
    You won’t need auth0 probably at all. That’s why it’s still not done. We have a mocked oauth server, which you could use. There is no authentication, it works just as it is, but we don’t have consent screen there. We need to add it there, very simple one, just accept / decline.
    And it will be displayed everytime.
    Krzysztof Włodarczyk
    @kwlodarczyk
    Ok, so we can switch to using the built in oauth server once it the consent screen is added. For now I need to be able to run the CTT test cases and get the same results as on your end. First manually, then I will try to make it part of automated testing.
    Can you share the updated values, i.e. the client ID etc?
    Also, can you share the passing test logs? It would help me debugging potential issues in my setup.
    harzival
    @harzival

    configure env for docker image like: -e FQDN=10.100.0.129. After that the website will be accesible via https://10.100.0.129

    Thanks that fixed my redirects :)

    harzival
    @harzival

    Hello @harzival . I need to publish the newest app to the appstore. Will try to do it today and I will come back to you.

    Good to know, I patiently await.
    Is there another way to onboard by the way beside the iOS/Android app btw? Not a requirement but CLI based onboarding for cloud would be useful for automation.

    Ondrej Tomcik
    @ondrejtomcik
    I am just publishing an app for a review. It will be soon available.
    @harzival there is a tool, @jkralik can tell you more,
    By the way, don’t you want to use k8s instead of single docker container @harzival ? There is a helm chart and it’s pretty easy to deploy. https://plgd.dev/deployment/k8s/
    Ondrej Tomcik
    @ondrejtomcik
    @harzival do you have a testflight ? I can share it with you earlier.
    harzival
    @harzival

    @harzival do you have a testflight ? I can share it with you earlier.

    I do that would be great

    By the way, don’t you want to use k8s instead of single docker container @harzival ? There is a helm chart and it’s pretty easy to deploy. https://plgd.dev/deployment/k8s/

    I haven't used Kubernetes before so I'll have to read up, I'll give it a go though

    Wouter
    @WAvdBeek
    e.g. the merge for the observable oic/res is not working completely.#
    Jozef Kralik
    @jkralik
    @WAvdBeek Yes, The fix is in iotivity/iotivity-lite#156 ... sry for that - it is hard to test it when this github action runs only with master/tag
    1 reply
    Jozef Kralik
    @jkralik

    @harzival You can use ob tool to onboard device to the bundle.

    git clone https://github.com/plgd-dev/hub.git
    cd hub/bundle/client/ob
    go build .
    # onboard any device to bundle with address 10.100.0.129
    ./ob --addr 10.100.0.129
    # show parameters
    ./ob --help

    But you need to have installed golang to build ob tool.

    harzival
    @harzival
    Awesome, that worked great, just onboarded an esp32 exposing a CO2 sensor :)
    Ondrej Tomcik
    @ondrejtomcik:matrix.org
    [m]
    Awesome!
    On what project rare you working?
    Home project or at work?
    harzival
    @harzival

    Both actually, for a automotive/warehousing company in the UK, trying to put OCF at the core of making a "Digital Twin" out of factories and such.

    One part of that is low cost modular sensors that are easily mass deployed (M5Stack's ESP32 units, fully encased with grove ports and a large variety of also-encased sensors types that pretty much plug and play, worth checking out). The plan is to have identical firmware on all of them, and OTA 'drivers' for each type of sensor appendage, so I can give each operation a bucket of them, when plugged in they get onboarded and exposed. Currently we take months for any kind of sensor deployment, with bespoke design, network setup, security, dashboards/monitoring. Can just make a single dashboard for the lot once this works.

    The other part is augmented reality, and that more personal to me, I want to make a open source platform-agnostic augmented reality "browser" that lets all the glasses and AR enabled devices have shared experiences via OCF. A server in any place, like your home or a supermarket, exposes standardised types of anchor points/tags (images on the wall, april tags, qr codes, etc), the first anchor added being the 0,0,0 point of the room, all other being relative to it, when any are seen the AR device knows its relative position to the 0,0,0 point and uses its native AR framework to keep track of its transform from that point. The other part exposed via the OCF on that server is virtual "furniture"/experiences, which are just blobs of WebGL code with a position relative to that 0,0,0. The AR device loads those WebGL/HTML5 blobs through a headless browser and uses the renderable output to display it over the real world where its been pre-placed (relative to the 0,0,0 point of the room the phone is tracking).

    Ondrej Tomcik
    @ondrejtomcik
    Sounds super interesting. What about having a call and short exchange how we can help each other? 🙂
    harzival
    @harzival
    Sure, that would be great, I've never actually spoken to anyone working with OCF stuff before
    atulkprajapati
    @atulkprajapati
    Anyone who can guide me on Running an Iotivity demo on Linux/Windows/RaspberryPi(without ad-on)/ESP8266 ? It would be highly appreciated :)
    atulkprajapati
    @atulkprajapati
    @makothap Hello, can you please guide me in doing the setup ?
    Ondrej Tomcik
    @ondrejtomcik:matrix.org
    [m]
    Hello @atulp201 pelase follow https://plgd.dev/quickstart/create-device/
    1 reply
    Esp8266 is not supported. Only esp32
    atulkprajapati
    @atulkprajapati
    Has anyone tried out the Iotivity - OCFSecure example ?
    Ondrej Tomcik
    @ondrejtomcik:matrix.org
    [m]
    It’s secure example which is documented
    3 replies
    Ondrej Tomcik
    @ondrejtomcik:matrix.org
    [m]
    I sent you the link already
    I don’t have doc for the client. Onboard device using plgd mobile app to try.plgd.cloud and use the ui to interact with resources.
    atulkprajapati
    @atulkprajapati
    Can you suggest me a way, to connect with you in private and get a good understanding of the topic and implementation?
    Ondrej Tomcik
    @ondrejtomcik:matrix.org
    [m]
    I suggest you to firstly go through plgd.dev and iotivity.org and make hands dirty.
    There is enough context to get a good understanding.
    8 replies
    atulkprajapati
    @atulkprajapati

    Sure, thank you for the guidance

    I suggest you to firstly go through plgd.dev and iotivity.org and make hands dirty.

    Ondrej Tomcik
    @ondrejtomcik:matrix.org
    [m]
    🙂 because it’s not integrated with the gpio of the raspberry pi. The glue between the IoTivity code and raspi has to be done on your own.
    atulkprajapati
    @atulkprajapati
    Actually in the README, it's mentioned that it should work if connected to GPIO 7. Anyways, can you please guide me as to where can I find resources for that glue(ing) procedure :)
    Ondrej Tomcik
    @ondrejtomcik
    Could you please send me link to that readme?
    I honestly cannot guide you, I never did it. I would look for a bash script for raspi how to enable led, and execute it from the iotivity-lite light resource. That's the most simple way in my opinion.
    3 replies
    But pretty dirty. But I don't think you are now looking for a clean solution ;)
    Krzysztof Włodarczyk
    @kwlodarczyk
    @Danielius1922 In your description here https://deploy-preview-35--previewplgd.netlify.app/features/ocf-cloud-api/ you are using ngrok to to forward notifications from to the CTT. Why is forwarding needed in the first place? The local plgd instance and the CTT are running in the same local network, so there should not be a need to forward notification over the Internet, right? In my setup the notifications are not getting through, but only when they are forwarded via ngrok. Ideally we would like to remove ngrok from the setup. Could you please give me some hint on how to debug notifications on plgd side? Could it be some issue with the certificate of the event callback server? Are there logs in plgd cloud that I could check?
    Daniel Adam
    @Danielius1922
    @kwlodarczyk to be honest I was told to use ngrok, so I haven't investigated what would be necessary to make it run without it. However, I think the issue are certificates and that they must have specified protected domains - in our certificates that's localhost. We currently have no way of deploying custom certificates or generating certificates with different protected domain. (@jkralik please correct me if I got it wrong here). So I think it's not possible to avoid ngrok right now.