cjmcu-8118 for room sensor

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
LudoFr
New user
Posts: 5
Joined: 26 May 2018, 16:09

cjmcu-8118 for room sensor

#1 Post by LudoFr » 21 Jul 2018, 15:13

Hello,
I would like to use a cjmcu-8118 circuit to make room sensors.
I feel that this chip is not supported by ESP Easy Mega.
Does anyone know the solution to add the library of this circuit and thus be able to recover the gas sensors, temperature and humidity?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: cjmcu-8118 for room sensor

#2 Post by Shardan » 21 Jul 2018, 16:13

As far as i know it is not supported at this time.

You may open a request on github at https://github.com/letscontrolit/ESPEasy/issues

Regards
Shardan
Regards
Shardan

moebius
Normal user
Posts: 35
Joined: 22 May 2017, 19:36

Re: cjmcu-8118 for room sensor

#3 Post by moebius » 21 Jul 2018, 16:13

Interesting sensor...
I dont know if the library is really necessary (because of complexity)?

If not, my idea would be to have a generic "interface scripting plugin", which would allow to read, write, and manipulate data on different interfaces (i2c, spi, serial, etc).
The script only would require a few commands (read, write, some math) and at least 3 sections (init, measure, close), maybe a 4th "read".

This plugin would have multiple advantages:
* support new devices instantly
* uses less space, than x plugins in the binary (espeasy binary grows with every plugin and at one point in the future it will be too large, which will cause a lot more maintenance)
* the script would be hardware independent - it could be used on other devices and platforms also like esp23, µPyEasy, etc (with the according plugin)

Possible drawbacks:
* More initial effort than a standard plugin
* Performance (script has to be parsed, for timing sensitive tasks maybe preprocessed and cached)
* Not as user friendly as a plugin (definition of parameters inside of the script instead of gui - could be mitigated with some effort)

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: cjmcu-8118 for room sensor

#4 Post by TD-er » 23 Jul 2018, 21:35

There is a plugin on the playground which may add support for at least a part of that board: https://github.com/letscontrolit/ESPEas ... CCS811.ino

I have no idea of the status of that plugin.

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests