You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-19Lines changed: 15 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@
5
5
# Konnected
6
6
7
7
**Konnected** integrates wired alarm system sensors and sirens to SmartThings, Home Assistant, OpenHAB, or Hubitat using a NodeMCU based ESP8266 development board and (optional) relay. This project consists of a few components:
8
-
8
+
9
9
1.[NodeMCU](http://nodemcu.com/index_en.html) based firmware for an ESP8266 development board in `firmware`
10
10
1. Lua and HTML source code for the NodeMCU in `src`. All these files are built into a SPIFFS file system which runs on NodeMCU
11
11
1.[SmartThings](https://www.smartthings.com/) platform code in `smartapps` and `devicetypes`
Windows and Mac users will need to download drivers so your computer can talk to the ESP8266 chip over USB. Depending
29
-
on which board you have, there are different drivers:
29
+
on which board you have, there are different drivers:
30
30
31
31
**[WeMos CH340 drivers](https://www.wemos.cc/en/latest/ch340_driver.html)** for boards that:
32
32
* have the name _LoLin_ on the back or front
@@ -41,23 +41,19 @@ on which board you have, there are different drivers:
41
41
Konnected leverages the [NodeMCU](https://github.com/nodemcu/nodemcu-firmware) codebase and [Docker builder](https://hub.docker.com/r/marcelstoer/nodemcu-build/) to create a base nodeMCU firmware image and a filesystem containing the Konnected application. Building only requires a few steps.
42
42
43
43
1. Download and install [Docker](https://www.docker.com/products/docker-desktop)
44
-
1. Clone the Konnected and nodeMCU repos to the same level in your working directory
1. Use the build-firmware script to kick off the build - providing a semantic version command line argument as shown below. The build script will automatically pull down the nodeMCU docker builder, build the base firmware, create an LFS image, and build a SPIFFS file system containing the entire Konnected application.
48
+
1. Use the build-firmware script to kick off the build - providing a semantic version command line argument as shown below. The build script will automatically pull down the correct nodeMCU image, and use this nodeMCU docker builder to create base firmware, an LFS image, and a SPIFFS file system containing the entire Konnected application.
54
49
55
50
cd konnected-security
56
51
./scripts/build-firmware 2-2-99
57
52
58
-
1. Once the build completes a folder will be created in `firmware/builds` named after the version specified in the previous step. This folder will contain two files also reflecting the version.
53
+
1. Once the build completes a folder will be created in `firmware/builds` named after the version specified in the previous step. This folder will contain three files also reflecting the version.
59
54
1. konnected-filesystem-0x100000-2-2-99.img
60
55
1. konnected-firmware-2-2-99.bin
56
+
1. konnected-esp8266-2-2-99.bin
61
57
62
58
*Note: Each time you build it will remove any prior build outputs corresponding to the same version.*
63
59
*Note: Versions in this project should always be formatted `<major>-<minor>-<patch>`.*
@@ -67,26 +63,26 @@ Flashing a build is simple with the [Konnected Flashing Tool](https://help.konne
67
63
68
64
Mac and Linux users can also easily flash from the command line using [scripts/flash](scripts/flash).
69
65
70
-
1. You must have Python installed with `pip` or `pip3`.
71
-
***Mac users**: I recommend using [Homebrew](https://brew.sh/) and `brew install python`
72
-
66
+
1. You must have Python installed with `pip` or `pip3`.
67
+
***Mac users**: I recommend using [Homebrew](https://brew.sh/) and `brew install python`
68
+
73
69
1. Open up a terminal and install `esptool` packages:
74
-
70
+
75
71
pip3 install esptool
76
-
72
+
77
73
1. Run the script in `scripts/flash` to flash the firmware and software to the device. You must pass in version and serial port args. The flash script will always attempt to flash a matching version in `firmware/builds` before falling back to `firmware/releases`
78
74
79
75
./scripts/flash 2-2-99 /dev/ttyS3
80
-
76
+
81
77
*Note: You may also need to make the script executable by running `chmod 755 scripts/flash`.*
82
-
78
+
83
79
84
80
### Donations
85
81
86
82
We work hard on this project because we're passionate about making home automation accessible to everybody. Millions of
87
83
homes in North America and worldwide are already wired with sensors and have the potential to become smart homes. We
88
84
want to make this a reality.
89
-
85
+
90
86
If you've used Konnected Security and it's improved your life and your home security, please consider [donating](http://docs.konnected.io/donate) to help us
0 commit comments