{"id":15289285,"url":"https://github.com/stefano-m/lua-connman_dbus","last_synced_at":"2025-04-13T09:24:28.405Z","repository":{"id":65587069,"uuid":"70006808","full_name":"stefano-m/lua-connman_dbus","owner":"stefano-m","description":"Get network information with Connman and DBus","archived":false,"fork":false,"pushed_at":"2024-10-03T14:27:31.000Z","size":50,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:01:31.291Z","etag":null,"topics":["connman","dbus","lua"],"latest_commit_sha":null,"homepage":"https://stefano-m.github.io/lua-connman_dbus/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefano-m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-04T21:12:45.000Z","updated_at":"2024-10-03T14:27:35.000Z","dependencies_parsed_at":"2023-01-30T18:25:12.213Z","dependency_job_id":null,"html_url":"https://github.com/stefano-m/lua-connman_dbus","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefano-m%2Flua-connman_dbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefano-m%2Flua-connman_dbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefano-m%2Flua-connman_dbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefano-m%2Flua-connman_dbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefano-m","download_url":"https://codeload.github.com/stefano-m/lua-connman_dbus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248689817,"owners_count":21146008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connman","dbus","lua"],"created_at":"2024-09-30T16:00:14.148Z","updated_at":"2025-04-13T09:24:28.367Z","avatar_url":"https://github.com/stefano-m.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get network information with Connman and DBus\n\nThis module provides a simple API to query\n[Connman](https://01.org/connman/)\nusing [DBus](http://dbus.freedesktop.org/).\n\n# Requirements\n\nIn addition to the requirements specified in the rockspec file, you need\nConnman (version 1.33 or higher) and DBus. Note that you may need permissions\nto access the Connman DBus interface.\n\n# Installation\n\n## Luarocks\n\nThis module can be installed with [Luarocks](http://luarocks.org/) by running\n\n    luarocks install connman_dbus\n\nUse the `--local` option in `luarocks` if you don't want or can't install it\nsystem-wide.\n\n## NixOS (flakes)\n\nIf you are on NixOS, you can install this package using nix flakes.\n\n# Example\n\nBelow is a small example of how to use the module:\n\n```lua\nconnman = require(\"connman_dbus\")\nprint(connman.OfflineMode) -- e.g. true\n\nactive_service = connman:GetServices()[1]\nprint(active_service[1])\n-- e.g. \"/net/connman/service/wifi_12341234_abcdabcd_managed_psk\"\nactive_service_properties = active_service[2]\nprint(active_service_service.Type)\n-- e.g. \"wifi\"\nprint(active_service_service.State)\n-- e.g. \"online\"\n\nactive_service = connman.services[1]\nprint(active_service.object_path)\n-- e.g. \"/net/connman/service/wifi_12341234_abcdabcd_managed_psk\"\nassert(connman.services[active_service.object_path] == connman.services[1])\n-- true (assuming that the service priority has not changed)\nactive_service:Disconnect()\n\ntech = connman:GetTechnologies()[1]\nprint(tech[1])\n-- e.g. \"/net/connman/technology/ethernet\"\ntech_props = tech[2]\ntech_props.Name\n-- e.g. \"wired\"\ntech_props.Type\n-- e.g. \"ethernet\"\ntech_props.Powered\n-- e.g. true\n```\n\n# Documentation\n\nThe documentation of this module is built using [LDoc](https://stevedonovan.github.io/ldoc/).\nA copy of the documentation is already provided in the `doc` folder,\nbut you can build it from source by running `ldoc .` in the root of the repository.\n\n# Limitations\n\nThis module exposes the [Connman Manager\nAPI](https://git.kernel.org/pub/scm/network/connman/connman.git/tree/doc/manager-api.txt)\nand the [Connman Service\nAPI](https://git.kernel.org/pub/scm/network/connman/connman.git/tree/doc/service-api.txt). This\nis enough to get information about services and technologies, but does not\nallow one to implement a fully functional client.\n\n# Contributing\n\nFeel free to contribute with pull requests and issue reports, but be advised\nthat this project is developed in the author's own spare time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefano-m%2Flua-connman_dbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefano-m%2Flua-connman_dbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefano-m%2Flua-connman_dbus/lists"}