GithubHelp home page GithubHelp logo

Comments (21)

jlkalberer avatar jlkalberer commented on July 17, 2024 1

So, you'll need to delete npm_modules or just npm_modules/spark-protocol and npm install

That will run the postinstall script to fetch this file.

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024 1

@crenwick - I added in the ability for the server to automatically flash system updates if your device needs an update. This feature automatically downloads the necessary firmware updates from the spark-firmware releases during the post-install step.

The new issue you are seeing is coming from another feature I added. You can use the particle CLI or the particle IDE to flash source directly to your device. In order to do so, you need to clone the https://github.com/spark/firmware repository somewhere on your machine. It will use this repo to compile you application (FIRMWARE_REPOSITORY_DIRECTORY).

Anyways, I'm going to write a readme on this that explains how to set the feature up.

from spark-server.

pintaric avatar pintaric commented on July 17, 2024

I should mention that I ran this on OSX using node v7.4.0 / npm v3.10.8.

from spark-server.

crenwick avatar crenwick commented on July 17, 2024

Same problem on node v6.9.4 / npm v4.1.1

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

Looks like particle-cli just updated their code. We have a fix but are investigating long-term fixes.

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

@crenwick @pintaric - is this issue solved for you two?

from spark-server.

crenwick avatar crenwick commented on July 17, 2024

I think so. Getting a few different errors on other tests, but several are now passing.

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

Hmm.. the tests should all be passing. Can you let us know which ones are failing for you? A gist of the output would be good enough.

from spark-server.

pintaric avatar pintaric commented on July 17, 2024

It's now working for me, thanks for the quick response! :)

from spark-server.

crenwick avatar crenwick commented on July 17, 2024

Sure! https://gist.github.com/crenwick/282644be38fae360526757760a3a8922

This is with a fresh install of the npm modules.

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

Ahh... ok, I have an idea of what's going on.

Did you change the path for the FIRMWARE_REPOSITORY_DIRECTORY ?

Can you let me know what the path is for spark-server on your local machine?

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

Sorry that you're the guinea pig.. We haven't tested on OSX or Linux and that's a brand new feature that's failing.

from spark-server.

pintaric avatar pintaric commented on July 17, 2024

I forgot to mention that I manually created the src/data directory and edited src/settings.js (to point FIRMWARE_REPOSITORY_DIRECTORY to the correct path on my machine) in order to get the server to run on OSX.

(Otherwise, I would get the same errors as described in https://gist.github.com/crenwick/282644be38fae360526757760a3a8922).

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

@pintaric - are things working for you then? You just needed to manually create src/data?

from spark-server.

crenwick avatar crenwick commented on July 17, 2024

Oh interesting. Maybe I'm misunderstanding the scope of this project. I didn't know it was so coupled with firmware.

Is there a specific firmware repo that this requires? I pointed the FIRMWARE_REPOSITORY_DIRECTORY to my custom firmware repo, but its content is very different than what this project assumes (no /user/applications dir).

from spark-server.

pintaric avatar pintaric commented on July 17, 2024

As far as I know, the official device firmware repo is located at https://github.com/spark/firmware.

Also, from what I learned so far, the term "firmware" is used quite ambiguously for both "device firmware" and "user firmware".

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

@pintaric - I'm talking about the local install path. That's how you get cloud compile working.

from spark-server.

crenwick avatar crenwick commented on July 17, 2024

Sounds great, @jlkalberer

Love the project.

from spark-server.

pintaric avatar pintaric commented on July 17, 2024

@jlkalberer - Thanks! Haven't gotten to that step yet, but I'll let you know if I run into any issues on OSX/Linux. Eventually, I'd like to run your spark-server fork in a Docker Container, so maybe that's something I can contribute in the future.

from spark-server.

jlkalberer avatar jlkalberer commented on July 17, 2024

@pintaric - pull latest and you shouldn't see any issues with running for the first time.

A docker container would be nice. I actually don't see there being any issues running it there.

from spark-server.

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.