Skip to content

Commit 9b6c48c

Browse files
committed
Merge branch 'master' of https://github.com/dabamos/openadms
2 parents 61e012b + 5de68dd commit 9b6c48c

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,23 @@ The current development version of OpenADMS is 0.5 (code name
2626
more information, please see https://www.dabamos.de/.
2727

2828
## Installation
29-
To run OpenADMS, clone the master branch, install the dependencies and execute
30-
`openadms.py`:
31-
29+
Before you can start OpenADMS, you have to clone the master branch and install
30+
all dependencies:
3231
```
3332
$ git clone https://github.com/dabamos/openadms.git
3433
$ cd openadms
3534
$ python3 -m pip install -U -r requirements.txt
36-
$ python3 openadms.py --config ./config/myconfig.json --with-mqtt-broker --debug
3735
```
36+
Run OpenADMS from the command line:
37+
```
38+
$ python3 openadms.py --config ./config/my_config.json --with-mqtt-broker --debug
39+
```
40+
OpenADMS also features a graphical launcher. At first, run `win_install.bat` on
41+
Microsoft Windows or install the dependencies manually:
42+
```
43+
$ python3 -m pip install Gooey
44+
```
45+
Execute `openadms-gui.pyw` to start the graphical launcher.
3846

3947
### Dependencies
4048
OpenADMS depends on the following Python libraries:
@@ -47,6 +55,9 @@ OpenADMS depends on the following Python libraries:
4755
* [pyserial](https://pypi.python.org/pypi/pyserial) (Python Software Foundation Licence)
4856
* [uptime](https://pypi.python.org/pypi/uptime) (BSD-2-Clause Licence)
4957

58+
The graphical launcher uses [Gooey](https://pypi.python.org/pypi/Gooey) (MIT
59+
Licence).
60+
5061
## Message Broker
5162
The MQTT protocol is used for the message exchange in OpenADMS. You can either
5263
use an external MQTT message broker, like
@@ -64,15 +75,13 @@ The configuration of OpenADMS is done by using a JSON-based text file, located
6475
in the directory `./config`. Please define modules, serial ports, sensors, and
6576
so on there. OpenADMS takes the file name of your custom configuration as an
6677
argument. For instance, run:
67-
6878
```
6979
$ python3 openadms.py --config ./config/myconfig.json --with-mqtt-broker --debug
7080
```
7181

7282
## Virtual Environment
7383
The Python tool `venv` can create a virtual Python environment for development
7484
(with `csh`/`tcsh` on Unix):
75-
7685
```
7786
$ python3 -m venv virtual-environment
7887
$ source ./virtual-environment/bin/activate.csh
@@ -89,4 +98,3 @@ the project website.
8998
## Licence
9099
OpenADMS is licenced under the [European Union Public
91100
Licence](https://joinup.ec.europa.eu/community/eupl/og_page/eupl) (EUPL) v1.1.
92-
File renamed without changes.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
executables = [
3333
Executable('openadms.py', base=base),
34-
Executable('openadmsw.pyw', base=base)
34+
Executable('openadms-gui.pyw', base=base)
3535
]
3636

3737
setup(name='OpenADMS',

win_make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
echo Creating executables with Python 3.6 ...
44

55
:: PyInstaller does not support Python 3.6 yet
6-
:: "C:\Program Files\Python\Python36-64\Scripts\pyinstaller-script.py" --clean --noconfirm --icon="res\img\dabamos.ico" --hidden-import "openadms" --hidden-import "module.database" --hidden-import "module.export" --hidden-import "module.linux" --hidden-import "module.notification" --hidden-import "module.port" --hidden-import "module.processing" --hidden-import "module.prototype" --hidden-import "module.schedule" --hidden-import "module.server" --hidden-import "module.totalstation" --hidden-import "module.virtual" openadmsw.pyw
6+
:: "C:\Program Files\Python\Python36-64\Scripts\pyinstaller-script.py" --clean --noconfirm --icon="res\img\dabamos.ico" --hidden-import "openadms" --hidden-import "module.database" --hidden-import "module.export" --hidden-import "module.linux" --hidden-import "module.notification" --hidden-import "module.port" --hidden-import "module.processing" --hidden-import "module.prototype" --hidden-import "module.schedule" --hidden-import "module.server" --hidden-import "module.totalstation" --hidden-import "module.virtual" openadms-gui.pyw
77

88
:: Using cx_Freeze instead ...
99
python setup.py build
1010

1111
echo Done.
12-
pause
12+
pause

0 commit comments

Comments
 (0)