esphome / esphome/feature-requests

Serve www.js from dashboard to allow local hosting

Open
#2,304 2 comments 0 reactions 0 assignees View on GitHub
Project: Dashboard
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

It would be nice if the www.js was served from the esphome dashboard, so the web page could be handled locally without adding the www.js to the device firmware, and without another local server.

**Please describe your use case for this integration and alternatives you've tried:**

I run the esphome docker container, and since it's always running, it is a logical location for local serving of the url_js: for the web component.

This could be done either by adding it to the dashboards static folder and using a url such as `http://192.168.100.100:6052/static/www.js`, or a handler added to the tornado.web.Application config to statically serve the jsfile from the config directory or a config/web directory.

**Additional context**

I'm currently building a custom docker image with www.js injected into the static folder and using the static/www.js url.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the dashboard's static folder and the tornado.web.Application configuration mentioned in the request, then inspect how dashboard assets are currently served. Done means www.js is available from the local ESPHome dashboard at a stable URL without adding it to device firmware or running another server.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, python
Domain
backend, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.