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

Outsource calculations to independent server #2847

Open
1Euro7Cent opened this issue Feb 2, 2024 · 4 comments
Open

Outsource calculations to independent server #2847

1Euro7Cent opened this issue Feb 2, 2024 · 4 comments
Labels
enhancement New feature or request won't do Out of scope for this project

Comments

@1Euro7Cent
Copy link

The Feature

I know this probably requires a rewrite of the whole system. But my idea is that the esp is only making the image and sending it to a server which calculates the values etc.
The server could be another esp or a Raspberry Pi or even a server located in a datacenter. (the user has to provide the server aka you don't have to host them)
I have the feature request because my systems are slow af and requires like 10 minutes to render the web interface. (freshly rebooted) to my conclusion the esp is over worked and doesn't have any spare power to render web GUI

@1Euro7Cent 1Euro7Cent added the enhancement New feature or request label Feb 2, 2024
@caco3
Copy link
Collaborator

caco3 commented Feb 9, 2024

I understand your feature request. It was requested before. But the whole point of this project is to have it as simple as possible and that fulfilled with keeping it inside a single device.

There have been discussions about this before.

are slow af and requires like 10 minutes to render the web interface.

It looks like this is the root cause of your request! And most likely something that an be fixed.
Please open a discussion and provide some more infos about sour system (RSSI, logs of the startup, distance to your accesspoint, ... Also try it with a different SD card and search other discussions about performance issues.

@1Euro7Cent
Copy link
Author

It is still possible to keep it in a single device. Just host the server on localhost and set the rest to send the data to localhost instead of a other server.

@Slider0007
Copy link
Collaborator

As long as there are no major board or configuration issues the hardware is capable to drive all without major delay.

E.g. I have cycle times of around 15 sec and quite responsive UI.

Next improvement would be a board with modern ESP32S3 SOC. There you get cycle times between 5-10 sec.

@caco3
Copy link
Collaborator

caco3 commented Mar 3, 2024

It is still possible to keep it in a single device. Just host the server on localhost and set the rest to send the data to localhost instead of a other server.

This is how one would do it in general. This would mean to add several additional REST APIs. But we are short on memory and every additional REST API equires some extra memory!

are slow af and requires like 10 minutes to render the web interface.

It looks like this is the root cause of your request! And most likely something that an be fixed.
Please open a discussion and provide some more infos about sour system (RSSI, logs of the startup, distance to your > accesspoint, ... Also try it with a different SD card and search other discussions about performance issues.

Did you at all at all consider to first work on the root causes?

@caco3 caco3 added the won't do Out of scope for this project label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request won't do Out of scope for this project
Projects
None yet
Development

No branches or pull requests

3 participants