diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..ab34ba6 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 B@$T!0N + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/beacon-decoder/decoder.py b/beacon-decoder/decoder.py index 9d795e5..0ce06a1 100644 --- a/beacon-decoder/decoder.py +++ b/beacon-decoder/decoder.py @@ -1,6 +1,5 @@ import math from binascii import hexlify -import struct #inspired from https://github.com/Scrin/RuuviCollector def dewPoint(temperature, relativeHumidity): v = math.log(relativeHumidity / 100 * equilibriumVaporPressure(temperature) / 611.2) diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..85d31a0 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from distutils.core import setup +setup( + name = 'beacon-decoder', + packages = ['beacon-decoder'], + version = '1.0', + license='MIT', + description = 'A Python library for decoding certain types of Bluetooth LE Beacons', + author = 'theBASTI0N', + author_email = 'theBASTI0Ncode@gmail.com', + url = 'https://github.com/theBASTI0N/beacon-decoder', + download_url = 'https://github.com/user/reponame/archive/v_01.tar.gz', # I explain this later on + keywords = ['BLE', 'decode', 'iot'], + install_requires=[ # I get to this in a second + 'math', + 'binascii', + ], + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Build Tools', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 3.7' + ], +) \ No newline at end of file