Comments (10)
Hi,
We haven't done any testing with the Rasberry Pi. Those instructions were for the Particle
fork of the library but I would assume that those instructions should still "work" to some extent.
You'll need to make sure you install the particle-cli
instead of the older spark-cli
.
Anyway, I just ordered a Rasberry Pi 3 so I'll be able to test this out.
The main instructions for setting up the server on Win/OSX/Linux works.
Don't worry about the deprecation errors. The server should still run fine
All you need to install is Spark Server and it will install the Spark Protocol.
from spark-server.
Hi,
Thanks for your fast response and help.
Your project is great. And have a very important use in the ecosystem of Particle.
For use in some automation project, a high number of companies not agree the machines have connection of internet.
My case is this.
I need know more for finish install in Windows:
1 - Whats recommended version of Windows.... and x86 or x64 all softwares ?
2 - What's your version of Visual Studio ? and need this ?
3 - In my case now, the URSA not complete the compile ... I believe because the version of Visual Studio...
If you port your latest version with a easy and clean installation in Raspberry Pi 3 or UDOO NEO I contribute with your project. This two hardwares is cheap and very usefull in others tasks in automation.
Thanks,
Adio
from spark-server.
- Any version of windows works
- No need for visual studio - install windows build tools https://github.com/nodejs/node-gyp I'll add this instruction to this repo
from spark-server.
@adiogarda - I've updated the Pi install instructions. There were a few issues with installing node and particle-cli but everything else worked.
from spark-server.
Hi John Kalberer,
Many thanks for all info.
As mentioned, your development and project is very important for the community of Particle.
My report status for your project:
Windows 2012 --> Worked fine all (spark-protocol, spark-server, particle-cli).
With (node version 6.9.5 - npm version 3.10.10)
Raspberry Pi B+ --> latest raspbian - worked fine
Udoo Neo --> latest udobuntu - worked fine
UBNT (Ubiquiti) Cloud Key (version 5.4.11) - Worked Fine, but need two things:
- Change the port 8080 for another (ex: 8090), because in the 8080 have the another web service.
- Install in SD CARD (/srv), because the space in the main storage is small.
For me and some, I install automation with local WiFi (not external access) and all of my time I use the UBNT products (Cloud key, switches, Access Points, etc...) all time I install the Cloud Key device (controller) and this device use Debian.
Thanks,
Adio - Spark
from spark-server.
Thanks. That's great to hear.
I also ran into some trouble with the port -- you should be able to pass -p 8090
as a parameter to node to change the port.
from spark-server.
Hi John,
I try to claim the Photon in my Local Cloud (server). But in the past this devices I used in Particle Cloud.
I have executed in Particle Cloud the unclaim..
But I have the error: "Unclaimed Device" in the log of server.
And In the moment I start the server (main.js) I have the "Access token: null" .... Is a error ?
If I try to connect the Photon in Particle Cloud the access token is valid.. but not in my server...
What's wrong ?
Thanks
Adio
from spark-server.
You need to follow the main readme instructions. particle keys doctor device_id
while in DFU mode.
I couldn't get it to work while plugging the photon into the Raspberry Pi.
from spark-server.
Hi John,
I runned a connection test scenario using two photons.
One is publishing 500 numbers (sequentially, from 1 to 500) at a given frequency. The frequency I inform via serial during startup.
The other photon is subscribing to the first.
In both I count the cloud connection losses.
In the second I also count the delay between arrived messages and the numbers losts (probably due to longer cloud disconnection).
As result: (a) using 300ms of interval, the second photon (subscription) reconnected to cloud 4 times; (b) at 500ms interval, the second photon reconnected to cloud 8 times and; (c) at 1000ms interval, the second photon reconnected to cloud 15 times. Based on these values, I imagined that the server is dropping (ending session for) the second (subscribed) photon at every half minute.
Is that behaviour expected?
from spark-server.
Please open another issue. No, this is not expected.
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.