mirror of
https://github.com/Civlo85/gsmHat.git
synced 2026-07-16 08:26:57 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 29d4f54d52 | |||
| 2ffb53977c | |||
| c5ecfc538e |
@@ -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)
|
||||||
|
|||||||
@@ -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',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user