andrei-tatar / nora-service

NORA backend service
https://node-red-google-home.herokuapp.com
34 stars 30 forks source link

Feature: RunCycle support #11

Open gvdhoven opened 4 years ago

gvdhoven commented 4 years ago

I would like to add support for the RunCycle trait to support my LG Dryer (https://developers.google.com/assistant/smarthome/guides/dryer). I already have the status of my connected dryer in Node-Red available.

I am cool to extend the Nora service and node-red plugin and give you a PR, but i would like to get some instructions on how to set it up locally and how to test it off course.

andrei-tatar commented 4 years ago

Sure, you can have a look in the other PRs like adding support for locks: https://github.com/andrei-tatar/nora-service/pull/9/files

However it's pretty complicated to set it up locally since you need to create your own instances of all the google services as well. https://developers.google.com/assistant/smarthome/overview

The code also uses a postgress db to save the linked user ids.

You can see in the config file all the params you need: https://github.com/andrei-tatar/nora-service/blob/master/src/config.ts

It's probably easier to set it up in your own heroku dyno, but you still need to provide all the google services params.

gvdhoven commented 4 years ago

Thank you for the reply Andrei;

Setting up my own docker instance with SSL encrypted endpoint is not a problem for me; so if you have pointers for that (e.g. running your own cloud)?

On 2019-12-06 11:44, Andrei Tatar wrote:

Sure, you can have a look in the other PRs like adding support for locks: https://github.com/andrei-tatar/nora-service/pull/9/files

However it's pretty complicated to set it up locally since you need to create your own instances of all the google services as well. https://developers.google.com/assistant/smarthome/overview

The code also uses a postgress db to save the linked user ids.

You can see in the config file all the params you need: https://github.com/andrei-tatar/nora-service/blob/master/src/config.ts

It's probably easier to set it up in your own heroku dyno, but you still need to provide all the google services params.

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].

Links:

[1] https://github.com/andrei-tatar/nora-service/issues/11?email_source=notifications&email_token=AABNN3L6M2SCBJHJRC6LGLTQXIUITA5CNFSM4JVWNC7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGDXDAY#issuecomment-562524547 [2] https://github.com/notifications/unsubscribe-auth/AABNN3KT66G2OLFFSDPCH43QXIUITANCNFSM4JVWNC7A