halr9000 / smartthingssplunklogger Goto Github PK
View Code? Open in Web Editor NEWThis project forked from thefuzz4/smartthingssplunklogger
This project forked from thefuzz4/smartthingssplunklogger
Looking at the event source field (https://docs.smartthings.com/en/latest/ref-docs/event-ref.html#getsource), and my data, I don’t see any source=location or hub events, only device. Sure would be cool to know when location mode changes. Or perhaps a hub firmware upgrade.
SmartThings events have a field named source (https://docs.smartthings.com/en/latest/ref-docs/event-ref.html#getsource). Currently, it is passed in to Splunk with the same name. However, looking at the data, I don’t really think it makes sense to do so. Instead, I would like to rename it spot something like “stSource”, and let source be the default based on how the data arrives at Splunk (probably HEC).
For sourcetype, there was not one specified prior to my fork. I made it “http:smartthings” at first, but now I realize I am trying to stuff source and sourcetype into one field. So I will make it simply “smartthings “.
From https://community.smartthings.com/t/best-way-to-collect-logs-from-the-hub/7961/140
So does anyone who is doing the splunk with a energy meter such as the Aeon one, know how to calculate daily total kWh usage? The thing reports the current usage such as 1800 Watts or what not but obiviously if I took that and totaled it up when it reports in every 30 seconds my daily usage would be ridiculous. Thanks.
I do it by calculating the instantaneous KWH usage amount for each reading and adding it up over each 24 hour period.
(Instantaneous Power/1000)/(samples per hour)
Options
Just upload something to start with.
Unable to apply code in IDE due to this error. Fatal error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.