has someone managed to create a php/mysql solution to collect and dispay data with for example highcharts?
I have a Synology NAS with build in webserver and Iᷰd like to display realtime data.
# Your sensor id's are displayed under the 'my account' -> 'sensor' tab. Just substitute the sensor id and token with your own and you're ready to go.
$token='a87c5e36c47d39ad455a964e46220xxx';
# A token associated with the specific sensor id. Different tokens per sensor will allow for varying access permissions, e.g. only allow data in 'month' resolution. This feature will become available in the near future. We now provision a single token per sensor. The token can be found next to its respective sensor id.
$interval='hour'; # Should be one of {hour, day, month, year, night}
$unit='watt'; # Should be one of {watt, kwhperyear, eurperyear, audperyear}
# That's it, now get the data !!
$fluksodata = new Flukso($sensorid, $token, $interval, $unit);
Something like this? http://www.vanheusden.com/misc/blog/2009-10-11-flukso.php
Hi Halsey,
Something like that yes.
I want to use Google chart or Highchart and .php scripting (because of my lack of knowledge on perl scripting).
This is what I have now based on API. The first problem is the timestamp conversion.
Todo:
- convert timestamp to date/time for display on x-axis
- ajax reload
- save values to database
- use highstock charts instead of google charts
Any help is appreciated!