Dev corner

Calling all engineers, tinkerers, hackers and geeks.

[bug] Lua scripts returns occasionally impossible high consumptions

I noticed that the API occasionally returns very high values.

For example, when I execute:

  1. curl  http://192.168.252.45/sensor/d281ff4e4f6a8a838897e02469d2315f?interval=minute&unit=watt

it can return:

  1. [[1283861258,2],[1283861259,1],[1283861260,1],[1283861261,2],[1283861262,1],[1283861263,2],[1283861264,1],[1283861265,1],[1283861266,2],[1283861267,2],[1283861268,2],[1283861269,2],[1283861270,4294967293],...]

Other values I've seen are:
2386093
2147483647
4294967293

Inconsistent average

The day view showed an average of 864W in the evening for my solar.
The following morning, the average was 713W.
Given that no power was generated overnight, and the only difference between the rrdtool output was a translation of the solar graph, why is the average different?

I was expecting day view average * 0.024 would be close to the daily energy reported by the inverter, but instead the flukso average is both high and inconsistent.

Installing Drupal's module

Hi,

I've been trying to install the drupal module provided in github, but so far without any success.

I've managed to enable the module but, when I go to "Site configuration -> Logger settings" I get a:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_logger_admin_settings' was given in form.inc on line 376.

I'd like to test this module's interaction with drupal but, until now, I haven't managed to do so.

Could you please help?

Thanks in advance.

api - curl + timelimit

Hello,

I am bussy using the flukso api + php + curl to output the data in my own graphs etc.
But i have some questions about it.

- Is there a way to get the "day" results using a 5 min or 1min timestamp in stead of the 15min?
- is there a way tot select the "day" results of a date in the past (yesterday ...)
- How to get the "kwh" consumption of the current day (00:00 - current time), or do i have the calculate it using the day results.

Thx.