So, I can’t get it to work on a fresh copy of raspbian.
I’ve followed the instructions listed here:
After I login, keys server, keys doctor, and setup, the best I can get is a fast flash cyan. The photon never is acknowledged as being on the local cloud.
WHAT EXACT VERSIONS OF EVERYTHING ARE YOU GUYS USING?
Can you go from a completely virgin environment and get something working?
pi@higgs:~ $ uname -a
Linux higgs 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
pi@higgs:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”
pi@higgs:~/spark-server $ npm --version
6.7.0
pi@higgs:~/spark-server $ node --version
v8.11.1
pi@higgs:~/spark-server $
(opencv_env)[kujawa@nikola tmp]$ particle list
bob [26002b000247353137323334] (Product -1) is offline
[2019-02-02T20:07:56.372Z] INFO: DeviceServer.js/9012 on higgs: Connected Devices (devices=0, sockets=0)
[2019-02-02T20:08:06.377Z] INFO: DeviceServer.js/9012 on higgs: Connected Devices (devices=0, sockets=0)
[2019-02-02T20:08:16.381Z] INFO: DeviceServer.js/9012 on higgs: Connected Devices (devices=0, sockets=0)
[2019-02-02T20:08:26.390Z] INFO: DeviceServer.js/9012 on higgs: Connected Devices (devices=0, sockets=0)
[2019-02-02T20:08:36.403Z] INFO: DeviceServer.js/9012 on higgs: Connected Devices (devices=0, sockets=0)
[2019-02-02T20:08:46.407Z] INFO: DeviceServer.js/9012 on higgs: Connected Devices (devices=0, sockets=0)
Steps I used to set up the server:
sudo apt-get install nodejs npm
sudo npm install -g npm@latest --unsafe-perms
sudo apt-get install dfu-util
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0
sudo apt-get install git
sudo npm install -g particle-cli --unsafe-perm
git clone https://github.com/Brewskey/spark-server.git
cd spark-server/
npm install oauth2-server
vi spark-server/.env
GITHUB_AUTH_TYPE=basic
GITHUB_AUTH_USERNAME=ivorjawa
GITHUB_AUTH_PASSWORD=
npm install --verbose
grep -i admin dist/settings.js
vi dist/settings.js
npm run start:prod
particle config higgs apiUrl "http://192.168.86.141:8080"
particle config higgs
particle cloud login
pi@higgs:~ $ particle identify
Your device id is 26002b000247353137323334
Your system firmware version is 0.5.3
pi@higgs:~ $ mkdir temp
pi@higgs:~ $ cd temp
-
Press and hold both the RESET/RST and MODE/SETUP buttons simultaneously.
-
Release only the RESET/RST button while continuing to hold the MODE/SETUP button.
-
Release the MODE/SETUP button once the device begins to blink yellow.
pi@higgs:~/temp $ particle keys server …/spark-server/data/default_key.pub.pem
Creating DER format file
Okay! New keys in place, your device will not restart.
pi@higgs:~/temp $
pi@higgs:~/temp $ particle keys doctor 26002b000247353137323334
New Key Created!
Saved!
Saved!
attempting to add a new public key for device 26002b000247353137323334
submitting public key succeeded!
Okay! New keys in place, your device should restart.
pi@higgs:~/temp $ particle identify
Your device id is 26002b000247353137323334
Your system firmware version is 0.5.3
pi@higgs:~/temp $ particle setup