Code Monkey home page Code Monkey logo

mozassist's Introduction

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

  • Things Gateway =< 3.1. After logging into the Things Gateway, it can not redirect to the authentication screen. See issue. In the second access from mozassistant to the Things Gateway, the authentication screen is displayed.

mozassist's People

Contributors

sogaani avatar

Stargazers

steelburn avatar Rizwaan Abdul Kadir avatar  avatar Denis Kazimirov avatar  avatar Mark Bennett avatar Srđan (Serge) Đukić avatar rho333 avatar Michał Patyk avatar Matthew Lieder avatar Jordan avatar John Grant avatar Thomas Hunsaker avatar Fajran Iman Rusadi avatar Daniel Sager avatar Muhammad Ahmed avatar Tobias Bradtke avatar Nathan Harvey avatar Dietrich Ayala avatar

Watchers

Matthew Lieder avatar James Cloos avatar John Grant avatar rho333 avatar  avatar  avatar Michał Patyk avatar  avatar

Forkers

damooooooooooh

mozassist's Issues

Linking not completing

I successfully went through the whole linking process, including the Authorization prompt screen on my gateway, but when it redirected back to the Google Home app it said "Something went wrong. Please try again". I've tried it multiple times to no avail. Do you have logs that show anything amiss?

Thanks!

Failure to connect

Have followed the instructions, new install of webthings on pi4, just get the following, despite several attempts of reboot power off and checking typos.. Definitely right clientid secret.. Any ideas?

{
    "error":"unauthorized_client",
    "error_description":"client id unknown",
   "state":"AMXHz3TvobCbymqkpnycClQjSru1ETnUcBXf2f0XGxzTmstFyZufX3_1mfcbtIRyFfQZZBU1kGf_RbFgJY6xeyIYvF3UxmfOmgiiZS8R3peYel9v6s73KIj3TefqS0QWTJfhKTJzGhR3TLqkF_15BWcc_gv7cc_Ncai7hMft8meGoKeySiq6zBjbfhxk83Xf18f9hyU-VAP6UY2Gn1z_fhgOLx9LAsZTABKu-hxNtUFl6ukJl_OoBub2CxpL4elZ-aanQZyTV558NS8SdmF3eAWV1-bkB7s5cZcPEJR8EPkDaIE4hzQahixMULILCO2smz2PFNKsyZXIPqFm6ttl59aP3tbrwKj8VSrPtrJ-MQ7nmkIUKHrb9eljGPQAexUpL3MM73IPWTynuyeDujtSl1-JZsJAhrr9QTayr_dexLafpQlQ9f6VqoBl6TgV_YYv5BE91Nw7pj4TPFV0HgvCJTnWzBG8XbwNoPIlRxxBrJIh8JX_PDwvRlO1vCnB9ckOIsmTIIeAY9gWvxXKdcJ5RmI6TA882s6FE8IFItlgDXaBdtYXhwdldV3W4Iqv1yFWIAczyGwIiTf8"
}

Not able to setup in Google Home app

Hi,

I tried to add [test] MozAssist via my Google Home app. I submitted my credentials (and also added them to my gateway following readme) and managed it to allow page. After I click Yes, everything looks fine until Google Home app returns error: Couldn't update the setting. Check your connection.

I didn't see any error during setup process and I don't see any record in authorizations page in my gateway. I tried multiple times and I ensured that my connection is fine.

Since there is no log in gateway I'm unable to send you more useful informations. Feel free to provide info how to debug it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.