From d62d80fb16af379ef7b7f451d0b72ee2145b960c Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Thu, 27 Feb 2025 14:52:25 +0100 Subject: [PATCH] Changed hostname value. --- meshbook.py | 2 +- os_categories.json | 18 ++++++++++++++++++ templates/meshcentral.conf.template | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 os_categories.json diff --git a/meshbook.py b/meshbook.py index c878baa..61bca1d 100644 --- a/meshbook.py +++ b/meshbook.py @@ -66,7 +66,7 @@ async def init_connection(credentials: dict) -> meshctrl.Session: ''' session = meshctrl.Session( - credentials['websocket_url'], + credentials['hostname'], user=credentials['username'], password=credentials['password'] ) diff --git a/os_categories.json b/os_categories.json new file mode 100644 index 0000000..9213310 --- /dev/null +++ b/os_categories.json @@ -0,0 +1,18 @@ +{ + "Linux": { + "Debian": [ + "Debian GNU/Linux 12 (bookworm)", + "Debian GNU/Linux 11 (bullseye)" + ], + "Ubuntu": [ + "Ubuntu 24.04.1 LTS", + "Ubuntu 22.04.5 LTS", + "Ubuntu 20.04.6 LTS" + ] + }, + "MacOS": { + "Sequoia": [ + "macOS 15.0.1" + ] + } +} \ No newline at end of file diff --git a/templates/meshcentral.conf.template b/templates/meshcentral.conf.template index dc1cee3..c8c2ffd 100644 --- a/templates/meshcentral.conf.template +++ b/templates/meshcentral.conf.template @@ -1,4 +1,4 @@ [meshcentral-account] -websocket_url = +hostname = username = password = \ No newline at end of file