Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

technologiestiftung/stadtpuls-sensors

Repository files navigation

Stadtpuls Sensors

Basic Setup for running sensors for stadtpuls.com with Platformio.

Setup

Install Platformio Core CLI (or the vscode plugin) https://docs.platformio.org/en/latest/

cd path/to/this/folder/
# https://docs.platformio.org/en/latest/core/userguide/index.html
pio init --board <YOUR BOARD HERE>

Environment Variables

For some sensors we use the https request method to post measurements to stadtpuls. To do so we need to adjust the environments variables within the env.sample.h

  1. copy env.sample.h. to your src folder and rename to env.h
  2. include src folder to library paths in platformIO
  3. replace sample values with the values of your sensor in stadtpuls
  4. for the certificate:
    1. open the URL of your server --> api.stadtpuls.com
    2. click on the lock icon to the left of your browser's search field
    3. show details about your certificate
    4. you might be shown multiple certifcates, take the last one (the one to the most right) and download it
  5. save your env.h

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Fabian Morón Zirfas

💻 📖

Julia Zet

💻 📖

Dennis Ostendorf

💻

Ingo Hinterding

💻 📖

Lucas Vogel

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits



A project by:

Supported by: