Comments (21)
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.
@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.
I should mention that I ran this on OSX using node v7.4.0 / npm v3.10.8.
from spark-server.
Same problem on node v6.9.4 / npm v4.1.1
from spark-server.
Looks like particle-cli just updated their code. We have a fix but are investigating long-term fixes.
from spark-server.
from spark-server.
@crenwick @pintaric - is this issue solved for you two?
from spark-server.
I think so. Getting a few different errors on other tests, but several are now passing.
from spark-server.
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.
It's now working for me, thanks for the quick response! :)
from spark-server.
Sure! https://gist.github.com/crenwick/282644be38fae360526757760a3a8922
This is with a fresh install of the npm modules.
from spark-server.
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.
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.
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.
@pintaric - are things working for you then? You just needed to manually create src/data
?
from spark-server.
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.
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.
@pintaric - I'm talking about the local install path. That's how you get cloud compile working.
from spark-server.
Sounds great, @jlkalberer
Love the project.
from spark-server.
@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.
@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)
- .env not working if spark-server is used as dependency HOT 5
- Error on spark-server update-firmware HOT 4
- Response timeout for event: spark-server/call_device_function HOT 5
- ERROR: DeviceServer.js for local server HOT 2
- firmware device counter increases with failed flash attempts HOT 2
- Cannot upload device IDs with non-numeric characters
- Hook for device status change? HOT 3
- Is there a way to pass the contents of the publish event directly to MQ? HOT 7
- Memory Leak
- update-firmware requests failing HOT 3
- support for mesh devices HOT 1
- Function call returns error when firmware function returns zero HOT 6
- Electron session end after every 30 seconds HOT 5
- Throws error on starting spark-server HOT 1
- device names not accepted as deviceId - breaks particle-cli HOT 15
- Device.js/14528 on hostName: Device disconnected (cache_key=_5, deviceID=deviceid, duration=46.791, disconnectCounter=1) HOT 1
- Error with handshake process HOT 32
- Claiming / provisioning a devices without an deviceID HOT 5
- Does this still work? HOT 15
- Is there a renamed implementation of Particle.subscribe(particle/device/name); ? HOT 5
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 spark-server.