Gateway noob - Webthings

Hi all,
I’m one that plays a lot with Raspberry Pi and Arduino - I have no computer science education other than my own “figure it out” approach.

Currently I’m trying to figure out how to create a new thing on the gateway.

I’ve found guides on the code but can’t figure out where this is to be placed. I’ve searched throughout the file structure and can’t find any similar files anywhere.

Tony

Hi Tony,

When you say “create a new thing on the gateway”, what are you actually referring to? Do you want to build an add-on? Create a native web thing?

-Mike

Hi Michael,
I’f I’m honest I’m having difficulty understanding some of the architecture.

Basically, I’ve done some work with 2 MKRs connected together on my home network. I’d like to set up several sensors on an MKR and have it post to my gateway subdomain so be seen there and to be used for rules.

I’m in the wind a bit here as I’m not a programmer but do plenty of maker-y stuff and love to figure this stuff out.

From your own:
https://hacks.mozilla.org/2018/05/creating-web-things-with-python-node-js-and-java/
I’m trying to figure out where all this code sits.

I might be interpretting this wrongly but it LOOKS like you’re creating a webthing (MPDthing) which provides an interface for control on a subdomain

This is what I’d like to manage but I’d like an interface that reads from a server which is monitoring sensors.

As I said, I’m unclear where this code sits. Usually, finding code for other functions is where I start and often figure it out from there.

Tony

Hi,
If curious, I have ported webthing-node to support IoT.js an alternative runtime for more constrained devices, you’ll find some info at:
https://s-opensource.org/webthing-iotjs/

If there is any interest let me know, I’ll polish the code.

Don’t hesitate to ask for support too: