Prepared for pip distribution
parent
b71a5b993b
commit
4937f82aa7
|
|
@ -0,0 +1,7 @@
|
|||
import os
|
||||
import glob
|
||||
|
||||
from .loramon import *
|
||||
|
||||
modules = glob.glob(os.path.dirname(__file__)+"/*.py")
|
||||
__all__ = [ os.path.basename(f)[:-3] for f in modules if not f.endswith('__init__.py')]
|
||||
|
|
@ -272,7 +272,6 @@ class RNode():
|
|||
elif (command == KISS.CMD_STAT_RSSI):
|
||||
self.r_stat_rssi = byte - self.rssi_offset
|
||||
elif (command == KISS.CMD_STAT_SNR):
|
||||
# self.r_stat_snr = ctypes.c_int8(byte).value * 0.25
|
||||
self.r_stat_snr = int.from_bytes(bytes([byte]), byteorder="big", signed=True) * 0.25
|
||||
|
||||
else:
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
import setuptools
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
name="loramon",
|
||||
version="0.9.3",
|
||||
author="Mark Qvist",
|
||||
author_email="mark@unsigned.io",
|
||||
description="LoRa packet sniffer for RNode hardware",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/markqvist/loramon",
|
||||
packages=setuptools.find_packages(),
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
entry_points= {
|
||||
'console_scripts': ['loramon=loramon:main']
|
||||
},
|
||||
install_requires=['pyserial'],
|
||||
python_requires='>=3.6',
|
||||
)
|
||||
Loading…
Reference in New Issue