From 74433e81da21b46e0d114f28ba6b4804b474e13b Mon Sep 17 00:00:00 2001 From: Glyn Hudson Date: Wed, 21 Sep 2016 16:14:51 +0100 Subject: [PATCH] add travis config --- .travis.yml | 27 +++++++++++++++++++++++++++ platformio.ini | 2 +- readme.md | 25 ++++++++++++++++++++++++- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6a1cba5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +language: python +python: +- '2.7' +sudo: false +cache: + directories: + - "~/.platformio" +install: +- pip install -U platformio +script: +- platformio run +deploy: + on: + repo: openenergymonitor/emonth2 + all_branches: true + condition: $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+$ + skip_cleanup: true + provider: releases + overwrite: true + file: ".pioenvs/emonth2/emonth2.hex" + + +## Setup auto depoly .hex on release tag +# sudo gem install travis +# cd into repo +# $ travis setup releases +# folow prompts..depoly section will be populated diff --git a/platformio.ini b/platformio.ini index 18bcd0a..7fae856 100644 --- a/platformio.ini +++ b/platformio.ini @@ -20,7 +20,7 @@ [platformio] src_dir = src -[env:uno] +[env:emonth2] platform = atmelavr framework = arduino board = uno diff --git a/readme.md b/readme.md index 0d85ff6..87202fa 100644 --- a/readme.md +++ b/readme.md @@ -2,4 +2,27 @@ **Low power wireless temperature and humidity node** -V2.0 hardware revision adds support for SI7021 temperature and humidity sensor \ No newline at end of file +V2.0 hardware revision adds support for SI7021 temperature and humidity. This sensor brings performance and power savings over the DHT22, see `sensor_test` folder of this repo for sensor evaluation and comparison. + +- BLOG POST +- FORUM POST + + +# Firmware + +PlatformIO is recommended as the easiest way to compile and upload Arduino compatible firmware for emonTH. One of the big advantages of using PlatformIO is all libraries can be automatically downloaded. Arduino IDE can also be used but libraries must be manually installed. + +## Compile & Upload Firmware Using PlatformIO + +For a full guide and installing and using PlatformIO (including visual IDE) see ['Compiling' User Guide Section](https://guide.openenergymonitor.org/technical/compiling). Assuming platformIO is installed + +``` +$ git clone https://github.com/openenergymonitor/emonth2 +$ cd emonth2 +$ pio run +$ pio -t upload +``` + +# Hardware + +emonTH hardware is fully open-source. See `hardware` folder of this repo for Gerbers, Eagle CAD design, BOM & port map.