Skip to content

Conversation

@ScriptBlock
Copy link

I didn't have an opportunity to test this code but I'm using the same format in my existing groovy script to poll all devices every 5 minutes to get info regardless of events being triggered for those devices.

I did some refactoring of the original master for consistency as well as code re-use.

hrottenberg and others added 6 commits September 7, 2019 17:25
- properly formatted w/indentation, removed some unused commented code
- removed HOST HTTP header so that Splunk will set that properly
- added new "http:smartthings" sourcetype field for Splunk
- added some comments here and there
- JSON typo
…vent/device to JSON functions. added ability to enable device polling and implemented 5 minutes polling for all devices if enabled.
…vent/device to JSON functions. added ability to enable device polling and implemented 5 minutes polling for all devices if enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant