sogaani / mozassist

Connect Google Assistant and Mozilla Things Gateway.
Mozilla Public License 2.0
19 stars 1 forks source link

MozAssist

Google Smart Home App that connect Google Assistant and Mozilla Things Gateway.

Prerequisites for connecting Things Gateway

Create authorization credentials

The Things Gateway must create authorization credentials that allow the MozAssist to access your Things Gateway APIs.

Things Gateway =< 0.4 have no UI to create authorization credentials, and thus add some codes. Add following codes to the end of src/models/oauthclients.ts.

oauthClients.register(
  new ClientRegistry(new URL('https://mozassist.sogaani.com/allow'),
    'hoge', // Client ID
    'Hello',
    'hoge', // Client Secret
    '/things:readwrite')
);

The Client ID and The Client Secret must change to string that others do not know.

Known issues