Dev corner

Calling all engineers, tinkerers, hackers and geeks.

get all data back from flukso website

Hello,
I' trying to get data back from flukso.net with CURL and the API from Flukso but I have some trouble to get all data back in one time.
I'm using this request : curl -k -v -X GET -H "Accept: application/json" -H "X-Version: 1.0" -H "X-Token: mytoken" "https://api.flukso.net/sensor/mysensorid?start=1419418800&unit=lpermin&resolution=minute"
The timestamp = 24/12/2014 à 12:00:00 but in the JSON data, the first data begin at 1421869380 (now : 21/1/2015 à 20:43:00)
What's wrong ?

Thank you,

Fabrice

modify FLM to POST to multiple web server

Hi,
Does-it possible to modify the FLM firmware to allow the POST with data on Flukso Server and personal server ? Like this we don't need the use of API or MQTT to get data back.
Thank you

Fabrice

Obtain FLM configuration via MQTT [solved]

From the FLM v2.4.4 source code of /usr/sbin/wwd.lua I see that there should be a MQTT topic MOSQ_TOPIC_SENSOR_CONFIG, set to "/device/flukso-id/config/sensor", which should provide the configuration parameters of all FLM attached sensors. Also this message should be retained for any newly subscribed MQTT client.
Nevertheless, a mosquitto_sub -h host -v -t /device/#, nor a generic /# receives such a topic's payload (which in principle should work as, for example "old" gauge and counter data is resent".
What is missing?

Issue solved - the flukso-daemon requires a tiny addition to gain the capability to also publish the FLM's configuration data as an own MQTT topic; see below.

reset flukso 60-120 sec

I have reset my flukso, cause I thought that might be solving my problem, but now I have more problems. In dash, my total use, wh cumulative, of my water is -3000 liters, my gas -7000 liters, and my solar panels -100 and is still going down... It seems only the current clamp grafic is good...
Did I have to restore something?
Or delete?

flukso counting problems

I have a din rail kWh meter with 1000 pulses a kWh. I measured that the kWh on the display of the din rail kWh meter, is perfect in line with the measuring of the solar inverter.
But: In dash there is around 14% more kWh than on the meters...
I looked at syslog and this is what I saw:
The counting is not good!
For example, this is the counting of flukso: 1,2,3,4,5,6,7,9,0,1,2,4,5,6,8
I saw my gas sensor the counting is perfect, but my watersensor has some some sometimes a slippery too! But not as much as my dinrail kWh meter.
14% is quite a lot!
What could this be???
Any suggestions?