21.05.2018, 11:22
Thank you admin. This works just like I needed to.
How can I pass an array from a script to the custom JS? I'm thinking in combine Google charts with this example:
http://www.openrb.com/docs/trends-new.htm
Or simply creating a table like this and call it in JS:
BR,
A Neves
How can I pass an array from a script to the custom JS? I'm thinking in combine Google charts with this example:
http://www.openrb.com/docs/trends-new.htm
Or simply creating a table like this and call it in JS:
Code:
kwh_lights = grp.getvalue('1/1/33')
kwh_sockets = grp.getvalue('1/1/53')
kwh_AC = grp.getvalue('1/1/73')
kwh_garden = grp.getvalue('1/1/93')
energy_pie={{'Label', 'Value'},
{'Lights', kwh_lights},
{'Sockets', kwh_sockets},
{'AC', kwh_AC },
{'Garden', kwh_garden }
}
log(energy_pie)
BR,
A Neves