Use new HTTP API parameter in client

pull/26/head
Starbeamrainbowlabs 4 years ago
parent 24b14a4745
commit eff8b69d38
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 5
      Changelog.md
  2. 2
      client_src/js/DeviceReadingDisplay.mjs

@ -1,7 +1,10 @@
# Changelog
## v0.3.1 - 7th February 2019
- [API] Added `device-id` parameter to the `list-reading-types` action.
- Hidden measurement types in the device graph if a device hasn't reported any readings of that type
### API Backend
- Added `device-id` parameter to the `list-reading-types` action.
## v0.3.0 - 1st February 2019
- Installed a library to fix bugs in the device marker tabbing system

@ -153,7 +153,7 @@ class DeviceReadingDisplay {
}
async fetch_reading_types() {
this.reading_types = JSON.parse(await GetFromUrl(`${this.config.api_root}?action=list-reading-types`));
this.reading_types = JSON.parse(await GetFromUrl(`${this.config.api_root}?action=list-reading-types&device-id=${this.device_id}`));
}
async switch_graph_type_handler(event) {

Loading…
Cancel
Save