-
Notifications
You must be signed in to change notification settings - Fork 33
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
webAPI v2 documentation #278
Comments
After activation of API v2, the API page of the add-on contains info about the API v2. Any suggestions to have this info elsewhere? |
My mistake, page refreshing gave me the documentation for WebAPI v2. As to the documentation, some parts have not been updated. |
Yes of course! Didn't update that part yet.
Thanks a lot!! |
And to add to that, if you have general feedback about the API, see any inconsistencies etc. please let me know! |
I made the changes in Node-RED. For the query |
Thats interesting, it should be a string just like v2. The code producing the string for v1: ithowifi/software/NRG_itho_wifi/main/tasks/task_web.cpp Lines 584 to 590 in f287881
is the same as for v2: ithowifi/software/NRG_itho_wifi/main/tasks/task_web.cpp Lines 838 to 844 in f287881
Maybe the JSON lib handles string input differently compared to the WebServer lib, or the browser displays it differently? |
Solved. In Node-Red I used the http request node with return set to parsed
json object. That returned a number.
When set to binary buffer it returned 0x31 0x35, being the string
representation of *15.*
Op di 3 dec 2024 om 22:47 schreef Arjen Hiemstra ***@***.***>:
… in API v1 the result from the query api.html?get=currentspeed is given as
string whereas it actually is a number (similar to the state topic in mqtt).
Thats interesting, it should be a string just like v2.
The code producing the string for v1:
https://github.com/arjenhiemstra/ithowifi/blob/f287881e817b62525102817c3809ccf261c6776c/software/NRG_itho_wifi/main/tasks/task_web.cpp#L584-L590
is the same as for v2:
https://github.com/arjenhiemstra/ithowifi/blob/f287881e817b62525102817c3809ccf261c6776c/software/NRG_itho_wifi/main/tasks/task_web.cpp#L838-L844
Maybe the JSON lib handles string input differently compared to the
WebServer lib, or the browser displays it differently?
—
Reply to this email directly, view it on GitHub
<#278 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIL5KVGA3DJVF3DW4GDBDLL2DYRHXAVCNFSM6AAAAABSSIVLQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJVGYYTONJTGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Describe the bug
documentation for webAPIv2 missing (or not easy to find)
Device information
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: