5 Commits

Author SHA1 Message Date
Civlo85 13fbd1ba78 Merge pull request #5 from ThinkTransit/master
Update gsmHat.py
Some Waveshare devices return more than 21 data items for GPS data
2024-05-27 07:21:23 +02:00
Civlo85 d4d2878e5e Update README.md 2024-04-04 23:49:04 +02:00
Patrick Joy 1c63208d2b Update gsmHat.py
Some Waveshare devices return more than 21 data items for GPS data
2021-04-17 15:48:04 +10:00
Civlo85 f8e4bf75f2 Update README.md
Update of the pip command
2020-10-22 11:50:09 +02:00
Tarek 94558e35fc Correction of some minor errors 2020-10-21 00:57:29 +02:00
3 changed files with 15 additions and 6 deletions
+5 -2
View File
@@ -1,3 +1,6 @@
# Update on Thu Apr 4th, 2024
Unfortunately, there is no time (and equipment anymore) to maintain this repository. I hope that someone else will find the time to continue with that.
# gsmHat - Waveshare GSM/GPRS/GNSS HAT for Raspberry Pi with Python
With gsmHat, you can easily use the functionality of the Waveshare GSM/GPRS/GNSS HAT for Raspberry Pi ([Link to HAT](https://www.waveshare.com/gsm-gprs-gnss-hat.htm)). On this module a SIM868 Controller is doing the job to connect your Raspberry Pi with the world just by using a sim card.
@@ -21,7 +24,7 @@ In the following paragraphs, I am going to describe how you can get and use gsmH
To download gsmHat, either fork this github repo or simply use Pypi via pip.
```sh
$ pip3 install gsmHat
$ python3 -m pip install -U gsmHat
```
### Prepare
@@ -205,4 +208,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
contact me: <software@tounsi.de>
contact me: <software@tounsi.de>
+2 -2
View File
@@ -344,7 +344,7 @@ class GSMHat:
self.__logger.debug('New GPS Data:')
match = re.findall(self.regexGetAllValues, self.__serData)
rawData = match[0][1].split(',')
if len(rawData) == 21:
if len(rawData) >= 21:
newGPS = GPS()
goodPosition = True
@@ -773,4 +773,4 @@ class GSMHat:
# Let other Threads also do their job
time.sleep(0.1)
self.__logger.info('Worker ended')
self.__logger.info('Worker ended')
+8 -2
View File
@@ -1,10 +1,16 @@
from distutils.core import setup
from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(
name = 'gsmHat',
packages = ['gsmHat'],
version = '0.4',
version = '0.4.2',
license='MIT',
description = 'Using the Waveshare GSM/GPRS/GNSS Hat for Raspberry Pi with Python',
long_description = long_description,
long_description_content_type="text/markdown",
author = 'Tarek Tounsi',
author_email = 'software@tounsi.de',
url = 'https://github.com/Civlo85/gsmHat',