initial commit

This commit is contained in:
Sebastian Wendel 2022-12-20 13:45:03 +01:00
commit 484d4a0fb6
No known key found for this signature in database
GPG Key ID: 1422B7DF78144640
4 changed files with 118 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
secrets.yaml

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2022 Curious Community Lab e. V.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

64
README.md Normal file
View File

@ -0,0 +1,64 @@
# ESP Pflanzensensor Workshop
Die Projektdokumentation zum Pflanzensensor Workshop.
<https://curious.bio/2022/11/remote-chaos-experience/>
## Komponenten
### Mikrocontroller
* [Wemos D1 mini ESP-8266](https://www.wemos.cc/en/latest/d1/d1_mini.html)
### Luftfeuchtigkeits- und Temperatursensor
* [Asair DHT11](https://asairsensors.com/product/dht11-sensor/)
* [Datenblatt](https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf)
### Bodenfeuchtesensor
* Capacitive Soil Moisture Sensor v1.2
* analoges Signal!
* [Datenblatt](https://media.digikey.com/pdf/data%20sheets/dfrobot%20pdfs/sen0193_web.pdf)
* <https://thecavepearlproject.org/2020/10/27/hacking-a-capacitive-soil-moisture-sensor-for-frequency-output/>
## Systemanforderungen
* [Python Runtime Environment](https://www.python.org/)
* [VSCodium Code Editor](https://vscodium.com/)
## ESPHome
### CLI
```sh
esphome --help
usage: esphome [-h] [-v] [-q] [-s key value] command ...
positional arguments:
command Command to run:
config Validate the configuration and spit it out.
compile Read the configuration and compile a program.
upload Validate the configuration and upload the latest binary.
logs Validate the configuration and show all logs.
run Validate the configuration, create a binary, upload it, and start logs.
clean-mqtt Helper to clear retained messages from an MQTT topic.
wizard A helpful setup wizard that will guide you through setting up ESPHome.
mqtt-fingerprint Get the SSL fingerprint from a MQTT broker.
version Print the ESPHome version and exit.
clean Delete all temporary build files.
dashboard Create a simple web server for a dashboard.
rename Rename a device in YAML, compile the binary and upload it.
options:
-h, --help show this help message and exit
-v, --verbose Enable verbose ESPHome logs.
-q, --quiet Disable all ESPHome logs.
-s key value, --substitution key value
Add a substitution
```
```sh
esphome compile esphome.yaml
esphome upload esphome.yaml
```

44
esphome.yaml Normal file
View File

@ -0,0 +1,44 @@
esphome:
name: pflanzensensor-sebastian
esp8266:
board: d1_mini
framework:
type: arduino
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: pflanzensensor-sebastian
password: !secret api_password
logger:
api:
password: !secret api_password
ota:
password: !secret ota_password
captive_portal:
web_server:
port: 80
# mqtt:
# broker: mqtt.curious.bio
# # discovery: true
sensor:
- platform: dht
pin: D2
temperature:
name: "Temperatur"
humidity:
name: "Luftfeuchtigkeit"
update_interval: 10s
- platform: adc
pin: A0
name: "Bodenfeuchte"
update_interval: 10s