google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
892 stars 291 forks source link

No src/config-provider.ts file #540

Open fatshotty opened 3 years ago

fatshotty commented 3 years ago

Hi, I followed instruction but I can't be able to found the file src/config-providers.ts file and then I don't have the client_secret value

any help?

Fleker commented 3 years ago

I'm not sure why it would be missing in the source, but it should be in this format:

/* Copyright 2017, Google, Inc.
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 /**
  * This provides a number of parameters that may be used throughout this sample.
  */

// Port used for Express server
export const expressPort = 3000

// Client id that Google will use to make authorized requests
// In a production environment you should change this value
export const googleClientId = 'sampleClientId'

// Client secret that Google will use to make authorized requests
// In a production environment you should change this value
export const googleClientSecret = 'sampleClientSecret'

let ngrok = false
process.argv.forEach((value) => {
  if (value.includes('isLocal')) {
    ngrok = true
  }
})

// Running server locally using ngrok
export const useNgrok = ngrok

export const googleCloudProjectId = 'put your project id here'
fatshotty commented 3 years ago

thanks for reply. However... nothing is working. Documentation in Readme.md is not the same as per google console pages; maybe is it outdated? If you try to follow instructions as per readme.md file.... I think you can't correctly setup the project

Thank you

EgHubs commented 3 years ago

any news here, please? same here. where can I get my client id and secret for OAuth?