Skip to content
Feinstaubsensor auf ESP8266, aber mit FreeRTOS
C Perl Objective-C Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
esp-open-rtos @ 42e342e
fsdata
.gitignore
.gitmodules
FreeRTOSConfig.h
LICENSE
Makefile
README.md
backend_http_post.c
backend_http_post.h
backend_influxdb.c
backend_influxdb.h
config.h
dht22.c
dht22.h
lwipopts.h
main.c
sds011.c
sds011.h
shared.c
shared.h
timeseries.c
timeseries.h

README.md

Synopsis

FreeRTOS-based firmware for ESP8266/NodeMCU boards to collect and send sensor data

See original code for Arduino at https://github.com/opendata-stuttgart/sensors-software/blob/master/esp8266-arduino/ppd42ns-wificonfig-ppd-sds-dht/ppd42ns-wificonfig-ppd-sds-dht.ino

Instructions

Prepare esp-open-sdk

sudo apt-get install make unrar-free autoconf automake libtool libtool-bin gcc g++ gperf \
    flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
    sed git unzip bash help2man wget bzip2

git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make toolchain esptool libhal

# Make toolchain known to this shell
export PATH=$PATH:`pwd`/xtensa-lx106-elf/bin

Build + flash

First, edit config.h for configuration.

git clone --recursive https://github.com/offenesdresden/luftikus.git
cd luftikus
make flash ESPPORT=/dev/ttyUSB0

Attach the serial console to see printf() output:

cu -s 115200 -l /dev/ttyUSB0

TODO

  • don't send 0 values for missing sensors
  • more sensors
  • https
  • mdns
  • mqtt
  • http server with data.json
  • web interface
  • setup mode
You can’t perform that action at this time.