Skip to content

Commit

Permalink
GitHub Actions added
Browse files Browse the repository at this point in the history
  • Loading branch information
SmejkalJakub committed Oct 13, 2021
1 parent 8dc1ebf commit 376ee61
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 67 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
with:
path: "requirements.txt"
update-pip: "true"
update-setuptools: "false"
update-wheel: "false"

- name: Compile
run: pio run -e release

- name: Set env
if: ${{ github.event_name == 'release' }}
run: |
echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
mv .pio/build/release/firmware.bin ${GITHUB_REPOSITORY##*/}-${GITHUB_REF#refs/*/}.bin
- name: Release
if: ${{ github.event_name == 'release' }}
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
files: ${{ env.REPOSITORY_NAME }}-${{ env.GITHUB_TAG }}.bin
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

96 changes: 48 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<a href="https://www.hardwario.com/"><img src="https://www.hardwario.com/ci/assets/hw-logo.svg" width="200" alt="HARDWARIO Logo" align="right"></a>

# Firmware for HARDWARIO Sigfox Climate Monitor

[![Travis](https://img.shields.io/travis/bigclownlabs/bcp-sigfox-climate-monitor/master.svg)](https://travis-ci.org/bigclownlabs/bcp-sigfox-climate-monitor)
[![Release](https://img.shields.io/github/release/bigclownlabs/bcp-sigfox-climate-monitor.svg)](https://github.com/bigclownlabs/bcp-sigfox-climate-monitor/releases)
[![License](https://img.shields.io/github/license/bigclownlabs/bcp-sigfox-climate-monitor.svg)](https://github.com/bigclownlabs/bcp-sigfox-climate-monitor/blob/master/LICENSE)
[![Twitter](https://img.shields.io/twitter/follow/hardwario_en.svg?style=social&label=Follow)](https://twitter.com/hardwario_en)

![Photo of Sigfox Climate Monitor assembly](doc/sigfox-climate-monitor.png)

This repository contains firmware for Sigfox environmental sensor based on Climate Module.
Firmware is programmed into [Core Module](https://shop.bigclown.com/products/core-module).
Binary version is available in section [Releases](https://github.com/bigclownlabs/bcp-sigfox-climate-monitor/releases).

> Detailed information about this project can be found in [HARDWARIO Documentation](https://doc.bigclown.com).
**TODO** Link to documentation article

## Introduction

Sigfox Climate Station is a battery-operated indoor device integrating these sensors:

* **Thermometer** (ambient temperature)
* **Hygrometer** (relative air humidity)
* **Lux meter** (light intensity)
* **Barometer** (atmospheric pressure)

This device is able to run from two AAA Alkaline batteries for at least 1 year.
It reports measured data to Sigfox network every 30 minutes.
You can route sensor data as HTTP POST request with JSON body to your own web app via [MySigfox](https://www.mysigfox.com) service.

## Hardware

The following hardware components are used for this project:

* **[Climate Module](https://shop.bigclown.com/products/climate-module)**
* **[Core Module](https://shop.bigclown.com/products/core-module)**
* **[Sigfox Module](https://shop.bigclown.com/products/sigfox-module)**
* **[Mini Battery Module](https://shop.bigclown.com/products/mini-battery-module)**

## License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT/) - see the [LICENSE](LICENSE) file for details.

---

Made with &#x2764;&nbsp; by [**HARDWARIO s.r.o.**](https://www.hardwario.com/) in the heart of Europe.
<a href="https://www.hardwario.com/"><img src="https://www.hardwario.com/ci/assets/hw-logo.svg" width="200" alt="HARDWARIO Logo" align="right"></a>

# Firmware for HARDWARIO Sigfox Climate Monitor

[![build](https://github.com/hardwario/twr-sigfox-climate-monitor/actions/workflows/main.yml/badge.svg)](https://github.com/hardwario/twr-sigfox-climate-monitor/actions/workflows/main.yml)
[![Release](https://img.shields.io/github/release/bigclownlabs/bcp-sigfox-climate-monitor.svg)](https://github.com/bigclownlabs/bcp-sigfox-climate-monitor/releases)
[![License](https://img.shields.io/github/license/bigclownlabs/bcp-sigfox-climate-monitor.svg)](https://github.com/bigclownlabs/bcp-sigfox-climate-monitor/blob/master/LICENSE)
[![Twitter](https://img.shields.io/twitter/follow/hardwario_en.svg?style=social&label=Follow)](https://twitter.com/hardwario_en)

![Photo of Sigfox Climate Monitor assembly](doc/sigfox-climate-monitor.png)

This repository contains firmware for Sigfox environmental sensor based on Climate Module.
Firmware is programmed into [Core Module](https://shop.bigclown.com/products/core-module).
Binary version is available in section [Releases](https://github.com/bigclownlabs/bcp-sigfox-climate-monitor/releases).

> Detailed information about this project can be found in [HARDWARIO Documentation](https://doc.bigclown.com).
**TODO** Link to documentation article

## Introduction

Sigfox Climate Station is a battery-operated indoor device integrating these sensors:

* **Thermometer** (ambient temperature)
* **Hygrometer** (relative air humidity)
* **Lux meter** (light intensity)
* **Barometer** (atmospheric pressure)

This device is able to run from two AAA Alkaline batteries for at least 1 year.
It reports measured data to Sigfox network every 30 minutes.
You can route sensor data as HTTP POST request with JSON body to your own web app via [MySigfox](https://www.mysigfox.com) service.

## Hardware

The following hardware components are used for this project:

* **[Climate Module](https://shop.bigclown.com/products/climate-module)**
* **[Core Module](https://shop.bigclown.com/products/core-module)**
* **[Sigfox Module](https://shop.bigclown.com/products/sigfox-module)**
* **[Mini Battery Module](https://shop.bigclown.com/products/mini-battery-module)**

## License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT/) - see the [LICENSE](LICENSE) file for details.

---

Made with &#x2764;&nbsp; by [**HARDWARIO s.r.o.**](https://www.hardwario.com/) in the heart of Europe.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
platformio

0 comments on commit 376ee61

Please sign in to comment.