Skip to content

Commit

Permalink
Timestamp formatting + version number for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentinBulotAQ committed Feb 27, 2019
1 parent b6e569b commit 62966de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion novafitness_sds018/novafitness_sds018.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, line):
Takes a line from the Novafitness serial port and converts it into
an object containing the data
"""
self.timestamp = datetime.utcnow()
self.timestamp = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")
self.pm10 = round(((line[5] << 8) + line[4]) / 10, 1)
self.pm25 = round(((line[3] << 8) + line[2]) / 10, 1)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="novafitness-sds018",
version="0.0.3",
version="0.0.4",
author="Florentin Bulot",
author_email="[email protected]",
description="An interface for novafitness SDS018 particulate matter sensors",
Expand Down

0 comments on commit 62966de

Please sign in to comment.