Coder Social home page Coder Social logo

.sparkrc about particle-io HOT 6 CLOSED

auch188 avatar auch188 commented on August 26, 2024
.sparkrc

from particle-io.

Comments (6)

Resseguie avatar Resseguie commented on August 26, 2024

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.

auch188 avatar auch188 commented on August 26, 2024

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.env

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


Reply to this email directly or view it on GitHub
#42 (comment).

from particle-io.

auch188 avatar auch188 commented on August 26, 2024

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.

rwaldron avatar rwaldron commented on August 26, 2024

But you should keep that line in your .bashrc (or similar)

from particle-io.

Resseguie avatar Resseguie commented on August 26, 2024

@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.

auch188 avatar auch188 commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.