access_from_lua_to_webhmi_itself
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
access_from_lua_to_webhmi_itself [2023/03/02 10:37] – emozolyak | access_from_lua_to_webhmi_itself [2023/03/02 10:52] – emozolyak | ||
---|---|---|---|
Line 3: | Line 3: | ||
To access the WebHMI DB data via API, you have to generate API key in the setup menu and use it in your requests. | To access the WebHMI DB data via API, you have to generate API key in the setup menu and use it in your requests. | ||
You can use // | You can use // | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ===== Getting meter data example ===== | ||
<code lua> | <code lua> | ||
Line 10: | Line 16: | ||
c : setopt{ url = ' | c : setopt{ url = ' | ||
timeout = 15, | timeout = 15, | ||
- | httpheader = {' | + | httpheader = { ' |
' | ' | ||
' | ' | ||
- | -- ' | + | |
- | -- ' | + | |
- | | + | |
' | ' | ||
' | ' |
access_from_lua_to_webhmi_itself.txt · Last modified: 2023/03/02 10:56 by emozolyak