Steeple Ian
unread,Nov 13, 2024, 4:52:04 PM11/13/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to weewx-user
I am using the following in a .tmpl file to generate series data for a Highcharts chart: -
$year.gridProduction.series(aggregate_type='min', aggregate_interval=86400, time_series='start', time_unit='unix_epoch_ms').round(0).json
This series produces either 0 or negative numbers, something like this extract: -
[[1731024000000, 0], [1731110400000, -107], [1731196800000, -407], [1731283200000, -341]]
Is there any straightforward way of converting the negative values to absolute numbers?
The context is solar generated power. When the grid values are negative, solar generated power is being exported to the grid.
Thank you