Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use custom libraries and show sensor data on display, serial, and send via MQTT. #2358

Closed
vdj69 opened this issue Sep 19, 2020 · 3 comments

Comments

@vdj69
Copy link

vdj69 commented Sep 19, 2020

Question
I need your help to understand how to add custom libraries and where to write code for using it. For example, I want to add an LCD library and i2c based sensor library then I want to fetch the I2c sensor data and show the data to the LCD and serial. At last, send the data via MQTT?

Device information
ESP8266-E

  • Desktop operating system
    Windows10

  • Browser & version
    Chrome

  • IDE & version
    PlatformIO

@vdj69 vdj69 added the question label Sep 19, 2020
@mcspr
Copy link
Collaborator

mcspr commented Sep 19, 2020

Check out:
#2345 (comment)
https://github.com/xoseperez/espurna/blob/dev/code/espurna/sensors/DummySensor.h

edit: for the display part, perhaps see #2319
thermostat is a rough approach. but, you can also check out how domoticz integration works with the sensor data

@stale
Copy link

stale bot commented Dec 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 4, 2020
@stale
Copy link

stale bot commented Dec 19, 2020

This issue will be auto-closed because there hasn't been any activity for two months. Feel free to open a new one if you still experience this problem.

@stale stale bot closed this as completed Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants