User Tools

Site Tools


oak:tutorials:localserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
oak:tutorials:localserver [2016/12/08 18:37]
pfeerick Added Raspberry Pi specific particle-cli install command
oak:tutorials:localserver [2016/12/08 21:38]
pfeerick mis-numbered steps
Line 30: Line 30:
 ===== Installing the Particle CLI Tool ===== ===== Installing the Particle CLI Tool =====
  
-  * With node installed in the last step you can install the Particle CLI tool with this command: +  * With node installed in the last step you can install the Particle CLI tool with this command: <​code>​npm install -g particle-cli</​code>​
-<​code>​npm install -g particle-cli</​code>​+
  
-  * If you are on the Raspberry Pi, you need to use the following command so that the serialport dependency is successfully compiled as there are no pre-compiled binaries for the Raspberry Pi/ARM platform: <​code>​sudo npm install -g particle-cli --unsafe-perm --build-from-source</​code>​+  * If you are on the Raspberry Pi, you will need to use the following command so that the serialport dependency is successfully compiled as there are no pre-compiled binaries for the Raspberry Pi/ARM platform: <​code>​sudo npm install -g particle-cli --unsafe-perm --build-from-source</​code>​
  
  
Line 73: Line 72:
  
  
-==== 2. Copy the device Public Key to the Server ​ ====+==== 3. Copy the device Public Key to the Server ​ ====
  
 In the server folder create a core_keys folder if it does not exist. In the server folder create a core_keys folder if it does not exist.
Line 95: Line 94:
  
  
-==== 3. Set the Particle CLI tool to allow it to talk to the local server ====+==== 4. Set the Particle CLI tool to allow it to talk to the local server ====
  
 Source: https://​docs.particle.io/​support/​troubleshooting/​cloud-solutions/​photon/​ Source: https://​docs.particle.io/​support/​troubleshooting/​cloud-solutions/​photon/​
Line 110: Line 109:
 This adds the local server ip to the cli tool, switches to using it, and creates an account on the local cloud. This adds the local server ip to the cli tool, switches to using it, and creates an account on the local cloud.
  
-==== 4. Restart Oak so it connects ====+==== 5. Restart Oak so it connects ====
  
 Stop and restart the server. Stop and restart the server.
oak/tutorials/localserver.txt · Last modified: 2017/03/05 01:48 by malaire