This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation!
Build useful charts in ioBroker:
Use "Actual value" aggregation for predicted result.
Add after the restart the tab in the admin:
The created preset can be accessed in web adapter too. URL: http://IP:8082/echarts/index.html?preset=echarts.0.PRESETID
.
For vis
there is a special widget with easy selection of presets.
Lower case i
indicates that the value was interpolated from the 2-neighbour values, and it does not exist at this time stamp.
You can define the data source from JSON. In this case you can create some custom state of type json
and store the value like this:
[
{"ts": 1675887847000, "val": 45},
{"ts": 1675887848000, "val": 77},
{"ts": 1675887849000, "val": 180}
]
Alternative following attribute names are supported for val
: value
, v
, data
, y
.
And following for ts
: time
, t
, date
.
You cannot define start and start in echarts settings. The start and end will be calculated automatically from the data. Aggregation is not possible either. All manipulations must be done by writing of the JSON data. The chart will be automatically updated every time the value changes.
You can render the presets on the server and get it as base64 URL or save it on disk on in ioBroker DB:
sendTo('echarts.0', {
preset: 'echarts.0.myPreset', // the only mandatory attribute
renderer: 'svg', // svg | png | jpg | pdf, default: svg
width: 1024, // default 1024
height: 300, // default 300
background: '#000000', // Background color
theme: 'light', // Theme type: 'light', 'dark'
title: 'ioBroker Chart', // Title of PDF document
quality: 0.8, // quality of JPG
compressionLevel: 3, // Compression level of PNG
filters: 8, // Filters of PNG (Bit combination https://github.com/Automattic/node-canvas/blob/master/types/index.d.ts#L10)
fileOnDisk: '', // Path on disk to save the file.
fileName: '', // Path in ioBroker DB to save the files on 'echarts.0'. E.g. if your set "chart.svg", so you can access your picture via http(s)://ip:8082/echarts.0/chart.png
cache: 600, // Cache time for this preset in seconds, default: 0 - no cache
}, result => {
if (result.error) {
console.error(result.error);
} else {
console.log(result.data);
}
});
Attention: You cannot enable/disable lines in legend on touch devices with enabled zoom
For non-developers, this link does not work!
You can debug view charts locally with:
- cd iobroker.echarts/src-chart
- npm run start
- Browser: http://localhost:8081/adapter/echarts/tab.html?dev=true
- widget for vis (button)
- show enum icons on folders or near it
- (bluefox) Convert actual values with provided "convert" function too
- (bluefox) Fixed polar and bar charts
- (bluefox) upgraded packages
- (bluefox) removed
withStyles
- (foxriver76) upgraded dependencies
- (bluefox) Added the radar (polar) chart type
- (bluefox) Added option to hide the value in the future
- (bluefox) Added X-Label offset
- (bluefox) Corrected icons in the object selection dialog
- (bluefox) Added vis-2 widget
- (bluefox) Added an option to the export dialog: select / unselect all
- (bluefox) Added the availability to show legend as dialog
- (bluefox) Added an option to reset zoom and tilt after X seconds of idle
- (bluefox) Error handling in JSON data was improved
- (bluefox) Implemented raw data export
- (bluefox) Allowed using the timestamp in seconds in JSON sources
- (bluefox) Added support for the alternative names for JSON sources
- (bluefox) Corrected some issues from GitHub
- (bluefox) Booleans were improved
- (bluefox) Allowed the disabling of texts for enums and the adding/deletion of own text values
- (bluefox) Implemented custom texts for enums
- (bluefox) Implemented custom texts for true and false values
- (bluefox) Allowed copying only the web URLs in the preview
- (bluefox) Corrected boolean charts
- (bluefox) Implemented charts preview
- (bluefox) Corrected some issues from GitHub
- (bluefox) Implemented negative offset of X-Axis
- (bluefox) Show device names for charts
- (bluefox) Added possibility to load the history data from JSON state.
- (bluefox) Added a formula for the value conversion
- (bluefox) Implemented bar chart
- (bluefox) Changed german translation
- (bluefox) Added new positions for markings: inside, top, bottom
- (bluefox) Refactoring and packages update done
- (bluefox) Make all buttons smaller
- (bluefox) Added preparations for vis2.0
- (bluefox) Made it work with ioBroker cloud
- (bluefox) GUI migrated to mui5
- (bluefox) Corrected the problem with
socket.io
- (bluefox) Added 2 weeks as a relative period
- (bluefox) Added option
shift+mouse move
to scale Y axis
- (bluefox) Added background to export image
- (bluefox) Added integral and percentile aggregate methods
- (bluefox) Added "i" in tooltips by interpolated values
- (bluefox) License changed to Apache-2.0 (because of apache/echarts)
- (bluefox) Updated some packages
- (bluefox) Added fast properties editor
- (bluefox) Fixed server-side rendering
- (bluefox) Fixed the communication with admin4
- (bluefox) Fixed the "no background" option
- (bluefox) Fixed many bugs
- (bluefox) Fixed reorder of presets
- (bluefox) Tried to sort the time series before displaying it
- (bluefox) Added the support of parameters in URL
- (bluefox) Fixed the dashed lines
- (bluefox) Allow the hiding of lines at start and show them via legend later
- (bluefox) Use canvas renderer on touch devices to allow zoom and pan
- (bluefox) Updated echarts to 5.0
- (bluefox) Implemented copy&paste of lines and markings
- (bluefox) Available vertical legend
- (bluefox) Allowed the hiding the interpolated values in tooltip
- (bluefox) Updated the select ID dialog
- (bluefox) Allowed the same names in different folders
- (bluefox) Some sentry errors were corrected.
- (bluefox) Added the possibility to show actual values in legend.
- (bluefox) Some sentry errors were corrected.
- (bluefox) Corrected the error with overflow of axis.
- (bluefox) Disconnection errors are caught now.
- (bluefox) Added new option: no background
- (bluefox) Corrected error with the chart.
- (bluefox) Implemented the conversion of the flot presets into echarts.
- (bluefox) Hide nulls in hover details
- (bluefox) The copy of charts is implemented
- (bluefox) Corrected SENTRY errors
- (bluefox) Corrected server-side rendering of PNG
- (bluefox) Added the color of export button
- (bluefox) The interpolated values are shown now
- (bluefox) Server-side rendering is implemented
- (bluefox) GUI fixes
- (bluefox) Implemented the grouping by the category.
- (bluefox) Added support for multiple charts
- (bluefox) initial release
ioBroker.echarts is available under the Apache License V2.
Copyright (c) 2019-2024 bluefox dogafox@gmail.com
Apache ECharts Copyright (c) 2017-2024 The Apache Software Foundation
This product includes software developed at The Apache Software Foundation (https://www.apache.org/).