Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Updates the Web app to work with the new Firebase library #217

Merged
merged 10 commits into from
Nov 29, 2016

Conversation

gguuss
Copy link
Contributor

@gguuss gguuss commented Oct 28, 2016

No description provided.

@proppy proppy added this to the 0.1 milestone Nov 1, 2016
@proppy proppy self-assigned this Nov 1, 2016
var firebaseUrl = 'https://example.firebaseio.com';
var firebaseSecret = secret_or_token;
// NOTICE: Retrieve these values from the Firebase console to run the sample.
var firebaseDb = 'yourproject.firebaseio.com';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we update that to match the placeholder in the sketch?

1. Go to the firebase hosting URL: `firebase-name.firebaseapp.com`
1. Use the color picker and paint the NeoPixel table
1. Watch the NeoPixel being updated to the matching color
1. Go to the firebase hosting URL: `firebase-name.firebaseapp.com`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be yourproject.firebaseapp.com to match what's before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Looks like the docs are being overhauled though?

@proppy
Copy link
Contributor

proppy commented Nov 15, 2016

Not sure why the CI is failing :(

@gguuss
Copy link
Contributor Author

gguuss commented Nov 16, 2016

It's saying test/travis/check_all_examples_use_standard_init.sh is failing and there's no output, perhaps the path is wrong?

@gguuss
Copy link
Contributor Author

gguuss commented Nov 16, 2016

I'm looking into it, a closer look shows:

examples/Firebase_ESP8266_Neopixel/Firebase_ESP8266_Neopixel.ino does not contain standard defined in test/travis/*_init.cc.snip.

So I'm guessing that I should be using different variable names or constants somewhere.

@proppy
Copy link
Contributor

proppy commented Nov 16, 2016

@gguuss
Copy link
Contributor Author

gguuss commented Nov 17, 2016

I need to squash an accidental commit of an experimental folder.

@gguuss
Copy link
Contributor Author

gguuss commented Nov 17, 2016

Commits squashed, rogue experiment vanquished.

var firebaseUrl = 'https://example.firebaseio.com';
var firebaseSecret = secret_or_token;
// NOTICE: Retrieve these values from the Firebase console to run the sample.
var firebaseDb = 'yourproject.firebaseio.com';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we update that to match the placeholder in the sketch?

@@ -54,7 +54,7 @@ firebase deploy

## Play

1. Go to the firebase hosting URL: `firebase-name.firebaseapp.com`.
1. Go to the firebase hosting URL: `yourproject.firebaseapp.com`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I was suggesting to rename the firebaseio.com url to match what's in the .ino file, but updating both also sounds good!

1. Select the board `Board > ESP8266 Modules > NodeMCU 1.0`
1. Select the serial port `Port > /dev/tty...`
1. Select the upload speed `Upload Speed > 115200`
1. Click `Sketch > Upload`
1. Open `public/index.html` with a text editor
1. Replace `example.firebaseio.com` with the `Firebase Hostname` from step `2.`
1. Replace `secret_or_token` with `Firebase Secret` from step `5.`
1. Replace `yourproject.firebaseio.com` with the `Firebase Hostname` used for configuring the Arduino project.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we wants example.firebaseio.com everywhere.

Sorry for the lack of precision of the earlier comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, I'll change to be consistent with your checks.

@proppy proppy merged commit 7226a6b into FirebaseExtended:master Nov 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants