Skip to content

Commit f45dc10

Browse files
committed
Uncomment the delete database and remove timestamp
1 parent 155e0f0 commit f45dc10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ControlLaptop/Examples/LogToInflux/Log2Influx.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def main():
3131
# host, port, user, pass, database
3232
client = InfluxDBClient('localhost', 8086, 'root', 'root', 'example')
3333

34-
# client.drop_database('example')
3534
# Create a new database in influx
35+
client.drop_database('example')
3636
client.create_database('example')
3737

3838
while 1:
@@ -47,7 +47,6 @@ def main():
4747
# Scramble data
4848
telemetry[0]['fields']['Celsius'] = random.random() * 100.0
4949
telemetry[0]['fields']['Fahrenheit'] = random.randint(0,100)
50-
#s telemetry[0]['time'] = datetime.now()
5150

5251
time.sleep(1)
5352

0 commit comments

Comments
 (0)