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

solution for issues #114 // display dynamic data (sensor data in webpage) without manuel refresh #240

Closed
wants to merge 5 commits into from

Conversation

hansju-11
Copy link

I use ajax to update only the sensor data in the simple_html_view.
I'm not the html experts. So sombody can make it a littel bit nicer.

add handler for reading sensor values:

  httpd_uri_t readSensor_uri = {
        .uri       = "/readSensor",
        .method    = HTTP_GET,
        .handler   = readSensor_handler,
        .user_ctx  = NULL
    };
add BME280 sensor on ic2
add in section index_simple_html 
-  <div class="card">
        Sensor Hum: <span id="HUMValue">0</span>, Temp: <span id="TempValue">0</span>, Pres: <span id="PresValue">0</span>
      </div>

and java script for XMLHttpRequest()
@hansju-11
Copy link
Author

I'm on a way to clear some suff errors. I will do a PR again, when ready

@ladvine
Copy link

ladvine commented Feb 17, 2023

@hansju-11 any new pr related to this?

@hansju-11
Copy link
Author

hansju-11 commented Feb 23, 2023 via email

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

Successfully merging this pull request may close these issues.

2 participants