Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (21 sloc) 0.701 kb
import datetime
import random
from tempodb import Client, DataPoint
# Modify these with your credentials found at:
API_KEY = 'your-api-key'
API_SECRET = 'your-api-secret'
SERIES_KEY = 'your-custom-key'
client = Client(API_KEY, API_SECRET)
date = datetime.datetime(2012, 1, 1)
for day in range(1, 10):
# print out the current day we are sending data for
print date
data = []
# 1440 minutes in one day
for min in range (1, 1441):
data.append(DataPoint(date, random.random() * 50.0))
date = date + datetime.timedelta(minutes=1)
client.write_key(SERIES_KEY, data)
Jump to Line
Something went wrong with that request. Please try again.