80 Commits

Author SHA1 Message Date
Sebastian Lenzlinger
f22b06ad14 Small corrections to list_interfaces(). Also make pyproject.toml usable. 2024-06-12 16:51:17 +02:00
Sebastian Lenzlinger
5196c2e129 Ensure no arguments are passed to list_interfaces() 2024-06-12 16:47:45 +02:00
Sebastian Lenzlinger
2b782bbdca Cleanup 2024-06-12 16:04:32 +02:00
Sebastian Lenzlinger
e5ece09c33 Clean Slate (or not) 2024-06-12 13:31:49 +02:00
Sebastian Lenzlinger
f82b45a91e Add journal entry for 25. May 2024. 2024-05-15 18:17:20 +02:00
Sebastian Lenzlinger
0751e26172 Rename folder to use new date format. 2024-05-15 18:16:41 +02:00
Sebastian Lenzlinger
7b2ef173eb Introduce environment variable 'IOTTB_HOME' to represent the root of the iottb database tree. 2024-05-15 17:17:23 +02:00
Sebastian Lenzlinger
6a7ab04e1c Rename journal files into more ISO friendly date format for better sorting. 2024-05-15 17:14:58 +02:00
Sebastian Lenzlinger
7eff5ef555 Update gitignore 2024-05-08 19:13:01 +02:00
Sebastian Lenzlinger
880bbdf50c Journal entry on setting up wifi. Resource for implementing the functionality into iottb. 2024-05-08 19:09:43 +02:00
Sebastian Lenzlinger
18cdd1dd46 Add help text to subcommands.
This way they appear better in the console.
2024-05-08 03:53:17 +02:00
Sebastian Lenzlinger
3bbbbe52c0 Add command to list available NIC names. 2024-05-08 03:48:35 +02:00
Sebastian Lenzlinger
1f43b11177 Remove deprecated import from archive. 2024-05-08 03:47:09 +02:00
Sebastian Lenzlinger
8b7ad05ad6 Ensure tcpdump is installed before running capture command. 2024-05-08 03:45:55 +02:00
Sebastian Lenzlinger
7badc83530 SYNC May, 8th 2024. 2024-05-08 03:25:41 +02:00
Sebastian Lenzlinger
5c031d8157 Merge branch 'refs/heads/dev-logger'
# Conflicts:
#	code/iottb/logger.py
#	code/iottb/models/capture_metadata_model.py
#	code/iottb/models/device_metadata_model.py
#	code/iottb/subcommands/add_device.py
2024-05-08 03:11:23 +02:00
Sebastian Lenzlinger
7465819ef4 Remove unused file from main branch 2024-05-08 03:08:41 +02:00
Sebastian Lenzlinger
901133c84c Merge branch 'refs/heads/cli-dev'
# Conflicts:
#	.idea/workspace.xml
#	code/iottb/logger.py
#	code/iottb/models/capture_metadata_model.py
#	code/iottb/models/device_metadata_model.py
#	code/iottb/subcommands/add_device.py
2024-05-08 03:07:16 +02:00
Sebastian Lenzlinger
64788a1997 Move unused modules into archive. 2024-05-08 03:06:20 +02:00
Sebastian Lenzlinger
7ffbdda7ea Add test case to add-device subcommand 2024-05-08 02:56:49 +02:00
Sebastian Lenzlinger
2e95bd2fd2 Fix places where quote replacement lead to issues. 2024-05-08 02:52:37 +02:00
Sebastian Lenzlinger
e569eb3e5b Replace all double quotes strings with single quoted strings. 2024-05-08 02:46:14 +02:00
Sebastian Lenzlinger
266a669e5e Add test for device metadata file creation and fixes until test passed. 2024-05-08 02:36:07 +02:00
Sebastian Lenzlinger
a21312ee61 Corrections 2024-05-08 01:38:53 +02:00
Sebastian Lenzlinger
73771be70d Add preliminary implementation to load DeviceMetadata from data. 2024-05-08 00:52:25 +02:00
Sebastian Lenzlinger
27ae736f11 Implement custom to_json function for DeviceMetadata 2024-05-08 00:40:29 +02:00
Sebastian Lenzlinger
cb1ad33cae Implement custom to_json function for CaptureMetadata 2024-05-08 00:40:17 +02:00
Sebastian Lenzlinger
2681ee9a8e Refactor function name to reflect that not using pydantic anymore. 2024-05-08 00:31:25 +02:00
Sebastian Lenzlinger
799414ad39 Remove getters and setters from DeviceMetadata class and change dependencies to use field access. 2024-05-08 00:03:18 +02:00
Sebastian Lenzlinger
6b73530943 Remove getters and setters from CaptureMetadata class and refactor dependencies to use field access. 2024-05-08 00:02:08 +02:00
Sebastian Lenzlinger
2efa0d9e7b Merge remote-tracking branch 'refs/remotes/origin/main' 2024-05-07 23:04:59 +02:00
Sebastian Lenzlinger
798a32b23e Remove ignored file from git. 2024-05-07 23:01:40 +02:00
Sebastian Lenzlinger
00aa20a8af Merge branch 'dev-logger' into 'main'
Factor out pydantic.

