Skip to content
Snippets Groups Projects
Commit dbff7fd2 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Add Readme and release to pypi

parent 9257a3e7
Branches
Tags v0.1.5
No related merge requests found
# bbbmon
A small python based CLI utility to monitor BigBlueButton-Usage.
## Installation
The easiest way to install bbbmon is to install it from the Python Package Index (PyPi). This project uses [python poetry](https://python-poetry.org/) for dependency management, so you could also run it without installing the package system wide, see instructions below.
## Install with pip3
```bash
sudo pip3 install bbbmon --upgrade
```
Then run with:
```bash
bbbmon
```
## Run with poetry (without pip)
Clone the repo:
```bash
git clone https://code.hfbk.net/bbb/bbbmon.git
```
Make sure you have poetry installed. Install instruction for poetry can be [found here](https://python-poetry.org/docs/#installation).
From inside the project directory run:
```bash
poetry install
```
Run bbbmon with:
```bash
poetry run bbbmon
```
For bbbmon to run you need to have a `bbbmon.properties` file at the path specified. In this file there should be your servers secret and the server URL. You can find this secret on your server in the file `/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties` (look for a line starting with `securitySalt=` and copy it to). If in doubt just follow the instructions the CLI gives you.
...@@ -300,6 +300,3 @@ def init_variables() -> Optional[Tuple[Secret, Url]]: ...@@ -300,6 +300,3 @@ def init_variables() -> Optional[Tuple[Secret, Url]]:
def main(): def main():
secret, bbb_url = init_variables() secret, bbb_url = init_variables()
print_overview(secret, bbb_url) print_overview(secret, bbb_url)
if __name__ == "__main__":
main()
\ No newline at end of file
[tool.poetry] [tool.poetry]
name = "bbbmon" name = "bbbmon"
version = "0.1.0" version = "0.1.5"
description = "A small CLI utility to monitor bbb usage" description = "A small CLI utility to monitor bbb usage"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"] authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
license = "MIT" maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"]
license = "GPLv3"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: Free for non-commercial use",
"License :: Free For Educational Use",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Topic :: System :: Monitoring",
"Topic :: Communications :: Conferencing"
]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.5" python = "^3.5"
...@@ -14,8 +28,7 @@ appdirs = "^1.4.3" ...@@ -14,8 +28,7 @@ appdirs = "^1.4.3"
pytest = "^5.2" pytest = "^5.2"
[tool.poetry.scripts] [tool.poetry.scripts]
# bbbmon = { path = "bbbmon.py" } bbbmon = "bbbmon.bbbmon:main"
run = "bbbmon.bbbmon:main"
[build-system] [build-system]
requires = ["poetry>=0.12"] requires = ["poetry>=0.12"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment