Skip to main content

NTRIP Browser for terminal

Project description

# NTRIP Browser

A simple Python API for browse NTRIP (Networked Transport of RTCM via Internet Protocol).

### Dependencies

`geopy`
`texttable`

The package was tested with **Python 2.7**

### Installation

`pip install ntripbrowser`

or clone and run `make install`

### Usage

```
ntripbrowser [-h] [-p PORT] [-v] [-N] [-C] [-n] [-s] url

positional arguments:
url NTRIP source table address

optional arguments:
-h, --help Show this help message and exit
-p PORT, --port PORT Change url port. Default port is 2101
-v, --verbose Increase output verbosity
-N, --NETtable Additionaly show NET table
-C, --CATtable Additionaly show CAT table
-n, --no-pager No pager
-s, --source Display url source data
```


### Package API

- `get_mountpoints(url, port, my_position, timeout)`. Return list of dictionaries.
Input arguments:
- url: NTRIP url
- port: NTRIP port. Default value: 2101
- my_position: Point for distance calculation. Point format - (float(lat), float(lon)). Default value: None
- timeout: timeout for url request. Default value: None

Output keys:
```
"Mountpoint", "ID", "Format", "Format Details", "Carrier", "Nav System",
"Network", "Country", "Latitude", "Longitude", "NMEA", "SOL", "Generator",
"Compr-Encrp", "Authentication", "Fee", "Bitrate", "Other Details", "Distance"
```


```python
from ntripbrowser import get_mountpoints

mntpoints = get_mountpoints("ntrip.emlid.com", my_position=(59.96032, 30.33409))
for mnt in sorted(mntpoints, key=lambda mnt: mnt["Distance"]):
print("{:10} ({}): {:.4f} km".format(mnt["Mountpoint"], mnt["Format"], mnt["Distance"]))
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ntripbrowser-0.0.8.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file ntripbrowser-0.0.8.tar.gz.

File metadata

  • Download URL: ntripbrowser-0.0.8.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ntripbrowser-0.0.8.tar.gz
Algorithm Hash digest
SHA256 2498691c23c2f1b7b937c224b299ec58509dc8d30d449605b82f3b16f9def21f
MD5 9a77158d009695f95cc70a43baa44a30
BLAKE2b-256 fb044b93842ad577ebd7193854640f5ee2fdc17c7716d3cdf19ffcf2404359ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page