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

mqtt support or could you explain how to curl a new text message? #3

Open
sommo opened this issue Jan 28, 2022 · 3 comments
Open

mqtt support or could you explain how to curl a new text message? #3

sommo opened this issue Jan 28, 2022 · 3 comments

Comments

@sommo
Copy link

sommo commented Jan 28, 2022

Hi!
Is there a way to curl the esp8266 webpage to change the text field?
or is it possible to add mqtt protocol, could be something that make that project perfect :)
Thank you.

@TheLogicMaster
Copy link
Owner

You are asking if it's possible to send a request to the configuration server on the ESP8266 to change the text, right? Currently, the idea was just for the display itself to periodically send requests to an endpoint, so that functionality is not implemented, the entire display configuration has to be updated at once.

Implementing MQTT functionality isn't a bad idea. I'm not sure what effect that would have on the display itself, though, since whenever it makes an HTTP request or a client connects to the web config server the display flickers.

@sommo
Copy link
Author

sommo commented Jan 29, 2022

I'm not sure what effect that would have on the display itself, though, since whenever it makes an HTTP request or a client connects to the web config server the display flickers. => i notice that :)

I would like to use the panel to show info from my network devices (basically tasmota and other devices).
is there a chance that it can do it now via api call and if so how could i have to set it?

I'm using also an esp8266 with max7219 (dot matrix, a lot of them) and i send to it via mqtt the text containg what i need to display, it could be nice to do it with a ledpanel, so to have the ability to call an api to the panel it self to control it, not only via a web interface (or maybe via curl to the webserver for changing for example the background, text of course, color, etc,etc)

@TheLogicMaster
Copy link
Owner

It is possible to send a config file directly via HTTP requests, currently. The /config endpoint allows retrieving and setting the JSON configuration, as is done in the dashboard:

async saveConfig(config) {
Using a config file as a template and replacing your desired parameters such as color and text then sending it to the display via CURL would be an option.
Doing this frequenctly, though, may be an issue if double buffering is enabled, since it will fail to update the config file if it runs out of memory.

It would also be relatively simple to implement a new Widget type that simplify displays the last text sent to a custom endpoint via an HTTP request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants