Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/counter click en111 #202

Open
wants to merge 61 commits into
base: enhancement/esp32-port
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
ad23270
Fix Mqtt onlinemode bug
trap98 Jun 28, 2018
0ea852c
Merge pull request #163 from LaCoolCo/fix/online-mode
3rwww1 Jun 28, 2018
820ac8e
Deploy build artifacts to S3
3rwww1 Jun 27, 2018
b373cbd
Merge pull request #161 from LaCoolCo/enhancement/travis-deploy-s3
3rwww1 Jun 28, 2018
5ba5b0c
fix wrong logs when data corrupted
gui4d Jun 29, 2018
51488d4
Merge pull request #166 from LaCoolCo/fix/wrong-irenne3000-logs
3rwww1 Jun 29, 2018
2f6e36a
register date of last ph calibration
gui4d Jun 28, 2018
87fdb1c
Merge pull request #164 from LaCoolCo/enhancement/Time-of-ph-calibration
3rwww1 Jun 29, 2018
9d81f70
Fix up bug 31 JUNE
Jul 1, 2018
cccff8d
Merge pull request #169 from LaCoolCo/enhancement/fixup-RTC
3rwww1 Jul 2, 2018
4839282
Clean warning compilation
Jul 2, 2018
7b0594a
fix moisture sensor linearisation
gui4d Jul 2, 2018
dae7581
delete useless values
Jul 2, 2018
4890b21
Integrating ERE 4 channel 4-20mA interface in API
Jul 11, 2018
05ed9e0
Quick and dirty adaption of DFrobot EC kit on IRN3000
Jul 13, 2018
b96990a
fix fluctuation of mesurement
gui4d Jul 16, 2018
53eeea3
Clean comments
Jul 16, 2018
b5a4709
Add example configuration
Jul 16, 2018
1f4ac85
Merge pull request #179 from LaCoolCo/enhancement/EConIrene
Jul 17, 2018
b35aa3a
Merge pull request #180 from LaCoolCo/enhancement/MCP3424_4-20mA
Jul 17, 2018
641b7a8
Range Low and High for Actors accept floats
Jul 18, 2018
1a6dbe2
Merge pull request #181 from LaCoolCo/fix/RangesAsFloat
3rwww1 Jul 19, 2018
7cdb1c8
Merge pull request #173 from LaCoolCo/enhancement/soil-moisture-linea…
3rwww1 Jul 19, 2018
2a495cc
Merge pull request #172 from LaCoolCo/enhancement/Warning-reduction
3rwww1 Jul 19, 2018
6a62b5c
WIP
Jul 18, 2018
191063c
WIP, works fine now
Jul 19, 2018
55812e6
Cleanup code and add an example
Jul 20, 2018
c7b0de3
Removing Coolpubsubclient, using orignal library
Jul 31, 2018
6f3ef10
Update platformio.ini
Kameeno Jul 31, 2018
075db38
erase Serial.print for debug
Aug 6, 2018
1904c1a
Merge pull request #188 from LaCoolCo/enhancement/I2Cchirp
Aug 6, 2018
4fbd1ac
Changes in sleep fonction for a higher loginterval
Axe-R Jul 3, 2018
2f3b47a
Merge pull request #175 from LaCoolCo/fix/log-interval
3rwww1 Aug 9, 2018
aa68c3d
Update platformio.ini
Kameeno Aug 9, 2018
8d2c35a
Merge branch 'master' into enhancement/remove-Coolpubsubclient
Kameeno Aug 9, 2018
df1915e
Merge pull request #190 from LaCoolCo/enhancement/remove-Coolpubsubcl…
3rwww1 Aug 9, 2018
58eeb93
Get the BME280 working as external sensor,with example
Aug 20, 2018
701ca6e
Merge pull request #194 from LaCoolCo/enhancement/externalBME280
3rwww1 Aug 21, 2018
ae4acd8
Convert Seconds in LOW_POWER_SLEEP to microseconds
Aug 30, 2018
a65e3ed
Merge pull request #198 from LaCoolCo/fix/lowBatteryRecovery
3rwww1 Aug 31, 2018
2ef0c98
hot fix actuators
trap98 Sep 6, 2018
a27ab9c
Merge pull request #200 from LaCoolCo/fix/actuators
Sep 11, 2018
4bfdcb9
First commit
Sep 17, 2018
58d8d4c
Adding Ethernet
Kameeno Sep 18, 2018
6c5f926
ignoring ESP32HTTPUpdate on ESP8266 Compile
Kameeno Sep 18, 2018
6916334
Update platformio.ini
3rwww1 Sep 20, 2018
91caea7
Fix typo in SPIFFS include directive
3rwww1 Sep 20, 2018
07d62ed
Fix platformio.ini
3rwww1 Sep 20, 2018
a20a8a3
Ignore .key files
3rwww1 Sep 20, 2018
9222de8
Check ethernet connection
Kameeno Sep 20, 2018
cfd7293
Fix platformio.ini
3rwww1 Sep 20, 2018
26c8df3
Merge branch 'porting/ESP32' of https://github.com/LaCoolCo/LaCOOLBoa…
Kameeno Sep 20, 2018
e469ee3
Fix network and SSL
3rwww1 Sep 25, 2018
44ebb96
Fix NTP and RTC on ESP32
3rwww1 Sep 27, 2018
c6d02ee
Make sensor startup timeout better
3rwww1 Sep 27, 2018
854ada5
Cleanup main file
3rwww1 Sep 27, 2018
69c14da
Fix Ethernet status messages
3rwww1 Sep 27, 2018
288d84b
Fix saving and replay of messages
3rwww1 Sep 27, 2018
9bb64ec
Add I2C scan on startup
3rwww1 Sep 27, 2018
675f1e6
Introduce MCP23017 I2C multiplexer as sensor
3rwww1 Sep 27, 2018
2d5a8f4
Added externalSensors based by External Interrupt
Kameeno Oct 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
**/data/*.key
**/data/certificate.bin
**/data/privateKey.bin
/examples/**/*.cpp
52 changes: 34 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,50 @@
language: python
python:
- "2.7"

