Skip to content

Commit

Permalink
documentation and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
varkenvarken committed Jul 10, 2022
1 parent 2031bc0 commit d8ac756
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "mkdocs",
"type": "shell",
"command": "PYTHONPATH=`pwd` mkdocs gh-deploy --force"
}
]
}
27 changes: 21 additions & 6 deletions pylnlib/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,31 @@
#
# License: GPL 3, see file LICENSE
#
# Version: 20220626170320
# Version: 20220710112411

"""
Module to allow pylnlib to be invoked as a module.
Example:
```
python -m pylnlib
```
If invoked this way, it will start listening for data on a serial interface
and will report any incoming messages. Incoming messages related to unknown
slots, switches or sensors will trigger outgoing status request messages.
It can both capture and replay messages. For more info run it with the -- help option
```
python -m pylnlib --help
```
"""

import argparse
import sys
import time
from threading import Thread
from time import sleep

from .Interface import Interface
from .Scrollkeeper import Scrollkeeper
from .Utils import Args, createInterface, createScrollkeeper, reporter

if __name__ == "__main__":
Expand Down

0 comments on commit d8ac756

Please sign in to comment.