alda1
(Alex Needle)
November 13, 2023, 7:27am
1
I have a week chart which actualy on Monday doesn’t show all data :
previous week was ok :
so missing complete second bar and line chart.
But when I will change to Month chart, it’s working :
Is it a bug or what’s a wrong ?
I want show a day-to-day consumption and production of PV. But it doesn’t work
Matze0211
(Matthias)
November 13, 2023, 2:31pm
2
Not sure if I understand right, but today is only Monday. For the current week there is no data for the remaining days yet.
OH only stores days for past periods, but not for future periods
What data do you expect to see?
alda1
(Alex Needle)
November 13, 2023, 2:53pm
3
I want to see also actual consumption for today (Monday), but it’s linked to the value from Sunday, because value is still incremented (cumulate value).
Matze0211
(Matthias)
November 13, 2023, 3:01pm
4
Does your item has the correct value and the chat does something different than the item?
Or is the item already wrong, e.g. because it will only update on midnight?
alda1
(Alex Needle)
November 13, 2023, 3:08pm
5
I think it’s bug
Last week :
Monday is missing
This week is empty, but item has a value which is still increasing:
Setup:
config:
chartType: isoWeek
slots:
grid:
- component: oh-chart-grid
config: {}
xAxis:
- component: oh-category-axis
config:
gridIndex: 0
categoryType: week
weekdayFormat: short
monthFormat: default
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
series:
- component: oh-aggregate-series
config:
name: Series 1
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: bar
item: Modbus_Data_Grid_sum_2634_Value_as_Number
dimension1: isoWeekday
aggregationFunction: diff_last
Matze0211
(Matthias)
November 13, 2023, 3:23pm
6
Which oh version are you using?
That’s not really a bug, because of math the first record in the chart will not have a Delta from a (not existing) previous record.
However a workaround has been implemented for this… an update would help
openhab:main
← crnjan:feature/fix_diff_last_calc
opened 09:26AM - 11 Jan 23 UTC
In order to calculate `diff_last` include `boundary=true` parameter when request… ing datapoints to read datapoint before requested interval (before datestart), if available. Use that one to calculate diff for first value.
fixes https://github.com/openhab/openhab-webui/issues/912 - partly, only applies for `diff_last`
Signed-off-by: Boris Krivonog boris.krivonog@inova.si
alda1
(Alex Needle)
November 13, 2023, 3:27pm
7
yes, exactly this look like a solution for me
my version is : openHAB 3.4.2 Release build
so upgrade to 4.0.4 stable will help?
alda1
(Alex Needle)
November 13, 2023, 3:35pm
8
one additional qustion - is it possible make this :
smaller ?
Because on the mobile phone is too big
Matze0211
(Matthias)
November 13, 2023, 8:28pm
9
Yes, an update would fix this.
Not sure about the date selector