Coder Social home page Coder Social logo

matthias-bs / bresser_weather_sensor_cc1101_mqtt Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 84 KB

Bresser 5-in-1/6-in-1 868 MHz Weather Sensor Radio Receiver based on CC1101 and ESP32/ESP8266 - provides data via secure MQTT [deprecated]

License: MIT License

C++ 100.00%
cc1101 arduino esp32 esp8266 esp8266-arduino esp32-arduino mqtt-client

bresser_weather_sensor_cc1101_mqtt's People

Contributors

matthias-bs avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bresser_weather_sensor_cc1101_mqtt's Issues

Mqtt verbindung

Hallo,
Ich hab mich jetzt erst mal an dieser Variante Probiert.
Benutzt wird ein Heltec Wirless Stick lite
Leider scheitere ich am MQTT:
07:02:53.624 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 07:02:53.624 -> mode:DIO, clock div:1 07:02:53.624 -> load:0x3fff0030,len:1284 07:02:53.624 -> load:0x40078000,len:12836 07:02:53.669 -> load:0x40080400,len:3032 07:02:53.669 -> entry 0x400805e4 07:02:53.986 -> 07:02:53.986 -> 07:02:53.986 -> BresserWeatherSensorMQTT 20221024 07:02:53.986 -> 07:02:53.986 -> Attempting to connect to SSID: FRITZ!Box 7530 MP...connected! 07:02:57.110 -> Setting time using SNTP .....done! 07:02:59.606 -> Current time: Sun Jan 22 06:02:58 2023 07:02:59.606 -> 07:02:59.606 -> Checking wifi... 07:02:59.606 -> MQTT connecting... ................

MQTT Daten sind alle richtig drin. HAB ja etwa 20 Geräte da drin:
`#ifndef SECRETS
const char ssid[] = "FRITZ!Box 7530 MP";
const char pass[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxx";

#define HOSTNAME "ESP-Bresser"
#define APPEND_CHIP_ID

#define    MQTT_PORT     1881 // checked by pre-processor!
const char MQTT_HOST[] = "192.168.178.6";
const char MQTT_USER[] = "mqtt"; // leave blank if no credentials used
const char MQTT_PASS[] = "1234"; // leave blank if no credentials used`

Hab extra die Arduino IDE neu aufgesetzt also alles Jungfräulich und die Libs neu reingeladen.
Danke

not all data in mqtt-message

Hi,
I'm using your code on a ESP8266. Works great so far.
I own a Bresser 5-in-1 Art-N°: 9602510 (new one), which uses the same protocol as a Bresser 6-in-1.
In MQTT i only get a message without rain-data although rain-data is received by CC1101:

20:18:22.920 -> [CC1101] Data: D4 A0 47 97 65 15 33 18 FF FF FF 10 68 22 26 46 FF F0 B1 AA 00 00 00 00 00 00 00 20:18:22.986 -> [CC1101] R [0xD4] RSSI: -42.000000 LQI: 0 20:18:22.986 -> decode_ok: 1, temp_ok: 1, wind_ok: 1, rain_ok: 0 20:18:22.986 -> Id: [97651533] Battery: [OK ] Ch: [0] Temp: [22.2C] Hum: [ 46%] Wind max: [0.0m/s] Wind avg: [0.0m/s] Wind dir: [106.0deg] Rain: [-----.-mm] 20:18:22.986 -> {"sensor_id": 97651533,"ch:":0,"battery_ok":1,"temp_c":22.2,"humidity":46,"wind_gust":0.0,"wind_avg":0.0,"wind_gust_bft":0,"wind_avg_bft":0,"wind_dir":106.0} 20:18:34.962 -> [CC1101] Data: D4 B0 43 97 65 15 33 18 FF FF FF 10 68 FF FE B7 FF 01 7A AA 00 00 00 00 00 00 00 20:18:34.962 -> [CC1101] R [0xD4] RSSI: -41.000000 LQI: 0 20:18:34.962 -> decode_ok: 1, temp_ok: 0, wind_ok: 1, rain_ok: 1 20:18:34.962 -> Id: [97651533] Battery: [OK ] Ch: [0] Temp: [---.-C] Hum: [---] Wind max: [0.0m/s] Wind avg: [0.0m/s] Wind dir: [106.0deg] Rain: [ 14.8mm] 20:18:37.483 -> [CC1101] Receive failed - failed, code 0

MQTT message:
{ "sensor_id": 97651533, "ch:": 0, "battery_ok": 1, "temp_c": 22.2, "humidity": 46, "wind_gust": 0, "wind_avg": 0, "wind_gust_bft": 0, "wind_avg_bft": 0, "wind_dir": 106 }

sometimes (esp reset) i got rain-data but no temp and humi:

20:08:58.990 -> decode_ok: 1, temp_ok: 0, wind_ok: 1, rain_ok: 1 20:08:58.990 -> Id: [97651533] Battery: [OK ] Ch: [0] Temp: [---.-C] Hum: [---] Wind max: [0.0m/s] Wind avg: [0.0m/s] Wind dir: [106.0deg] Rain: [ 14.8mm] 20:08:58.990 -> {"sensor_id": 97651533,"ch:":0,"battery_ok":1,"wind_gust":0.0,"wind_avg":0.0,"wind_gust_bft":0,"wind_avg_bft":0,"wind_dir":106.0,"rain":14.8} 20:08:58.990 -> {"rssi":-43.5,"lqi":0} 20:09:10.101 -> [CC1101] Receive failed - failed, code 0 20:09:10.931 -> [CC1101] Data: D4 A0 47 97 65 15 33 18 FF FF FF 10 68 22 26 46 FF F0 B1 AA 00 00 00 00 00 00 00 20:09:10.963 -> [CC1101] R [0xD4] RSSI: -43.000000 LQI: 0 20:09:10.963 -> decode_ok: 1, temp_ok: 1, wind_ok: 1, rain_ok: 0 20:09:10.963 -> Id: [97651533] Battery: [OK ] Ch: [0] Temp: [22.2C] Hum: [ 46%] Wind max: [0.0m/s] Wind avg: [0.0m/s] Wind dir: [106.0deg] Rain: [-----.-mm] 20:09:14.414 -> [CC1101] Receive failed - failed, code 0

MQTT message:
{ "sensor_id": 97651533, "ch:": 0, "battery_ok": 1, "wind_gust": 0, "wind_avg": 0, "wind_gust_bft": 0, "wind_avg_bft": 0, "wind_dir": 106, "rain": 14.8 }

Any help is appreciated.
thx

Proper location / include mechanism for WeatherSensorCfg.h?

WeatherSensorCfg.h should be modified for a specific sketch and therefore not be located in the library path, but it has to be included both in the sketch and in the library.
Unfortunately, it is not found when the preprocessor tries to include it in the library (WeatherSensor.h).
Any suggestions?

Bad receiver range on CC1101

Hi,

Thanks for some great coding! I have been using it for a week now and it has been running very stable! What is your experience with the range of the CC1101 transceiver module? For me it needs to be placed in a window with direct sight to the outdoor weather sensor in order to have a decent quality of the received data. Any ways to improve that or perhaps its better to use another transceiver?

Br.
Per

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.