• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Documentation for Particle

Particle Documentation CircleCI

Here you'll find the documentation for the Particle platform, including the Particle Device Cloud, Photon, Electron, and Spark Core.

To view this documentation, visit our website, where the documentation is hosted.

Local Hosting

This documentation uses a fabulous tool from the folks at Segment called Metalsmith. Metalsmith is a static site generator that builds static HTML sites from source material in other formats; in this case, Markdown and Handlebars.

To set up a server running at http://localhost:8080, follow the installation instructions below...

NOTE: Any changes made to the source content should be automatically picked up by the browser via livereload.

Bare-metal Hosting

Device Setup

To host this documentation locally, you'll need Node.js and npm (see the engines section of package.json for the exact versions):

If you don't have node.js installed, you can download the installer (LTS recommended) from nodejs.org.

Once you have Node.js set up, navigate to the docs directory on your machine, and use the following commands:

Install Dependencies

To install any other necessary dependencies, run:

npm install

Spell checking

To check the spelling of all Markdown files, run:

npm run spell

This is a good idea when you edit any .md files because it not only checks regular spelling, but it will flag if you don't capitalize and spell things exactly like the rest of the docs. For example: U.FL, Wi-Fi, etc..

Actually, these two files are currently skipped because something in the files confuse the spelling checker and cause it to lose track of word breaks and then things fail horribly:

  • src/content/reference/asset-tracking/tracker-edge-firmware.md
  • src/content/reference/device-os/firmware.md

Testing

If you are making non-trivial changes, it’s a good idea to check links using the crawler. This takes a number of minutes to run:

npm test

If errors are reported, fix them and run the test again. The second time it will be much faster because it will have cached many of the lookups.

Link checking is not done on commits or pull requests due to the variable amount of time it takes and that it may randomly fail, making it hard to publish at a specific time.

Running locally

npm start

Once the output stops,

Generate PDF datasheets

npm run pdf-generation

Containerized Hosting

If you have Docker installed, then you can simply run the following commands to get started...

$ cd <particle-iot/docs>/
$ scripts/docker-server.sh --help

usage: particle-docs [--build] [--deploy] [--run-tests] [--spell-check]

Build, test and deploy a local documentation server.

  -b, --build           Build and install documentation packages.
  -d, --deploy          Launch documentation server at https://localhost:8080.
  -h, --help            Display this help and exit.
  -s, --spell-check     Run the spell-checker to verify spelling and update dictionary file.
  -t, --run-tests       Run CI tests.

NOTE: If no options are specified, then ALL options will be selected.

NOTE: Containerized hosting is currently only available on Linux devices. Mac is has an open issue involving localhost, and Windows has not been tested at this time.

The containerized version is not regularly used. It will probably work, but is not guaranteed to.

Updating Production Documentation

When updated documentation is pushed to the master branch, it is automatically pushed to Amazon S3 by Circle CI.

Organization

The majority of the content herein is stored in the src/content directory as a set of Markdown files. Assets such as images and javascript are stored in the src/assets directory.

Structuring your content

