This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
for c in $(seq 1 60) | |
do | |
TIME=$(date +"%D %T.%3N %Z") | |
TEMP=$(vcgencmd measure_temp) | |
VOLTS=$(vcgencmd measure_volts) | |
CPU_TEMP=`echo $TEMP | cut -d \' -f 1` | |
VOLTS=`echo $VOLTS | cut -d V -f 1` | |
echo "time=$TIME|$VOLTS|$CPU_TEMP" | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "splunkdj:base_with_app_bar.html" %} | |
{% load splunkmvc %} | |
{% block content %} | |
<div id="barchart"></div> | |
{% endblock content%} | |
{% block js %} | |
<script> | |
var deps = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rest://Twitter Follow @himynamesdave] | |
auth_type = oauth1 | |
delimiter = ^ | |
endpoint = https://stream.twitter.com/1.1/statuses/filter.json | |
host = TwitterAPI | |
http_method = GET | |
index_error_response_codes = 0 | |
oauth1_access_token = YOUR_ACCESS_TOKEN | |
oauth1_access_token_secret = YOUR_ACCESS_TOKEN_SECRET | |
oauth1_client_key = YOUR_CLIENT_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rest://Foursquare Checkins himynamesdave] | |
auth_type = none | |
endpoint = https://api.foursquare.com/v2/users/self/checkins | |
host = FourquareAPI | |
http_method = GET | |
index_error_response_codes = 1 | |
response_handler = FourSquareCheckinsEventHandler | |
response_type = json | |
sourcetype = FoursquareCheckin | |
streaming_request = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dashboard> | |
<label>AirPi Feeds</label> | |
<row> | |
<panel> | |
<chart> | |
<title>Current Temperature</title> | |
<searchString>index=rpi | fields Temp_BMP | head 1</searchString> | |
<earliestTime/> | |
<latestTime/> | |
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<label>Nexonia Expenses</label> | |
<fieldset submitButton="false"> | |
<input type="time" token="field1" searchWhenChanged="true"> | |
<label>Time Range</label> | |
<default> | |
<earliestTime>0</earliestTime> | |
<latestTime/> | |
</default> | |
</input> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rest://people online right now p60s] | |
auth_type = none | |
endpoint = https://analytics.usa.gov/data/live/realtime.json | |
http_method = GET | |
index_error_response_codes = 0 | |
polling_interval = 60 | |
response_type = json | |
sourcetype = _json | |
streaming_request = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dashboard> | |
<label>analytics.usa.gov</label> | |
<row> | |
<panel> | |
<single> | |
<title>Visitors Online Now</title> | |
<search> | |
<query>sourcetype="_json" source="rest://people online right now 1min"| stats latest("data{}.active_visitors") as "Active Visitors"</query> | |
<earliest>rt-1m</earliest> | |
<latest>rt</latest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InstagramFollowedByEventHandler: | |
def __init__(self,**args): | |
pass | |
def __call__(self, response_object,raw_response_output,response_type,req_args,endpoint): | |
if response_type == "json": | |
output = json.loads(raw_response_output) | |
last_indexed_id = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cdc_births_2003] | |
MAX_DAYS_AGO=36500 | |
TIME_FORMAT=%Y%m %H%M%d | |
TIME_PREFIX=.{14} | |
disabled=false | |
pulldown_type=true | |
SHOULD_LINEMERGE = false | |
category = Custom | |
description = "CDC birth record extractions for US and Territories datasets from 2003-current. Slight hack in that day is grouped by first 7 days of month as records only contain weekday of birth, not day of month for birth." | |
# |
OlderNewer