See merge request dmi-pet/bsc-msc/2024-bsc-sebastian-lenzlinger!7
2024-05-07 20:50:15 +00:00
Sebastian Lenzlinger
11e2c356fa Factor out pydantic. 2024-05-07 22:48:53 +02:00
Sebastian Lenzlinger
95426e0baa Merge branch 'cli-dev' into 'main'
Refactor and add Logger

See merge request dmi-pet/bsc-msc/2024-bsc-sebastian-lenzlinger!6
2024-05-07 19:24:56 +00:00
Sebastian Lenzlinger
347d43dcef Refactor and add Logger 2024-05-07 19:24:56 +00:00
Sebastian Lenzlinger
ece15a82b0 Merge branch 'main' into cli-dev
# Conflicts:
#	.idea/workspace.xml
#	code/iottb/__main__.py
#	code/iottb/utils/capture_metadata_utils.py
#	code/iottb/utils/device_metadata_utils.py
#	code/iottb/utils/tcpdump_utils.py
2024-05-07 21:21:02 +02:00
Sebastian Lenzlinger
de88c05349 Prepare main branch for rebase 2024-05-07 21:19:04 +02:00
Sebastian Lenzlinger
7b27ee7fa9 Introduce logger.py module. 2024-05-07 19:55:58 +02:00
Sebastian Lenzlinger
577ac9e5cf UNTESTED REFACTORING:
Move more functionality into Metadata Model classes to ensure data is available and better passable between functions.
2024-05-07 18:58:54 +02:00
Sebastian Lenzlinger
ec08bf71ab Refactor subcommands, config etc. 2024-05-05 17:54:21 +02:00
Sebastian Lenzlinger
7e3e101987 Refactor various names. 2024-05-05 16:24:58 +02:00
Sebastian Lenzlinger
27de5b4587 SYNC 2024-05-04 13:51:55 +02:00
Sebastian Lenzlinger
822b49ed8b Merge branch 'wifi' into 'main'
Add bash file with functions to enable and disable monitor mode using either...

See merge request dmi-pet/bsc-msc/2024-bsc-sebastian-lenzlinger!5
2024-05-02 17:15:51 +00:00
Sebastian Lenzlinger
b0a3fd951d Add bash file with functions to enable and disable monitor mode using either... 2024-05-02 17:15:51 +00:00
Sebastian Lenzlinger
5cc7e2bae0 Setup testing structure 2024-05-02 06:01:05 +02:00
Sebastian Lenzlinger
f06aeda0c6 Start tracking development config files. 2024-05-02 04:34:25 +02:00
Sebastian Lenzlinger
9630a79e52 Update gitignore again. 2024-05-02 04:33:50 +02:00
Sebastian Lenzlinger
2ee3a06f09 Add test module. 2024-05-02 04:32:40 +02:00
Sebastian Lenzlinger
d3a08ba484 Merge branch 'devel' into 'main'
Merge after rebase

See merge request dmi-pet/bsc-msc/2024-bsc-sebastian-lenzlinger!4
2024-05-02 02:26:11 +00:00