The docs dynamically generate a table of contents for navigation purposes based on the headers (i.e. ###) that you use on each page. It is important to note that order and hierarchy matters when you are designing the organization of content on your page. Your page should include the following:

  • 1 h1 at the top of the page that will serve as the title of the page. You can even copy the title directly from the front-matter of the markdown file like this: # {{title}}

  • As many h2s (##) as you'd like to serve as the section headers for the page.

  • Underneath every h2, if applicable, as many h3s (###) as you'd like to serve as sub-sections within the section. These will appear as nested within the navigation on the left.

Note that there are only 2 levels of navigation that will appear in the table of contents. h4s and below will not appear in the table of contents.

Redirects

When moving pages around or defining the default page for a section, add redirect links to redirects.json.

Attributions

Some of this documentation is derived from the Arduino documentation, as the Arduino/Wiring language and libraries are used extensively on the Spark Core.

This documentation was originally built using Flatdoc, an awesome tool for building beautiful documentation from simple Markdown files. We have made many modifications since, but the inspiration remains.

Contributions

This documentation is managed by Particle, but supported by the community. We welcome contributions such as:

  • Edits to improve grammar or fix typos (run npm run spell for automated spell check)
  • Edits to improve clarity
  • Additional annotated examples for others to follow
  • Additional content that would help provide a complete understanding of the Particle platform
  • Translations to other languages

Making a contribution is as simple as forking this repository, making edits to your fork, and contributing those edits as a pull request. For more information on how to make a pull request, see GitHub's documentation.

License

These files have been made available online through a Creative Commons Attribution-ShareAlike 3.0 license.

You are welcome to distribute, remix, and use these files for commercial purposes. If you do so, please attribute the original design to Particle both on the website and on the physical packaging of the product or in the instruction manual. All derivative works must be published under the same or a similar license.

More Repositories

1

device-os

Device OS (Firmware) for Particle Devices
C++
1,049
star
2

thermostat

A place for all things related to ye olde Spark Thermostat Hackathon
Ruby
717
star
3

spark-server

UNMAINTAINED - An API compatible open source server for interacting with devices speaking the spark-protocol
JavaScript
440
star
4

core

Hardware design files for the Spark Core, a tiny Wi-Fi development kit.
Eagle
367
star
5

sparkjs

DEPRECATED - Use particle-api-js instead
JavaScript
216
star
6

particle-cli

Command Line Interface for Particle Cloud and devices
JavaScript
212
star
7

photon

Hardware design files for the Photon, Particle's Broadcom BCM43362 Wi-Fi development kit.
180
star
8

spark-cli

DEPRECATED: Renamed to particle-cli. See https://github.com/spark/particle-cli
JavaScript
160
star
9

particle-api-js

JS Library for the Particle API
JavaScript
121
star
10

spark-protocol

Node.JS module for hosting direct encrypted CoAP socket connections
JavaScript
91
star
11

android-app

Spark Android App
Java
91
star
12

electron

89
star
13

hardware-libraries

Particle parts for computer-aided design (CAD)
81
star
14

shields

Repo for shield files for the Particle boards
C++
70
star
15

spark-sdk-ios

DEPRECATED Particle iOS Cloud SDK. Use -->
Objective-C
52
star
16

ElectronAssetTracker

Library for the Electron Asset Tracker!
C++
52
star
17

awesome-particle

A curated list of awesome things related to Particle
48
star
18

warsting

WarSting: A wardriving Hobbit sword
Arduino
45
star
19

particle-android

Particle Open Source for Android
C
38
star
20

examples

Spark Core app examples to make it easier to rock out with your Spark Core.
Arduino
36
star
21

InternetButton

Library for the Internet Button shield
C++
35
star
22

softap-setup-js

Particle SoftAP Setup for JavaScript
JavaScript
35
star
23

app-notes

Technical application notes for hardware and software designs and best-practices.
32
star
24

local-communication-example

Particle annotated example
JavaScript
32
star
25

boron

Hardware design files for Particle Boron
31
star
26

xenon

Hardware design files for Particle Xenon
28
star
27

uber-library-example

The first Spark firmware library. To exemplify naming conventions and required files.
C++
27
star
28

example-app-ios

Barebones example Swift iOS app demonstrating how to use the ParticleSetup / SDK cocoapod libraries
Swift
25
star
29

socket

Hardware design for the Spark Socket.
25
star
30

argon

Hardware design files for Particle Argon
25
star
31

xmastree

πŸŽ„ Happy Holidays from Particle πŸŽ„
JavaScript
23
star
32

particle-tinker-app-ios

iOS Particle Tinker App
Swift
23
star
33

spark-setup-android

Former home of the Particle Device Setup library for Android
Java
23
star
34

lwip

A fork of https://git.savannah.nongnu.org/git/lwip.git
C
21
star
35

particle-agent

Agent supervising the Particle firmware on the Raspberry Pi
Ruby
21
star
36

particle-cloud-sdk-ios

Official Particle Cloud SDK for iOS
Objective-C
20
star
37

gcc-output-parser

gcc error parsing library
JavaScript
19
star
38

particle-iot.github.io

Spark open source site at http://particle-iot.github.io/
HTML
19
star
39

spark-setup-ios

(DEPRECATED) Spark device setup library - Soft AP Cocoapod/Carthage lib for iOS
Objective-C
19
star
40

google-cloud-datastore-tutorial

A demonstration of how to store Particle device data in Google Cloud Datastore
JavaScript
18
star
41

tracker-edge

Particle Tracker reference application
C
18
star
42

ble-group-library

C++
18
star
43

particle-pi-camera

Repo to host the Particle Pi Camera project
C
14
star
44

beacon-scanner-library

A library for scanning BLE beacons
C++
14
star
45

vorono-iot-lamp

Arduino
13
star
46

cloud-debug

Troubleshooting tool for Particle cellular and Wi-Fi device connectivity
C++
13
star
47

PowerShield

The Power Shield library provides functions to use the on-board MAX17043 fuel gauge via I2C
C++
12
star
48

node-red-contrib-particle-official

Official Node-RED Particle nodes
HTML
12
star
49

particle-windows-sdk

Particle Cloud SDK for Windows apps
C#
12
star
50

rc-car-ios

Spark RC car iPhone app
Objective-C
12
star
51

esp32-ncp-firmware

ESP32 firmware for the Argon
C++
11
star
52

twitter-magnet

C++
11
star
53

tinydtls

C
11
star
54

debugger

Design files for the CMSIS-DAP debugger
11
star
55

nrf5_sdk

C
10
star
56

Particle-PID

PID control library for Particle, adapted from br3ttb/Arduino-PID-Library
C++
10
star
57

mff2-to-4ffnano

Flex PCB design for MFF2 to 4FF Nano SIM card adapter
10
star
58

ethernet-wing

Hardware design files for the Particle Ethernet Wing
9
star
59

electron-powersupply

Place to host the design files for experimental power supply boards for the Electron
Eagle
8
star
60

freertos

https://svn.code.sf.net/p/freertos/code Git mirror
C
8
star
61

ble-gateway-library

A library to aggregate BLE peripheral data
C++
8
star
62

node-mbed-dtls-client

node DTLS client wrapping mbedtls
C++
7
star
63

spark-tinker

Tinker plugin for spark javascript module
JavaScript
7
star
64

docs-tutorials

Tutorials, sample code, and sample designs used in the documentation (docs.particle.io)
7
star
65

wordclock

Arduino
7
star
66

firmware-buildpack-builder

A set of scripts building `buildpack-particle-firmware` Docker image out of `firmware` repository
Shell
7
star
67

rgb-pixel-clock

7
star
68

tracker-hardware

Tracker evaluation board and carrier board public repository for CAD files
7
star
69

particle-photon-setup-ios

Particle device setup library for iOS and Cocoapod & Cathage dependency format
Objective-C
6
star
70

lwip-contrib

A fork of git://git.savannah.nongnu.org/lwip/lwip-contrib.git
C
6
star
71

air-quality-kit

Source for the Particle Air Quality Monitoring Kit
C++
6
star
72

device-os-flash-util

Device OS Flashing Utility
JavaScript
6
star
73

pixel-tweets

Stream tweet events and convert them to pixel data for a Spark Internet Button!
C++
6
star
74

som-eval-board

Hardware repository for the M.2 SoM evaluation board
6
star
75

particle-library-manager

Node library for managing libraries in the cloud and on local disk
JavaScript
5
star
76

particle-usb

A library for accessing Particle USB devices
JavaScript
5
star
77

particle-app-windows

The Particle Tinker app for Windows Phone
C#
5
star
78

google-maps-device-locator-examples

JavaScript
4
star
79

gps-ublox

Support for u-blox NEO-M8U with paired NMEA parser
C++
4
star
80

realtek_ambd_sdk_public

Realtek Ameba-D SDK
C
4
star
81

makerkit

C++
4
star
82

buildpack-hal

Buildpack for modern (HAL) Particle firmware
Shell
4
star
83

particle-windows-devicesetup

Particle Device Setup SDK for Windows apps
C#
4
star
84

buildpack-raspberrypi

Buildpack for Particle firmware running on the Raspberry Pi
Shell
4
star
85

device-os-test-runner

Device OS Test Runner
JavaScript
4
star
86

device-os-protobuf

Message format definitions for Device OS
JavaScript
4
star
87

e-series-evaluation-board

Hardware repository for the E series evaluation board
4
star
88

particle-workshops

Workshops designed to teach the basics of IoT development with the Particle ecosystem
C++
4
star
89

model_gauge

MAX17043 FuelGauge Custom Model Configuration
C++
4
star
90

gsm0710muxer

C++
3
star
91

mesh-rc-cars

Gateway and endpoint firmware for mesh-networked RC cars
C++
3
star
92

windows-device-drivers

USB Drivers for Particle devices
C++
3
star
93

RelayShield

Library for the Photon Relay Shield
C++
3
star
94

binary-version-reader

a node.js module to parse versions and information from system modules and firmware for any particle device
JavaScript
3
star
95

particle-swift

Swift 3.0 Package for interacting with Particle Cloud services
Swift
3
star
96

gps-nmea-parser

Generic GPS NMEA parser for embedded systems (https://github.com/MaJerle/gps-nmea-parser)
C++
3
star
97

firmware-cicd-examples

Example firmware projects with CI/CD using GitHub Actions
C++
2
star
98

softap-emulator-js

implements the device-side of the soft-ap protocol
JavaScript
2
star
99

b-series-rs232

Hardware design repository for B Series to RS232 bridge
2
star
100

cloud

A place to discuss issues, enhancements, features for: API, Cloud Compiler, Web IDE (Build), Webhooks, Console, and Device Setup
2
star