Giter Site home page Giter Site logo

climateguard / cg-anem Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 4.0 7.13 MB

Arduino library for thermoanemometer CG-Anem to simplify integration into compatible platforms.

License: GNU General Public License v3.0

C++ 100.00%
anemometer arduino esp32 esp8266 i2c

cg-anem's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cg-anem's Issues

Add library for ESP32

Привет! Я не могу добавить устройство в ESPhome.
Скопировал в /esphome/cgAnem/ файлы cgAnem.cpp и cgAnem.h
Файл конфигурации esphome:

esphome:
  name: esp32
  friendly_name: ESP32
  libraries:
   - Wire
   - "ClimateGuard CG Anem"
   -  Arduino
  includes:
   - cgAnem/cgAnem.h
   - cgAnem/cgAnem.cpp
   
esp32:
  board: esp32dev
  framework:
    type: arduino

i2c:
  - id: bus_a
    sda: 32
    scl: 33
  - id: bus_b
    sda: 14
    scl: 15
    scan: true
  #  scan: true
......
sensor:
  - platform: custom
    lambda: |-
     auto CGAnem = new CG_Anem(0x11);
     App.register_component(CGAnem);
     return {CGAnem->temperature,CGAnem->airConsumption,CGAnem->airflowRate};
     
    sensors:
    - name: "Temperatura"
      id: CG_Anem_temperature
#      accuracy_decimals: 0.1
      unit_of_measurement: C
      state_class: measurement
    - name: "airConsumption"
      id: airConsumption
#      accuracy_decimals: 0.1
      unit_of_measurement: m^3/hour
      state_class: measurement
    - name: "airflowRate"
      id: airflowRate
#      accuracy_decimals: 0.1
      unit_of_measurement: m/s
      state_class: measurement

Но так не работает. т. к. библиотека все же не предназначена для ESPhome.

Нашел подобный проект где человек переделал библиотеку, но сам не смогу переделать:
https://github.com/maaad/RadSens1v2

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.