zentris / erdfeuchtemessung Goto Github PK
View Code? Open in Web Editor NEWMeasure soil moisture with ESP8266
Home Page: https://github.com/Zentris/erdfeuchtemessung/wiki
License: GNU General Public License v3.0
Measure soil moisture with ESP8266
Home Page: https://github.com/Zentris/erdfeuchtemessung/wiki
License: GNU General Public License v3.0
Wie wäre es mit paar minimalistischen Code Beispielen?
Ramser Gieß-o-Mat Sensor an einem gewöhnlichen Arduino mit leuchten einer LED wenn Erde zu trocken.
Ramser Gieß-o-Mat Sensor an einem gewöhnlichen Arduino und einer LCD welche Feuchtigkeit anzeigt.
Ramser Gieß-o-Mat Sensor an einem 8266 ESP der eine Email sendet wenn Erde zu trocken
Vermutlich für die meisten ausreichend statt der ganze Kram mit SQL und Wasserpumpen etc.
create a http rest interface for receive the log messages
extend the http server for this interface
modifiy the logging routine in sketch
test funktions
release the logging function
I've got the first board soldered up and now running some test code. I took your functions to read the interrupt and calculate the average and I transmit this result over MQTT to my broker and then into NodeRed and then into an InfluxDB database. Then the data is presented using Grafana.
The probe design I have varies from about 92kHz in the dry air to 2kHz in a glass of water. I'm going to do some more long term tests on this design now but I just wanted to let you know that the code is working for me. Once I've cleaned it up a bit I will put it on my GitHub account.
I am very interested in your code to make the ESP into a frequency counter ;-)
I have compiled a few sketches before but I don;t really understand this. "sensors" is not defined outside of any of these functions...
"/home/alanlord/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_96324/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10612 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01" -DESP8266 "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/variants/generic" "-I/home/alanlord/Arduino/libraries/Streaming" "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src" "-I/home/alanlord/bin/arduino-1.6.12/hardware/esp8266com/esp8266/libraries/ESP8266HTTPClient/src" "/tmp/arduino_build_96324/sketch/freq-counter.ino.ino.cpp" -o "/tmp/arduino_build_96324/sketch/freq-counter.ino.ino.cpp.o"
/home/alanlord/Personal/Projects/polytunnel-sensing-project/esp-code/arduino/zentris/freq-counter.ino/freq-counter.ino.ino: In function 'void saveData2ThingsSpeak()':
freq-counter.ino:571: error: 'sensors' was not declared in this scope
for (unsigned int sensor=0; sensor < sizeof(sensors)/sizeof(struct mySensor); sensor++) {
^
/home/alanlord/Personal/Projects/polytunnel-sensing-project/esp-code/arduino/zentris/freq-counter.ino/freq-counter.ino.ino: In function 'void setup()':
freq-counter.ino:699: error: 'sensors' was not declared in this scope
for (unsigned int i=0; i < sizeof(sensors)/sizeof(struct mySensor); i++) {
^
/home/alanlord/Personal/Projects/polytunnel-sensing-project/esp-code/arduino/zentris/freq-counter.ino/freq-counter.ino.ino: In function 'void loop()':
freq-counter.ino:733: error: 'sensors' was not declared in this scope
for (unsigned int sensor=0; sensor < sizeof(sensors)/sizeof(struct mySensor); sensor++) {
library: https://github.com/knolleary/pubsubclient
some codefragments:
WiFiClientSecure wsclient;
PubSubClient psclient(mqttHost, mqttPort, wsclient);
psclient.connect(hostn,user,pw)
psclient.publish("/topic/string")
Hallo,
beim Kompelieren, kommt dieser Fehler:
privats.h:68: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
tsData thingSpeakServer[] = { (tsData) {"api.thingspeak.com", "184.106.153.149", "DW45DFG525GBT25T", "01"}
Das ist natürlich nur der ausgedachte Key, der da steht
Ich finde den Fehler einfach nicht
ich wäre um ein Hinweis dankbar.
Gruß
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.