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`
`chardet`
`texttable`

The package was tested with **Python 2.7**

## Installation

- `pip install ntripbrowser`

- or clone and run `make install`

## Usage

```
ntripbrowser [-h] [-p] [-t] [-c] url

positional arguments:
url NTRIP source table address

optional arguments:
-h, --help Show this help message and exit
-p, --port Set url port. Standard port is 2101
-t, --timeout Add timeout
-c, --coordinates Add NTRIP station distance to this coordinate
```

## Package API

```python
get_mountpoints(url, timeout=None, coordinates=None)
```
####Arguments:

- `url`

> Use `url` only with *http://* to pass url variable in function.
> Standard port is 2101, use `:port` after `url` to set another one.
> Example: *http://192.168.1.0:2101* or *http://ntrip.emlid.com:2101*.

####Optional arguments:

- `timeout`

> Use `timeout` to pass timeout in function. It must be integer.

- `coordinates`

> Use `coordinates` to pass your position coordinates in function and get distance to NTRIP station.
> Form of coordiantes must be `(x, y)` or `(x.x, y.y)` of latitude, longitude.

####Result

As a result you'll get a dictionary consisting of a lists of dictionaries with such structure:

- CAS stations: `"Host", "Port", "ID", "Operator", "NMEA", "Country", "Latitude", "Longitude", "FallbackHost", "FallbackPort", "Site", "Other Details"`

- NET stations: `"ID", "Operator", "Authentication", "Fee", "Web-Net", "Web-Str", "Web-Reg", "Other Details"`

- STR stations: `"Mountpoint", "ID", "Format", "Format-Details","Carrier", "Nav-System", "Network", "Country", "Latitude", "Longitude", "NMEA", "Solution", "Generator", "Compr-Encrp", "Authentication", "Fee", "Bitrate", "Other Details"`

##Example
```python
from ntripbrowser import get_mountpoints
print get_mountpoints('http://emlid.ntrip.com:2101', 1, (0.0, 0.0))
```

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-1.1.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ntripbrowser-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c04887e0ef0b49f328a556efc4aea6ed527db40486efdb35c8427220bc857135
MD5 b5e2c80d5b60a6f88c2aa41cbcd06829
BLAKE2b-256 1d164a3f7cdfa65c4e88676e19059a225cb3caf0d49a4b418a6867ecc969bc79

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