Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebThingsIO implementation not compatible with node-wot #393

Closed
JohannesMerkt opened this issue Mar 3, 2021 · 9 comments
Closed

WebThingsIO implementation not compatible with node-wot #393

JohannesMerkt opened this issue Mar 3, 2021 · 9 comments

Comments

@JohannesMerkt
Copy link
Contributor

JohannesMerkt commented Mar 3, 2021

I tried to create a web thing with an arduino running an example code from webthing-arduino and connect with the node-wot client. When fetching the Thing Description node-wot complains:

Cannot consume TD because Property 'on' has no forms field

The TD as json looks like this:

{
"id":"led",
"title":"Built-in LED",
"@context":"https://iot.mozilla.org/schemas",
"base":"http://192.168.178.143/",
"securityDefinitions":{"nosec_sc":{"scheme":"nosec"}},
"security":"nosec_sc",
"@type":["OnOffSwitch","Light"],
"links":[{"rel":"properties","href":"/things/led/properties"},{"rel":"actions","href":"/things/led/actions"},{"rel":"events","href":"/things/led/events"},{"rel":"alternate","href":"ws://192.168.178.143/things/led"}],
"properties":{"on":{"type":"boolean","@type":"OnOffProperty","links":[{"href":"/things/led/properties/on"}]}}
}

it has a links field rather than forms.

Here is the schema WebThingsIO is using: https://github.com/WebThingsIO/schemas

Since both libraries implement the WOT Things Description they should work together.

It would be awesome if they could work together.

Here the issue i openend on webthing-arduino: WebThingsIO/webthing-arduino#134

@wiresio
Copy link
Member

wiresio commented Mar 3, 2021

Since both libraries implement the WOT Things Description they should work together.

Unfortunately Mozilla does not follow the W3C rec., see e.g. here: WebThingsIO/api#149

@egekorkan
Copy link
Member

Also look here: https://github.com/WebThingsIO/wiki/wiki/Mozilla-W3C-Differences

@JohannesMerkt
Copy link
Contributor Author

Thank you for your quick reply. So i guess comatibility in the near future is unlikely. Thats sad. It puts me into the dilema that i want to be able to use a wide range of languages and hardware (arduino) to create web things, which is possible with WebThingsIO but I cannot simply interface with them with a library as they only have the gateway.

@relu91
Copy link
Member

relu91 commented Mar 3, 2021

Hi Johannes, thanks for reporting the issue. As the others said we are well aware of the issue and I am glad to inform you that we have recently started working on a possible unification of the two models. I'm personally looking into the issue with the support of @sebastiankb and @benfrancis. So bear your Arduinos and ESP32s there's hope 😄

@benfrancis
Copy link

See also: WebThingsIO/gateway#2802

@danielpeintner
Copy link
Member

@benfrancis @relu91 I assume the efforts of aligning are still ongoing right?

@benfrancis
Copy link

@danielpeintner Actually the implementation work has unfortunately been paused for the last few months due to a shortfall in funding. I'm waiting on news on potential future funding to resume the work.

@relu91
Copy link
Member

relu91 commented Sep 20, 2022

@danielpeintner Actually the implementation work has unfortunately been paused for the last few months due to a shortfall in funding. I'm waiting on news on potential future funding to resume the work.

Yes, I confirm. However, when I stopped working on the integration I verified that the basic functionalities worked (read/write properties). I'll allocate some of my free time to report how much you can do with node-wot as a client of a web thing hosted in the WebThings gateway.

@danielpeintner
Copy link
Member

I am closing the issue since it does not really concern this project.
The pointer to the on-going process for WebThingsIO was given (see WebThingsIO/gateway#2802).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants