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

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/3e3bc608-ab33-4c2a-89be-2e4b092251a0n%40googlegroups.com.

Reply via email to