Skip to content

Commit

Permalink
Added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brewster76 committed Feb 13, 2014
1 parent 644e3eb commit b2332e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/weewx_archive_dump.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/usr/bin/python

#
# Turn a weewx database into a CSV file.
#
import datetime
import sqlite3 as lite
import shutil

# Where your archive database is (sqlite only)
sourceFile = '/home/weewx/archive/weewx.sdb'

# Where to copy the file so weewx doesn't hang while we lock the database
tempFile = '/tmp/weewx.sdb.dump'

shutil.copy (sourceFile, tempFile)
Expand Down

0 comments on commit b2332e7

Please sign in to comment.