Compare commits

...

4 Commits

5 changed files with 25 additions and 3 deletions

View File

@ -10,6 +10,10 @@ Maybe it's straightforward or obvious, but just for completeness: the name comes
1. The direct bond to tasmota (written for its "API" if one can call the HTTP endpoints an API)
2. The ability to turn on and off tasmota devices ("on" and "off" pronounced directly one after the other sounds (a bit) like "onov")
## Screenshots
![Tab 1 of the GUI](assets/gui_tab1.png)
![Tab 2 of the GUI](assets/gui_tab1.png)
## CLI Usage

BIN
assets/gui_tab1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

BIN
assets/gui_tab2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -1,5 +1,23 @@
#!/usr/bin/python3
"""
Tasmotonov GUI - A simple Qt wrapper around the tasmotonov.py script
Copyright (C) 2025 Benjamin Burkhardt
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import sys
import tasmotonov
import configparser
@ -124,7 +142,7 @@ def select_toggle():
if __name__ == "__main__":
app = QApplication(sys.argv)
ui_file_name = "tasmotonov.ui"
ui_file_name = "tasmotonov_gui.ui"
ui_file = QFile(ui_file_name)
if not ui_file.open(QIODevice.ReadOnly):
print(f"Cannot open {ui_file_name}: {ui_file.errorString()}")

View File

@ -40,7 +40,7 @@
</property>
<widget class="QWidget" name="tab1_from_file">
<attribute name="title">
<string>Bulk From File</string>
<string>From File</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_2">
<item row="8" column="0">
@ -129,7 +129,7 @@
</widget>
<widget class="QWidget" name="tab2_from_inline">
<attribute name="title">
<string>Bulk From Inline</string>
<string>From Inline</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="1">