3 Commits

Author SHA1 Message Date
Tarek 29d4f54d52 Assuming, that the wrong logging package is included 2020-10-15 11:29:12 +02:00
Tarek 2ffb53977c Assuming, that the wrong logging package is included 2020-10-15 11:25:36 +02:00
Tarek c5ecfc538e Update README 2020-09-03 20:55:02 +02:00
2 changed files with 19 additions and 5 deletions
+15
View File
@@ -111,6 +111,21 @@ print('GNSS_satellites: %s' % str(GPSObj.GNSS_satellites))
print('Signal: %s' % str(GPSObj.Signal)) print('Signal: %s' % str(GPSObj.Signal))
``` ```
8. Calculate the distance between two Points on earth
```Python
GPSObj1 = GPS() # You can also use gsm.GetActualGPS() to get an GPS object
GPSObj1.Latitude = 52.266949 # Location of Braunschweig, Germany
GPSObj1.Longitude = 10.524822
GPSObj2 = GPS()
GPSObj2.Latitude = 36.720005 # Location of Manavgat, Turkey
GPSObj2.Longitude = 31.546094
print('Distance from Braunschweig to Manavgat is [m]:')
print(GPS.CalculateDeltaP(GPSObj1, GPSObj2)) # this will print 2384660.7 metres
```
## What will come in the future? ## What will come in the future?
* More options to configure the module (e.g. using sim cards with pin code) * More options to configure the module (e.g. using sim cards with pin code)
+4 -5
View File
@@ -2,18 +2,17 @@ from distutils.core import setup
setup( setup(
name = 'gsmHat', name = 'gsmHat',
packages = ['gsmHat'], packages = ['gsmHat'],
version = '0.2', version = '0.3',
license='MIT', license='MIT',
description = 'Using the Waveshare GSM/GPRS/GNSS Hat for Raspberry Pi with Python', description = 'Using the Waveshare GSM/GPRS/GNSS Hat for Raspberry Pi with Python',
author = 'Tarek Tounsi', author = 'Tarek Tounsi',
author_email = 'software@tounsi.de', author_email = 'software@tounsi.de',
url = 'https://github.com/Civlo85/gsmHat', url = 'https://github.com/Civlo85/gsmHat',
download_url = 'https://github.com/Civlo85/gsmHat/archive/v_02.tar.gz', download_url = 'https://github.com/Civlo85/gsmHat/archive/v_03.tar.gz',
keywords = ['Waveshare', 'GSM', 'GPS', 'Raspberry', 'Pi'], keywords = ['Waveshare', 'GSM', 'GPS', 'Raspberry', 'Pi'],
install_requires=[ install_requires=[
'serial', 'serial',
'datetime', 'datetime'
'logging',
], ],
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package 'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
@@ -26,4 +25,4 @@ setup(
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.7',
], ],
) )