Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaHotelKilo committed Feb 12, 2024
1 parent 9fdd1e6 commit 8b1e4d7
Show file tree
Hide file tree
Showing 5 changed files with 541 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ignore all .bak files
*.bak

32 changes: 32 additions & 0 deletions dws7612.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[General]
# meter-reading-cycle in seconds, default: 60
# valid values: 2 or greater
# sanity check: yes
cycle=60

[Meter]
# usb device, default: /dev/ttyUSB0
# sanity check: no
device=/dev/ttyUSB0

[MySQL]
# MySQL parameters. There are no defaults! Logging can be disabled
# by either specifying the argument [-n] or [--nosql] in the command line,
# or by leaving one or more of the following parameters empty.
# sanity checks: no

hostname=<host name or ip address>
username=<username>
password=<password>
database=<databas>

# For security reasons, you should setup a specific mysql-user for
# the logger and grant SELECT and INSERT rights to the specific database only.

# You may use the default database stucture by just executing the
# available script (dws7612.sql) on the corresponding mysql-host. If you do so, you
# do not need to edit the python script itself.

# If you wish to use your own database structure, the function '_log_data'
# needs to be modified accordingly.

Loading

0 comments on commit 8b1e4d7

Please sign in to comment.