Comments (6)
Did you source the .sparkrc file?
source .sparkrc
That actually loads the variables into your environment so they can be accessed inside of Node.js via process.env
If you put that into your shell's dotfile, note that it will be loaded automatically for you the next time you open a new terminal window.
Certainly let us know if you still have problems and we can help you along. Or if you just want to move past it and "get it working" you can always copy the access tokens directly into the Spark-io constructor in your code in place of the two process.env references.
Feel free to join us on Gitter chat for help like this anytime!
https://gitter.im/rwaldron/johnny-five
@rwaldron next time one of us updates the README, we should probably clarify this a bit more in the Getting Started section:
https://github.com/rwaldron/spark-io#getting-started
from particle-io.
Do you source the .sparkrc file in a seperate file? If so what do you name
it as?
I tried to put "source .sparkrc" in my HelloWorld.js code but it produced a
compile error.
On Sat, Nov 22, 2014 at 2:03 AM, David Resseguie [email protected]
wrote:
Did you source the .sparkrc file?
source .sparkrc
That actually loads the variables into your environment so they can be
accessed inside of Node.js via process.envCertainly let us know if you still have problems and we can help you
along. Or if you just want to move past it and "get it working" you can
always copy the access tokens directly into the Spark-io constructor in
your code in place of the two process.env references.Feel free to join us on Gitter chat for help like this anytime!
https://gitter.im/rwaldron/johnny-five—
Reply to this email directly or view it on GitHub
#42 (comment).
from particle-io.
I finally got it working. I misunderstood and thought I needed to put the "source .sparkrc" command into a file. I put the command in the terminal to commit the .sparkrc file I created and now it is working.
Thanks.
from particle-io.
But you should keep that line in your .bashrc (or similar)
from particle-io.
@auch188 glad you got it working. As Rick said, if you put the source ~/.sparkrc
(being sure it points to the correct location) in your .bashrc (or whatever shell you're using), then it will be loaded automatically for you in the future.
from particle-io.
Thanks for the info. Will do
On Sat, Nov 22, 2014 at 10:42 AM, David Resseguie [email protected]
wrote:
@auch188 https://github.com/auch188 glad you got it working. As Rick
said, if you put the source ~/.sparkrc (being sure it points to the
correct location) in your .bashrc (or whatever shell you're using), then it
will be loaded automatically for you in the future.—
Reply to this email directly or view it on GitHub
#42 (comment).
from particle-io.
Related Issues (20)
- Unable to connect to spark cloud.: code: 404 HOT 3
- Add mDNS support for Robustness. HOT 5
- Add tests for internalRGB HOT 1
- internalRGB should return current color when no params HOT 1
- throw error if bad values passed to internalRGB
- pulseIn HOT 3
- Support for Serial on Particle devices HOT 3
- Incompatibilities with Spark CLI 1.2.0 HOT 30
- new five.Button ( TypeError: pin.replace is not a function ) HOT 7
- Support I2C devices HOT 6
- Adding a "bypassCloud" parameter? HOT 11
- Error connecting to particle cloud HOT 9
- Allow connecting to devices via device name HOT 2
- pin normalization issue when using particle-io and oled-js HOT 2
- pin.replace is not a function HOT 4
- Detect restart of photon HOT 1
- MPU6050 example not working HOT 4
- Board disconnect event HOT 3
- Cloud API not getting stream
- Voodoospark Code copied would not compile HOT 1
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 particle-io.