add travis config
This commit is contained in:
parent
4170b8fa1a
commit
74433e81da
|
|
@ -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
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
[platformio]
|
||||
src_dir = src
|
||||
|
||||
[env:uno]
|
||||
[env:emonth2]
|
||||
platform = atmelavr
|
||||
framework = arduino
|
||||
board = uno
|
||||
|
|
|
|||
25
readme.md
25
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
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue