Dev corner

Calling all engineers, tinkerers, hackers and geeks.

New user, trouble accessing locally

Hi,

Received and set up my new Fluksometer few hours ago :-). So far, so good: now it is registered and I can see the data on my Dashboard on flukso.net. Also obtained a sensor id and token. Using curl commands like this works great:

  1. curl -k -X GET -H "Accept: application/json" -H "X-Version: 1.0" -H "X-Token: xxxxxxxxxx" "https://api.flukso.net/sensor/yyyyyyy?interval=hour&unit=watt"

However the problem is that I can't obtain valid response from the local JSON interface. Is is enabled in the web interface. I am trying with:

  1. curl -k -X GET -H "Accept: application/json" -H "X-Version: 1.0" "http://192.168.1.160:8080/sensor/yyyy?interval=minute&unit=watt"

But the answer always is:

  1. Malformed query string interval, unit and version query parameters are required.

What is wrong? Tried with and without token, with the version in header and as parameter with no success.

Thank you in advance!

Some code to display realtime sensors data to a web page and access from anywhere.

I wanted to find a solution to get a peek from work on the realtime "minute" data coming from Flukso box.
But the Flukso.net dash page don't allow this.
Therefore, built I a little web page with javascript and google graph for that purpose.

This solution needs some special proxying configuration on the Apache server to overcome the cross-domain restriction of the Javascript. This case is explained inside the file index.html in the tutorial.

Please if you try it at your home, let me know if you got some success.

Cheers.
Pirlouwi.

Update:
I have corrected a bug in the WAN/LAN decision in the javascript code. See index.html.tar attached file which must replace the one in the package.

Realtime water and gas readings via local API

I am trying to read the sensor data via the API. I recently connected my water probe and am trying to read its realtime data.

Is it possible to specify any other unit as "watt" to read from the Fluksometer? When reading the manual (topic 3.6 in https://www.flukso.net/files/flm02/manual.pdf) it seems the Fluksometer only knows one unit. I can see why, the gas and water probes are probably too new and not yet in the firmware. Are there any plans for a new firmware and would it be possible to upgrade the current Fluksometers?

Thanks again!

Flukso a part of SmartThings?

Kickstarter is hosting an interesting startup SmartThings doing some crowdfunding to get started. It seems to be mainly Wifi based "things" connected to a main hub (router) and different apps interface the cloud based solution. I can definitely see Flukso as THE meter solution for this kit.

emoncms

Is it possible to use emoncms for data gathering with the Flukso v2?