Skip to content

Commit

Permalink
release v0.0.13
Browse files Browse the repository at this point in the history
- add configurable sleep interval between readings
  • Loading branch information
Yann Büchau committed Mar 9, 2017
1 parent b1298ae commit 31a6e13
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
co2monitor (0.0.13) unstable; urgency=medium

* add configurable sleep interval between readings

-- Yann Büchau <[email protected]> Thu, 09 Mar 2017 09:46:59 +0100

co2monitor (0.0.12) unstable; urgency=medium

* .desktop-file starts plot.R, not the unfinished gui
Expand Down
4 changes: 4 additions & 0 deletions etc/co2monitor/service.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ datafolder = /var/lib/co2monitor/data
# warmup time in seconds
# (first measurements after device start are often bogus)
warmuptime = 30
# idle interval between readings in seconds
# the devices yield data around every 10 seconds.
# Values below 10 here don't increase the frequency!
interval = 0
9 changes: 9 additions & 0 deletions usr/lib/co2monitor/python/co2monitor/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,15 @@ def run(self):
measold.update(meas)
else: # measurement didn't work
break # exit logloop

# wait predefined number of seconds
try:
waittime = int(
self.config["data-logging"].getint("interval"))
assert waittime > 0
except:
waittime = 0
time.sleep(waittime)

# logging ended
self.logger.info(_("stopped logging."))
Expand Down
8 changes: 4 additions & 4 deletions usr/share/co2monitor/lang/de/LC_MESSAGES/co2monitor.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-08 20:00+0100\n"
"POT-Creation-Date: 2017-03-09 09:44+0100\n"
"PO-Revision-Date: 2016-11-28 14:04+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -197,15 +197,15 @@ msgstr "Nachbearbeitung der Rohdaten"
msgid "writing data to file"
msgstr "schreibe Daten in Aufzeichnungsdatei"

#: usr/lib/co2monitor/python/co2monitor/service.py:323
#: usr/lib/co2monitor/python/co2monitor/service.py:332
msgid "stopped logging."
msgstr "Datenaufzeichnung beendet."

#: usr/lib/co2monitor/python/co2monitor/service.py:324
#: usr/lib/co2monitor/python/co2monitor/service.py:333
msgid "closed data logging file '{}'"
msgstr "Datenaufzeichnungsdatei '{}' geschlossen"

#: usr/lib/co2monitor/python/co2monitor/service.py:326
#: usr/lib/co2monitor/python/co2monitor/service.py:335
msgid "Stopped data logging on device {}"
msgstr "beende Datenaufzeichnung auf Gerät {}"

Expand Down
8 changes: 4 additions & 4 deletions usr/share/co2monitor/lang/fr/LC_MESSAGES/co2monitor.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-08 20:00+0100\n"
"POT-Creation-Date: 2017-03-09 09:44+0100\n"
"PO-Revision-Date: 2016-11-28 14:02+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -195,15 +195,15 @@ msgstr "travail postérieur des données crus"
msgid "writing data to file"
msgstr "écrire les données au fichier"

#: usr/lib/co2monitor/python/co2monitor/service.py:323
#: usr/lib/co2monitor/python/co2monitor/service.py:332
msgid "stopped logging."
msgstr "enregistrement arrêté."

#: usr/lib/co2monitor/python/co2monitor/service.py:324
#: usr/lib/co2monitor/python/co2monitor/service.py:333
msgid "closed data logging file '{}'"
msgstr "fichier d'enregistrement '{}' fermé"

#: usr/lib/co2monitor/python/co2monitor/service.py:326
#: usr/lib/co2monitor/python/co2monitor/service.py:335
msgid "Stopped data logging on device {}"
msgstr "arrêté enregistrement d'appareil {}"

Expand Down

0 comments on commit 31a6e13

Please sign in to comment.