-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Call read commands from Web #2116
Comments
great feature. |
Yes, it is possible now. It's a new system command called curl -X POST \
-H "Authorization: Bearer ${emsesp_token}" \
-H "Content-Type: application/json" \
-d '{"data":"8 2"}' \
${emsesp_url}/api/system/read and MQTT with: |
Very cool. Thank you |
Developer Mode and send EMS Read Commands from WebUI - #2116
@proddy i tested the MQTT Variant and the Output is logged in EMS-ESP Log, but no return via mqtt. |
@Delta1977 log output isn't sent over MQTT, it wouldn't be very useful as each log line would be replaced every second and unless you're quick enough to catch it you'll miss half the logs. We use the SysLog protocol for that as it's designed for that. Alternatively, you could tap into the SSE event source, which is over HTTP. The idea of this feature is for novice users to type in a simple read command, then watch the single line output, copy & paste into GitHub for the developers to work on. |
I am using 3.7.1-dev.2 and it is not working. Tried it in Edge, Chrome and Firefox on both Windows and in KALI Linux |
can you be more specific? what doesn't work? what happens? what do you see? |
I put in e.g. 0x18 0x06 hit enter and nothing happens, no output in log at all.
…________________________________
From: Proddy ***@***.***>
Sent: Sunday, November 3, 2024 7:20:27 PM
To: emsesp/EMS-ESP32 ***@***.***>
Cc: Vlasti Broucek ***@***.***>; Comment ***@***.***>
Subject: Re: [emsesp/EMS-ESP32] Call read commands from Web (Issue #2116)
I am using 3.7.1-dev.2 and it is not working. Tried it in Edge, Chrome and Firefox on both Windows and in KALI Linux
can you be more specific? what doesn't work? what happens? what do you see?
—
Reply to this email directly, view it on GitHub<#2116 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFMDJBPMSFPDGQUDR5GM7ZLZ6XMEXAVCNFSM6AAAAABQIPTNLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGM2DAMJXGU>.
You are receiving this because you commented.Message ID: ***@***.***>
|
try just '18 6' |
Oh, that works... I was expecting it will be like everywhere else... |
This has been discussed before and not implemented in favour of the
send
command, but I still think it's useful for novice users.I've added a new setting in Application Settings called
Developer Mode
which we can use to expose more advanced/debug/developer type features. When enabled you'll get a new command icon in the Web Log where you can send write commands like:The text was updated successfully, but these errors were encountered: