# sncf-wifi-portal-client

> Query information from the SNCF WiFi portal in French TGV trains.

Latest version **1.1.0** (published 2021-04-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install sncf-wifi-portal-client
pnpm add sncf-wifi-portal-client
yarn add sncf-wifi-portal-client
bun add sncf-wifi-portal-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-04-13 |
| First published | 2019-09-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | tgv, sncf, train, wifi |

## Links

- npm: https://www.npmjs.com/package/sncf-wifi-portal-client
- Repository: https://github.com/derhuerst/sncf-wifi-portal-client
- Issues: https://github.com/derhuerst/sncf-wifi-portal-client/issues
- npm.io page: https://npm.io/package/sncf-wifi-portal-client

## Dependencies (2)

- [fetch-ponyfill](https://npm.io/package/fetch-ponyfill.md) ^6.1.0
- [pinkie-promise](https://npm.io/package/pinkie-promise.md) ^2.0.1

## Recent versions

- 1.1.0 (latest) — 2021-04-13
- 1.0.0 — 2019-09-14

## README

# sncf-wifi-portal-client

**Query information from the [SNCF WiFi portal](https://en.oui.sncf/en/tgv/services/wifi-onboard) in French TGV trains.**

[![npm version](https://img.shields.io/npm/v/sncf-wifi-portal-client.svg)](https://www.npmjs.com/package/sncf-wifi-portal-client)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/sncf-wifi-portal-client.svg)
![minimum Node.js version](https://img.shields.io/node/v/berlin-postal-code-areas.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)


## Installation

```shell
npm install sncf-wifi-portal-client
```


## Usage

```js
const portal = require('sncf-wifi-portal-client')

portal.connectionStatus()
.then(console.log, console.error)
```

```js
{
	active: true,
	status_code: 200,
	status_description: 'ip has active grant',
	service_class: 5,
	granted_bandwidth: 100000,
	remaining_data: 75453,
	consumed_data: 1346,
	next_reset: 1568471384091,
	profileId: 'AUTO-LOGIN-PROFILE-ID'
}
```


## Related

- [`record-tgv-movement`](https://github.com/derhuerst/record-tgv-movement) – Record the movement of any TGV using the on-board WiFi.
- [`wifi-on-ice-portal-client`](https://github.com/derhuerst/wifi-on-ice-portal-client) – Query information from the WifiOnICE portal in German ICE trains.
- [`digital-im-regio-portal-client`](https://github.com/derhuerst/digital-im-regio-portal-client) – Query information from the Digital im Regio portal in German Regio trains.
- [`cd-wifi-client`](https://github.com/derhuerst/cd-wifi-client) – A client for the onboard WiFi portal of České dráhy (Czech Railways) trains.


## Contributing

If you have a question or need support using `sncf-wifi-portal-client`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/sncf-wifi-portal-client/issues).

---
_Source: https://npm.io/package/sncf-wifi-portal-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
