Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.4 #60

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pymagnum.code-workspace
*.bak
credentials.txt
source/_build
docs/_build
testdata/**
testing/**
.pymodhis
!testdata/allpackets.txt
!testdata/allpackets.json
!testdata/allpackets.sql
examples/mqttlogger_2.py
10 changes: 1 addition & 9 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
=======================
pyMagnum Release Notes
========================
Version 2.0.5 2023/11/13
------------------------
- Enhancement added ``allinone`` method to Magnum class. This creates a single record instead of one per device.
- ``magdump`` has been enhanced to support ``--allinone`` option
- A new example program ``magsql.py`` is available to log data to MariaDB/MySQL. Read the program comments for more information.
- A new tool ``mag2sql`` is available to convert JSON from ``magdump`` output to a MySQL schema definition.

Version 2.0.4 2023/11/05
------------------------
- Fixed bug in emitted JSON when using multiple devices
- Cleaned up code when using dummy data files instead of RS485 serial device
- Provided a complete dummy test file testdata/allpackets.txt
- Provided a JSON file testdata/allpackets.JSON

- Fixed All revision values are defined as string. It used to be mixed
- Enhancement --pretty option to magdump for formatted JSON output


Version 2.0.3 2023/10/20
------------------------
- Fixed problem with installing tzlocal on some systems
Expand Down
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

# The full version, including alpha/beta/rc tags
release = '2.0'
version = '2.0.5'
version = '2.0.4'
=======


# -- General configuration ---------------------------------------------------

Expand Down
3 changes: 2 additions & 1 deletion magnum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# SPDX-License-Identifier: BSD-3-Clause
#
# BUILDINFO
__version__="2.0.5"
__version__="2.0.4"

#
# names of devices
#
Expand Down
1 change: 1 addition & 0 deletions magnum/aclddevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def __init__(self, trace=False):
self.trace = True # force packet dump
self.data = {}
self.deviceData = {}

self.deviceData["device"] = ACLD
self.deviceData["data"] = self.data
if self.trace:
Expand Down
1 change: 1 addition & 0 deletions magnum/magdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def main():
alldata["data"] = magnumdata
if args.allinone:
alldata = magnumReader.allinone(alldata)

commdevices.append(alldata)
except Exception as e:
print("{0} {1}".format(comm_device, str(e)))
Expand Down