- '2.7'
sudo: false

install:
- pip install -U platformio
- platformio update

- pip install -U platformio
- platformio update
script:
- platformio run -t clean
- patch/patch.sh
- export RELEASE_VERSION=$(git describe --tags --always)
- platformio run
- export FIRMWARE=.pioenvs/prod/LaCOOLBoard-${RELEASE_VERSION}.bin
- mv .pioenvs/prod/firmware.bin ${FIRMWARE}
- platformio run -t clean
- export RELEASE_VERSION=$(git describe --tags --always)
- platformio run
- export FIRMWARE=LaCOOLBoard-${RELEASE_VERSION}.bin
- mkdir artifacts
- cp .pioenvs/prod/firmware.bin ${FIRMWARE}
- cp .pioenvs/minified/firmware.bin artifacts/minified-${RELEASE_VERSION}.bin
- cp .pioenvs/prod/firmware.bin artifacts/prod-${RELEASE_VERSION}.bin
- cp .pioenvs/heap/firmware.bin artifacts/heap-${RELEASE_VERSION}.bin
- cp .pioenvs/debug/firmware.bin artifacts/debug-${RELEASE_VERSION}.bin
- cp .pioenvs/trace/firmware.bin artifacts/trace-${RELEASE_VERSION}.bin
notifications:
email:
on_success: [email protected]
on_failure: [email protected]
recipients: [email protected]
slack:
secure: TxKrv7J+fHDe98JOmzKve1PLvmuTdK4/wzSKQx7vOIz4tyje+CQuFJMPOOvjkaJoS8jT+s0FR25q8r5QF1mFpIofBPvvLu/PL3KOaPDs2lE4HXHoQi4vZiCQnDJbpQhk4dxwLHqbQ/OHwZOm0qmVusB9EJjf81iTxr2jA09/neEtPE06Yn3FIU+XaxJYbI7VeN5SgOeOCroo931BvYjyEcUhMUuqVHPI5KuBkNJ1bc3fAQyg6KGi5jFs18Fugd6OZQGMV8aJf4l9weyTUXL60x9i6AUOoCSNb+pMAQYfG/bn7PWhQgsV8q+hB5cNESRpklNA6c4uLDWsdCb1/gI0NtNDdwg8oEmRpRJXf5W9/cCzWZFHrruFJm12wjNaSAy63a8bOF15Ve79ngGrUGHwSDjXA5JSeYrtvNVM9e4IWfmjcNK2JeXnhhnicAAPXPmxLLlyTtTsDWcmYy3b7rWcRmwzmRW2NCoQGctw2VndXOqk5ojl7iZSdNYI7JkeX9cLU4YfJPbnb2qviuENrvl14D/2hv4jozFGTd/6A8Z6Xs/qQxknfKrbS0BN4haA9X6hRPO0gs5qfMh4UrVM/wJ7N4tcWR/F4C6tkxdmH+tfAVTYLAnuhZRfqFhqxI5Ni50iWNYzFeweH3jZ/2CgYTeyj3Tj/BN27ityKjL76mZEzMc=
deploy:
skip_cleanup: true
provider: releases
- provider: releases
name: La COOL Board ${RELEASE_VERSION}
file_glob: true
file: "${FIRMWARE}"
api_key:
secure: rKQbtn2MgGMKqlc85hng89PcjDoU2H+lsIcXXTb56inOWUzINhtR+Uxjvixk9U5yNjX/KUYLzcZYWyxvybv0qlW7ZRH5LJsK0F/RFMp4t7u7IG/OCHjpixbLM3hlWynrraX1XULPbvM3UDpnGa8yzFt0oLk1pBaU85G91UAwRQOb5ZE/LcG+P5ZxrQLWzVxW8ezE6d1201/gDjeIyTlfRnL26k1rtkk+znVtCtBncuPRxfNGJyBX4Es2XzOgx8YQQAnQFp0eHYYsetOn/d3h3AbClNI8mG6p6sy3k/z1EhO3CCWypfEWuZ2wwopMDEA//Py+BoIZ4BLws0LwVbjI+dznfcexsXtCIAWHxEqiqqLQsQFxxk7L1hFa1m4aQjS6AGpy3rvJx+uQOPrcdP+749wjsxzIfp0eQgi4TcASI2AVtJPw/x0MyPerrlusf7mOhSdz+WC+M4AjSUoYGQzejFaWNZbDkDgYebrxqAcTHiHc2PVSjbLtAtM9FTtjRoMUF7Ys2jsHDpcfIGzT6pBFUHh3MotQAfB9oH/OvsNu5EB56lLdHsSl9sHfZNz5wLNbXcqW1sW9JlvFnDC8/t60WXv+lPBn1QI6DBA8kCTuO3HRRiFwVxTSe4T90Pep56sg+ALwBO8obER3JCNIGSh61BxM/TIV1s2oRYAp6wpxiOs=
name: La COOL Board ${RELEASE_VERSION}
file_glob: true
on:
repo: LaCoolCo/LaCOOLBoard
tags: true
- provider: s3
skip_cleanup: true
access_key_id: "${AWS_ACCESS_KEY_ID}"
secret_access_key: "${AWS_SECRET_ACCESS_KEY}"
region: "${AWS_DEFAULT_REGION}"
bucket: "cool-firmware-releases"
local_dir: "artifacts"
upload-dir: "${TRAVIS_BRANCH}"
on:
all_branches: true
repo: LaCoolCo/LaCOOLBoard
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- secure: GXJ4wvpvqJr/mEJHgxQxDOxWQx4x8J0gg5oODiXk9bcqk574JxqupgOGTOEfgQ+u8jy6Ic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X3zWNNtwJ+kpNzSqglAI8KprMOzQJJnCjaLOU++kbJI3qQKOcf05B7b/lh+MPj8JrJGhk2K3Bw1dRv66Ds+/bzfGV74ebHuP7GjKhdqE/BiGAkJrlUxLjn+0WHAgY1kdcWHFpL7/097Ja9MOvGHVijD4mz8NZGzZhvl11lyngSc6DW4/VmaoPyyZDMQhrZhMEjtH3jHzzn1WZeRd8B80EgqtUJraRcBa/0w=
42 changes: 42 additions & 0 deletions boards/coolboard32.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"build": {
"core": "esp32",
"extra_flags": "-DESP32 -DARDUINO_ESP32_DEV",
"f_cpu": "240000000L",
"f_flash": "40000000L",
"flash_mode": "dio",
"ldscript": "esp32_out.ld",
"mcu": "esp32",
"variant": "esp32"
},
"connectivity": [
"wifi",
"bluetooth",
"ethernet",
"can"
],
"frameworks": [
"arduino",
"espidf"
],
"name": "La COOL Board",
"upload": {
"flash_size": "4MB",
"maximum_ram_size": 327680,
"maximum_size": 4194304,
"protocol": "esptool",
"protocols": [
"esptool",
"esp-prog",
"olimex-arm-usb-tiny-h",
"olimex-arm-usb-ocd-h",
"olimex-arm-usb-ocd",
"olimex-jtag-tiny",
"minimodule"
],
"require_upload_port": true,
"speed": 921600
},
"url": "http://www.lacool.co",
"vendor": "La COOL Co"
}
24 changes: 24 additions & 0 deletions examples/ChirpSoilMoisture/ChirpSoilMoisture.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* CoolBoardExample
*
* This example shows typical use
* of the CoolBoard.
*
* Save this example in another location
* in order to safely modify the configuration files
* in the data folder.
*
*/

