https://github.com/lgsinnovations/node-dbus-network-manager
Interface to network manager DBUS interface
https://github.com/lgsinnovations/node-dbus-network-manager
Last synced: over 1 year ago
JSON representation
Interface to network manager DBUS interface
- Host: GitHub
- URL: https://github.com/lgsinnovations/node-dbus-network-manager
- Owner: LGSInnovations
- License: apache-2.0
- Created: 2017-08-31T22:50:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T23:57:50.000Z (about 6 years ago)
- Last Synced: 2025-04-07T23:16:08.695Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 6
- Watchers: 11
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .gitlab/CODEOWNERS
Awesome Lists containing this project
README
# DEPRECATED
This package is no longer maintained.
---
# dbus-network-manager
A node.js API to interact with NetworkManager via DBus. This is currently extremely new and incomplete.
Here are a few example snippets. We could use some more documentation.
const nm = await require('dbus-network-manager').connect();
nm.on('DeviceAdded', dev => console.log("Device Added:", dev));
nm.on('DeviceRemoved', dev => console.log("Device Removed:", dev));
let dev = await nm.GetDeviceByIpIface('wlp4s0');
let stats = await dev.Statistics;
stats.on('PropertiesChanged', console.log);
console.log(await stats.getProperties());
stats.setProperty('RefreshRateMs', 100);
let settings = await nm.Settings.connect();
console.log(await settings.ListConnections());
settings.on('PropertiesChanged', console.log);
let connections = await settings.ListConnections();
console.log(await connections[0].GetSettings());