
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
cd-wifi-client
Advanced tools
A client for the onboard WiFi portal of České dráhy (Czech Railways) trains.
npm install cd-wifi-client
const {acknowledgeCaptivePortal} = require('cd-wifi-client')
const acknowledgeLegalTerms = (msg) => {
console.log(msg)
return Promise.resolve() // we always accept
}
acknowledgeCaptivePortal(acknowledgeLegalTerms)
.then(successMsg => console.info(successMsg))
.catch(console.error)
const {fetchTrainStatus} = require('cd-wifi-client')
console.log(await fetchTrainStatus())
{
latitude: 50.252175,
longitude: 14.30227,
altitude: 185.5,
speed: 85,
delay: null,
}
const {
fetchWifiStatus,
fetchWifiConnectivity,
} = require('cd-wifi-client')
console.log(await fetchWifiStatus())
console.log(await fetchWifiConnectivity())
// WiFi status
{
authenticated: true,
id: null,
clientIpAddress: '10.0.0.105',
clientMacAddress: null,
dataUsage: {used: 0, limit: -1, speedLimit: false, region: 'CZ'},
}
// WiFi connectivity
{
version: '1.9',
online: '1',
bundleid: '84105699258',
bundleip: '10.3.2.1',
links: [
{
index: '1',
device_type: 'ethernet',
device_state: 'down',
link_state: 'disconnected',
ethernet_info: {ip: '0.0.0.0', netmask: '0.0.0.0', mode: 'dhcp'},
},
{
index: '102',
device_type: 'modem',
device_subtype: 'sierra-7710',
device_state: 'up',
link_state: 'available',
rssi: '-75',
technology: 'lte',
operator_id: '23002',
apninfo: 'cd-internet,-1,-1',
umts_info: {net_status: '1', lac: 'FFFE', cellid: '03F3FF01'},
},
// …
]
}
sncf-wifi-portal-client
– Query information from the SNCF WiFi portal in French TGV trains.wifi-on-ice-portal-client
– Query information from the WifiOnICE portal in German ICE trains.digital-im-regio-portal-client
– Query information from the Digital im Regio portal in German Regio trains.live-cd-wifi-position
– Live vehicle geolocation of České dráhy (Czech Railways) trains taken from the on-board Icomera WiFi system.If you have a question or need support using cd-wifi-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.
FAQs
A client for the WiFi portal of Czech Railways trains.
We found that cd-wifi-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.