Commit Graph

82 Commits

Author SHA1 Message Date
Bart Van Der Meerssche a14c1775b1 api: allow a start time (&start=...), end time (&end=...) and
resolution(&resolution=...) to be specified

Either an interval or start parameter is required, while the end
parameter is optional when start is specified. Start and end should both
be specified in unix time format. Resolution is in seconds and should be
one of [60 | 900 | 86400 | 604800] meaning [minute | 15min | day | week]
resolution respectively.

The [time, power] pairs returned by the api will be aligned to multiples
of the specified resolution, or maximum resolution available for the
requested time interval.
2010-05-22 13:21:31 +02:00
Bart Van Der Meerssche fdd5363cf7 api: allow a start/end unix time to be specified instead of an interval 2010-05-21 16:25:01 +02:00
Bart Van Der Meerssche c69f4d65c8 api: include checking of version information in header or query string 2010-04-28 00:08:41 +02:00
Bart Van Der Meerssche 54c151c4a5 api: rename check_factor into check_unit 2010-04-27 23:47:01 +02:00
Bart Van Der Meerssche a1d81946f3 api: rename input validation functions 2010-04-27 23:23:27 +02:00
Bart Van Der Meerssche 606efd7c79 api: allow the token to be submitted either in the request header or as part of the query string 2010-04-27 23:14:30 +02:00
Bart Van Der Meerssche ea9f713f90 api: night values were not taken from the proper database since we were checking against path_info instead of get_qs_value 2010-04-27 14:22:25 +02:00
Bart Van Der Meerssche e081a2e95c api: implement a jsonp callback parameter 2010-04-24 01:20:47 +02:00
Bart Van Der Meerssche 03eee97e37 web: display the api token in the sensor table 2010-03-15 20:20:41 +00:00
Bart Van Der Meerssche 155f2bfef9 api: introduces token-based authentication 2010-03-14 20:31:10 +00:00
Bart Van Der Meerssche a53fa50f80 api: use pattern matching in to_json arguments 2010-03-14 14:12:35 +00:00
Bart Van Der Meerssche 4a5e939acc api: use record instead of tuple to pass around State 2010-03-14 13:47:28 +00:00
Bart Van Der Meerssche cf79030ec1 api: use updated mysql driver on github (git://github.com/dizzyd/erlang-mysql-driver.git). New features include prepared statements, transactions, binary queries, type-converted query results, more efficient logging and a new connection pooling mechanism. 2010-03-14 12:01:32 +00:00
Bart Van Der Meerssche 3de06ee609 api: initial import of mysql driver in webmachine 2010-03-13 13:00:51 +00:00
Bart Van Der Meerssche f34f06cb22 web: remove alias code and repurpose {logger_aliases} as {logger_tokens} 2010-03-13 04:07:22 +00:00
Bart Van Der Meerssche 685fba7a81 web: users automatically obtain logger permissions when registering their first Fluksometer 2010-03-12 17:18:32 +00:00
Bart Van Der Meerssche 44ca2c9b88 web: fix destination bug in Fluksonians block 2010-03-12 12:39:36 +00:00
Bart Van Der Meerssche c90934c3ab web: reduce number of columns in the Fluksonians block to 4 for better presentation on Macs 2010-03-10 20:30:13 +00:00
Bart Van Der Meerssche c3ffa6f15f web: bugfix for users with TZ=GMT. Thanks lpalma! 2010-03-10 16:18:00 +00:00
Bart Van Der Meerssche dad3156997 web: add login tab to primary menu for anonymous users 2010-03-10 14:17:55 +00:00
Bart Van Der Meerssche 12eefe80a7 web: redirect when using the user_login form 2010-03-10 14:16:44 +00:00
Bart Van Der Meerssche 517efafed3 web: provision an entry in the logger_users table when a first device is added 2010-03-09 12:55:25 +00:00
Bart Van Der Meerssche e6743f610c web: allow users to associate a Fluksometer with their account 2010-03-08 22:06:23 +00:00
Bart Van Der Meerssche 3d8636611e web: introduce a devices tab in the account section 2010-03-08 13:50:30 +00:00
Bart Van Der Meerssche 9f97afe4a2 web: minor style.css adaptation related to rev 99. 100th commit, time for celebration! 2010-03-06 23:21:03 +00:00
Bart Van Der Meerssche f91fd01bac web: theme the fluksonians block into a table and locate it under the chart 2010-03-06 23:16:27 +00:00
Bart Van Der Meerssche 862466ad2c web: make a global Fluksonians block allowing BLOCK_CACHE_GLOBAL 2010-03-06 10:43:03 +00:00
Bart Van Der Meerssche b35a723820 web: introduce a block with recent blog posts 2010-03-06 10:25:13 +00:00
Bart Van Der Meerssche a2e6948a7e web: list sensors associated with a user in the account section 2010-03-05 15:40:22 +00:00
Bart Van Der Meerssche 6d907016dd initial import of webmachine-based api 2010-02-25 17:45:11 +00:00
Bart Van Der Meerssche 6a9d4d3f62 web: fix chart generation for anonymous and private users 2010-02-19 10:29:03 +00:00
Bart Van Der Meerssche 48fae8ebe4 web: increase space between chart and legend 2010-02-18 21:59:20 +00:00
Bart Van Der Meerssche 89dd35a82b web: introduce multiple electricity sensors per user 2010-02-18 21:53:31 +00:00
Bart Van Der Meerssche d4862a7798 web: Changed footer message and moved js loading to the bottom of the HTML page. 2010-02-09 10:43:15 +00:00
Bart Van Der Meerssche 2b769d5556 web: adapt drush commands to work in pipe mode 2010-01-11 09:27:38 +00:00
Bart Van Der Meerssche 251514da22 web: Tune rrd min and max validation rules. Accept an input power range between 0 and 72kW. Backported to existing rrds. See: http://www.flukso.net/content/bug-clipping-7200-watt. Thanks yschaeff & Wutje! 2009-12-26 15:18:44 +00:00
Bart Van Der Meerssche dcbe39e1ae web: add entry in {logger_users} when creating device 2009-12-07 09:21:28 +00:00
Bart Van Der Meerssche 222f5aa120 web: improve drush _logger_create and _logger_aasign command consistency 2009-12-01 10:33:32 +00:00
Bart Van Der Meerssche aaf6dcb1d1 web: drush commands for populating the alias table 2009-11-30 19:56:15 +00:00
Bart Van Der Meerssche bf0c4948df web: account privacy tab should only be visible to its user 2009-11-18 19:21:50 +00:00
Bart Van Der Meerssche e0081db879 web: Implement an opt-out to sharing your data stream within Flukso. 2009-11-18 14:04:21 +00:00
Bart Van Der Meerssche 40d5d11c7a web: fixed form tables width and padding in comments 2009-11-16 11:44:39 +00:00
Bart Van Der Meerssche fc790d6ed6 web: increase font size of coding tips 2009-11-13 15:19:17 +00:00
Bart Van Der Meerssche 2e4c150795 web: override some geschifilter css defaults 2009-11-12 23:03:48 +00:00
Bart Van Der Meerssche 993e01c085 web: small css fix for even table rows 2009-11-11 19:26:07 +00:00
Bart Van Der Meerssche fb4d9ff0cc web: Update style.css to accomodate a Flukso forum. Oh, a forum! 2009-11-10 23:31:33 +00:00
Bart Van Der Meerssche 28db2acd2c web: add pricing info per currency 2009-11-08 17:01:10 +00:00
Bart Van Der Meerssche d11234801e web: add an aud/year unit type for the guys down-under 2009-11-08 16:40:42 +00:00
Bart Van Der Meerssche efa0cce3b2 web: improve co-existence of img_assist positioning (left, center, right) and image_annotate 2009-11-05 22:21:20 +00:00
Bart Van Der Meerssche cb6e20bdcc web: drush logger create now assigns 4 meters per device 2009-10-28 22:16:46 +00:00