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

access to device data in html pages and scripts #1456

Open
rew1ndustry opened this issue Dec 5, 2024 · 2 comments
Open

access to device data in html pages and scripts #1456

rew1ndustry opened this issue Dec 5, 2024 · 2 comments

Comments

@rew1ndustry
Copy link

this is not a bug, it is a request for documentation, or a missing feature.

in the web pages and scripts stored in flash on the device, how to read

long name
short name
mac address
IP address

for use in these contexts.

some usage examples:

i have an html page for controlling the device, and i would like to display the long and short names.

i want to write a discovery script that fires on startup, to report the mac and IP addresses in my cloud using sendGet.

@openshwprojects
Copy link
Owner

Use REST API and Tasmota STATUS command:
https://www.elektroda.com/rtvforum/topic3971355.html

@rew1ndustry
Copy link
Author

thank you very much for your helpful suggestion, however my target browsers cannot process javascript.

some form of macro replacement for $constants in html pages could be very useful, and should not be difficult to code.

also there does not seem to be any $constant form of long name, short name, mac address or IP address, in scripts.

i presume i must fork, and write my own, to get these features?

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