Open benfrancis opened 2 years ago
Some initial ideas for the UI to add a Thing:
Open questions:
I'm inconsistently using the terms "Thing" and "Device". Should it always be "Device"?
we should use Thing and ThingDirectory
Since the app should manage every Things(i like how it sound lol) shouldn'T we just , when we add ThingsDirectory add every Things that was found on the ThingsDirectory, so the Things page will have EVERY Things,
On Dashboard the user will be able to create custom dashboard with just some of the things that are already in the Things parts
Since the app should manage every Things(i like how it sound lol) shouldn'T we just , when we add ThingsDirectory add every Things that was found on the ThingsDirectory, so the Things page will have EVERY Things,
The WebThings App should work for individual web things (e.g. implemented using the WebThings Framework) as well as directories of web things (like WebThings Gateway).
But yes, if a user adds a gateway to the app we should store all the Thing Descriptions hosted by that gateway (the WoT Discovery specification also defines an API for being notified when things are added, removed or updated so that you can keep in sync).
See #13 for an explanation of why adding a whole gateway is currently more difficult than adding an individual Thing.
i saw #13, but in my first attemp of an app, i was already able to retrieve every things from a gateway without issue. so adding a gateway will not be an issue vs adding things directory if we keep the things library compatible to both
so since, i could assume, a thing directory just kept link of wich things are in the directory, then we will create things object, gateway vs thing directory won'T have much difference and issue
you add gateway(or thingsdirectory) then you list thing and create object wich will be linked to the gateway(or directory) by passing the source as argument to the thing object(like the adapapter is passed as argument to the thing and the thing to the property etc....)
in my first attemp of an app, i was already able to retrieve every things from a gateway without issue
Out of interest, how did you handle authentication?
I generate a token from the web gui and use it
Le lun. 23 mai 2022, 06 h 14, Ben Francis @.***> a écrit :
in my first attemp of an app, i was already able to retrieve every things from a gateway without issue
Out of interest, how did you handle authentication?
— Reply to this email directly, view it on GitHub https://github.com/WebThingsIO/android-app/issues/1#issuecomment-1134482794, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSPAAFCY7P4CAVLUIFO7ITVLNLCFANCNFSM5TNPHKEA . You are receiving this because you commented.Message ID: @.***>
Ah I see, so that requires users to manually generate a token in the gateway's web interface and then copy and paste it into the app? That is what I'm hoping to avoid. External apps and services should really authenticate with the gateway using OAuth.
I've created a next iteration of the UI mockups for this user story with an OAuth flow included.
yeah you told me about that, i had planned to use Oauth instead for this app.
Le lun. 23 mai 2022, à 07 h 36, Ben Francis @.***> a écrit :
Ah I see, so that requires users to manually generate a token in the gateway's web interface and then copy and paste it into the app? That is what I'm hoping to avoid. External apps and services should really authenticate with the gateway using OAuth.
I've created a next iteration of the UI mockups for this user story with an OAuth flow included.
[image: add_thing-with_authentication] https://user-images.githubusercontent.com/552417/169810421-38d91b15-86d2-40cf-ac43-dcf7cc3dcacb.png
— Reply to this email directly, view it on GitHub https://github.com/WebThingsIO/android-app/issues/1#issuecomment-1134561932, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSPAABZYTFF32GPBR7YNELVLNUUTANCNFSM5TNPHKEA . You are receiving this because you commented.Message ID: @.***>
As a user I want to add a thing to my list of things so that I can monitor and control it over the internet.
Add by web thing URL (a URL which resolves to a WoT Thing Description 1.1).