You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces a new Edge App: Indoor Sensor Dashboard. The app provides a real-time, responsive dashboard for monitoring indoor environmental metrics (Temperature, Humidity, VOC, and eCO₂) using data from a Prometheus endpoint.
Features
Real-time display of temperature, humidity, VOC, and eCO₂ metrics
Configurable Prometheus endpoint and metric IDs via settings
Fully responsive design supporting 4K, 1080p, 720p, and Raspberry Pi touch display resolutions (landscape & portrait)
Clean, modern UI inspired by professional dashboards
Files Added
index.html: Responsive dashboard UI with real-time metric fetching and display
screenly.yml: Edge App manifest with all relevant settings and documentation
README.md: Documentation covering features, settings, usage, supported resolutions, and a link to the live coding session
Settings
Setting
Type
Default Value
Description
prometheus_endpoint
string
(none)
Required. URL to the Prometheus metrics endpoint (e.g., http://192.168.3.80/metrics).
The parsing function only looks for lines starting with esphome_sensor_value instead of using the configured metric IDs from settings, which may cause valid metrics to be ignored.
if (line.startsWith('esphome_sensor_value')) {
const match = line.match(/esphome_sensor_value\{([^}]*)\}\s+([\d.\-eE]+)/);
if (match) {
const labels = {};
match[1].split(',').forEach(pair => {
const [k, v] = pair.split('=');
if (k && v) labels[k.trim()] = v.trim().replace(/^"|"$/g, '');
});
metrics[labels.id] = {
value: match[2],
unit: labels.unit || ''
Check the HTTP response status before reading the body to catch non-200 errors. Throwing on bad status will allow the catch block to handle errors consistently.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
This PR introduces a new Edge App: Indoor Sensor Dashboard. The app provides a real-time, responsive dashboard for monitoring indoor environmental metrics (Temperature, Humidity, VOC, and eCO₂) using data from a Prometheus endpoint.
Features
Files Added
index.html: Responsive dashboard UI with real-time metric fetching and displayscreenly.yml: Edge App manifest with all relevant settings and documentationREADME.md: Documentation covering features, settings, usage, supported resolutions, and a link to the live coding sessionSettings
prometheus_endpointhttp://192.168.3.80/metrics).temperature_metric_idairing_cabinet_temperaturehumidity_metric_idairing_cabinet_humidityvoc_metric_idairing_cabinet_total_volatile_organic_compoundeco2_metric_idairing_cabinet_eco2_valueDocumentation
This PR was created as part of a live coding session.
PR Type
Enhancement, Documentation
Description
Introduce real-time indoor sensor dashboard UI
Implement responsive design for multiple resolutions
Fetch and parse Prometheus metrics in JS
Include Edge App manifest and documentation
Changes walkthrough 📝
index.html
Add responsive dashboard HTML and logicedge-apps/indoor-sensor-dashboard/index.html
README.md
Add README documentationedge-apps/indoor-sensor-dashboard/README.md
screenly.yml
Add Edge App manifest schemaedge-apps/indoor-sensor-dashboard/screenly.yml