Comments (17)
Yes, it would be a nice if we could run an instance ourselves and test things locally. I know you can set up a local.config file but it takes a whole bunch of vars that need to be set, eg:
port , oauthClientId , oauthClientSecret ,jwtCookieName ,jwtSecret , projectId,googleProjectApiKey,postgressConnectionString,serviceAccountIssuer, serviceAccountPrivateKey,userAdminUid
and it is unclear to me what these values should be or where they can be obtained..
from nora-service.
I managed to get it working on heroku, so i'll close this bug and when i have time probably write a README
from nora-service.
@realjax as promised. https://github.com/andrei-tatar/nora-service/pull/19/files?short_path=04c6e90#diff-04c6e90faac2675aa89e2176d2eec7d8
from nora-service.
Also, there no API key to enter here:
PROJECT_API_KEY = api console - credentials - api keys - key
edit: Solved, I just had to create one, using '+ create credentials -> API key
👍
from nora-service.
If you scroll down on this page (https://github.com/andrei-tatar/node-red-contrib-nora) there's a more detailed description.
from nora-service.
Hey Andrei, sorry I was in a hurry and I didn't make myself clear.
I am looking for a tutorial or a proper README on how to setup firebase and the "Nora service" to be used for local testing or to use my own firebase acc instead of yours.
I already made some changes in the nora red node (https://github.com/nicandris/node-red-contrib-nora/commit/bdc9b9b85b14a6ea275dcf9f72bf671206713ea5) so I need some kind of info on how to start the nora-service in order to do some testing and create a PR 😬 (sorry if it's obvious on how to run this, i'm not a node dev)
I supposedly did the changes to add the StartStop trait also at (https://github.com/nicandris/nora-service) but again I'm too much of a noob to test it! Any help appreciated.
from nora-service.
How to configure Firebase?
- To get started, go to the Firebase website and log in with your Google account.
https://firebase.google.com/ - When you click the “Get started” button, a new page will appear. It will offer you “Add a project”. In addition, here you can see the “Project Example” to see how the data will be displayed.
- After you select “Add project”, a window will appear where you need to enter the name of the project and specify the country.
- In the next step, a page opens where you can add Firebase to your application.
from nora-service.
Working with FirebaseDatabase:
let database = DatabaseProvider()
database.request(.getUser(id: "1")) { result in
switch result {
case .success(let response):
let snapshot = response.snapshot
case .failure(let error):
print(error.localizedDescription)
}
}
from nora-service.
Database Response Decoding
Provide a JSON initializer for your custom types and easily convert the database response
let database = DatabaseProvider()
database.request(.getUser(id: "1")) { result in
switch result {
case .success(let response):
let user = try? response.mapTo(User.init)
case .failure(let error):
print(error.localizedDescription)
}
}
from nora-service.
Working with FirebaseStorage
let storage = StorageProvider()
let avatarData = Data()
var meta = FIRStorageMetadata?
storage.request(.upload(avatarData, meta)) { result in
switch result {
case .success(_):
print("Upload Success!")
case .failure(let error):
print(error.localizedDescription)
}
}
from nora-service.
It's a shame you closed this. Because, allthough you have got it working, it remains undocumented and unclear.
from nora-service.
dont worry, i'll help writing the README after i finish adding the vacuum
from nora-service.
Great, thanks!
from nora-service.
@nicandris awesome. I did get stuck on the google API's part though.
it says
- Create a Project
- Enable HomeGraph API
- Under 'OAuth 2.0 Client IDs' click your webclient credentials
but this is where it runs off the track. :) there's nothing to click on there. It simply says 'No OAuth clients to display'. Any idea where to go from there ?
Did I maybe need to doe more for the HomeGraph API? Configure the oAuth consent screen maybe?
from nora-service.
hmmmm... i'll create a fresh project tonight and check what step i missed
from nora-service.
THAT'S IT, you are ready to deploy to Heroku! Build the app and the schema with npm run heroku-postbuild before deploying..
Also, this step leaves some stuff out I think, besides the (maybe obvious) 'npm install'..
I get a bunch of Cannot find module '../nora-common/models'.
errors...
edit: oh. those are apparently in a different repo. I guess a clone of this repo didnt clone those automatically... ah well.
from nora-service.
Well, stuck again. :)
I got it all deployed at heroku bu cant login to the app, it says
I added it to firebase of course as per the instructions,
but it still doesnt work. Any idea's ?
edit: moved this to #21
from nora-service.
Related Issues (20)
- Locks HOT 16
- Feature: RunCycle support HOT 2
- Added camera device
- How to add devices? HOT 1
- How to get the state of the Device HOT 12
- Setting up on heroku HOT 5
- Themostat command "make it cooler" returns "setpoint: [object object]-1.5" HOT 2
- Google Project API HOT 1
- FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing HOT 7
- unable to redirect to <home> after login
- Erros building the app
- Login fails - Cert issues HOT 5
- Nora Home not getting added to Google Home HOT 4
- Continuing to develop going forward? HOT 3
- Login corrupted HOT 2
- Help with Google API console HOT 3
- nora-firebas-service? HOT 1
- Push Failed
- Nora service offline? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nora-service.