22 Commits

Author SHA1 Message Date
David Sulpy
12f6039de5 New Initial State Event Streamer: removed buffering and scheduled tasks for flushing buffer 2016-01-22 19:23:37 -06:00
rappleg
6778f8d58a Make sure we persist the updated eventBuffer with the new event added back to atomicState 2015-12-14 19:50:39 -06:00
rappleg
18bfa87948 Improve performance when streaming to Inital State and prevent buffer growing unbounded 2015-12-14 18:40:55 -06:00
David Sulpy
f012419710 added an initialization of the atomicState.eventBuffer if the eventBuffer is null when handling an event 2015-10-04 20:19:11 -05:00
David Sulpy
811a1af4bf added an error log when the grokerSubdomain is ever null or empty and the app is trying to ship events or create a bucket 2015-09-14 18:33:21 -05:00
David Sulpy
6eac6affcf added some protection against potential error cases if grokerSubdomain isn't properly set 2015-09-14 17:45:04 -05:00
David Sulpy
61d2aac45a added version set in the update function as well so that it will update the version on an update 2015-09-14 16:48:27 -05:00
David Sulpy
1c2189b63c bumped the version 2015-09-14 16:33:48 -05:00
David Sulpy
1adb4000a6 refactored the methods for creating buckets and sending events to be more idempotent friendly; called tryCreateBucket on bucketKey setting to create the bucket sooner in the workflow than an events shipment 2015-09-14 16:30:40 -05:00
David Sulpy
bad978afbd removed all simicolons as per the groovy-lang.org style guide and better consistency 2015-09-14 16:19:30 -05:00
David Sulpy
80b4d6a665 removed functions from uninstall that may have been causing errors during the uninstall process; added an initializer for the atomicState.eventBuffer on update if it's whiped away; added a check for access key in createBucket to make the function more idempotent 2015-09-14 16:16:21 -05:00
David Sulpy
7baad1c35e fixed the scheduling from throwing exceptions because it was using parenthesis when passing the handler method in to the scheduling method; ensured that the scheduler doesn't send empty events 2015-09-11 11:09:03 -05:00
David Sulpy
621bcfadd2 fixed a goovy syntax issue with http posts callback closures 2015-09-11 10:39:58 -05:00
David Sulpy
83bbaebef2 merged and made some slight adjustments 2015-09-11 10:37:26 -05:00
David Sulpy
bde5abcdb5 added buffering of events to reduce the calls from ST to IS; added buffer flushing after 10 events or 15 min with a scheduler; added a version to show in logs and help troubleshoot 2015-09-11 10:31:30 -05:00
David Sulpy
5719bbcaac switched from using state to using atomicState in preparation of event buffering; using atomicState exclusively per important tip found here: http://docs.smartthings.com/en/latest/smartapp-developers-guide/state.html#atomic-state 2015-09-10 11:14:27 -05:00
David Sulpy
8d07e81b80 Added all capabilities possible sans door controllers and buttons. 2015-08-25 12:23:05 -05:00
David Sulpy
0fcff53eba Removed door controllers from comments and further implementation to see if that fixes ST 403 error on authentication 2015-08-14 14:41:27 -05:00
David Sulpy
786af03073 rolled back changes to previous version 2015-08-10 19:22:53 -05:00
David Sulpy
04212d70dd Added a check to prevent an empty string root url from being accepted 2015-08-10 12:22:31 -05:00
David Sulpy
dd69c7c28a made a few adjustments to api interfacing; added root url configurability through api; uncommented previously commented device capabilities after discussion with SmartThings that the apparent disfunctionality is an ST IDE quirk, not an ST system quirk 2015-08-05 10:37:35 -07:00
bflorian
6ad3c4fd7a Initial commit 2015-08-04 15:49:03 -07:00