#include <CoolBoard.h>

CoolBoard coolBoard;

void setup() {
Serial.begin(115200);
coolBoard.begin();
}

void loop() {
coolBoard.loop();
}
21 changes: 21 additions & 0 deletions examples/ChirpSoilMoisture/data/coolBoardActorConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"actif": false,
"inverted": false,
"temporal": false,
"low": [
0,
5000,
0,
0
],
"high": [
0,
5000,
0,
0
],
"type": [
"Temperature",
""
]
}
9 changes: 9 additions & 0 deletions examples/ChirpSoilMoisture/data/coolBoardConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"logInterval": 3600,
"ireneActive": false,
"jetpackActive": false,
"externalSensorsActive": true,
"sleepActive": true,
"manual": false,
"mqttServer": "mqtts.lacoolboard.io"
}
3 changes: 3 additions & 0 deletions examples/ChirpSoilMoisture/data/coolBoardLedConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ledActive": true
}
15 changes: 15 additions & 0 deletions examples/ChirpSoilMoisture/data/coolBoardSensorsConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"BME280": {
"temperature": true,
"humidity": true,
"pressure": true
},
"SI114X": {
"visible": true,
"ir": true,
"uv": true
},
"vbat": true,
"soilMoisture": true,
"wallMoisture": false
}
15 changes: 15 additions & 0 deletions examples/ChirpSoilMoisture/data/externalSensorsConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"sensorsNumber": 2,
"sensor0": {
"reference":"I2Cchirp",
"address":34,
"kind0":"C1 Humi",
"kind1":"C1 Temp"
},
"sensor1": {
"reference":"I2Cchirp",
"address":33,
"kind0":"C2 Humi",
"kind1":"C2 Temp"
}
}
13 changes: 13 additions & 0 deletions examples/ChirpSoilMoisture/data/irene3000Config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"waterTemp": {
"active": true
},
"phProbe": {
"active": true
},
"adc2": {
"active": true,
"gain": 0.67,
"type": "waterLevel"
}
}
170 changes: 170 additions & 0 deletions examples/ChirpSoilMoisture/data/jetPackConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"Act0": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
20,
0,
0,
0
],
"high": [
30,
0,
0,
0
],
"type": [
"Temperature",
""
]
},
"Act1": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
20,
0,
0,
0
],
"high": [
30,
0,
0,
0
],
"type": [
"Temperature",
""
]
},
"Act2": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
0,
3000,
0,
0
],
"high": [
0,
5000,
0,
0
],
"type": [
"",
""
]
},
"Act3": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
20,
3000,
0,
0
],
"high": [
40,
5000,
0,
0
],
"type": [
"Temperature",
""
]
},
"Act4": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
0,
0,
9,
0
],
"high": [
0,
0,
7,
0
],
"type": [
"",
"hour"
]
},
"Act5": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
20,
0,
9,
0
],
"high": [
40,
0,
7,
0
],
"type": [
"Temperature",
"hour"
]
},
"Act6": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
0,
0,
0,
50
],
"high": [
0,
0,
0,
1
],
"type": [
"",
"minute"
]
},
"Act7": {
"actif": false,
"inverted": false,
"temporal": false,
"low": [
20,
0,
0,
50
],
"high": [
40,
0,
0,
1
],
"type": [
"Temperature",
"minute"
]
}
}
Loading