4 Commits

Author SHA1 Message Date
cd3688b0b3 Rename tasmotonov.ui to tasmotonov-gui.ui 2025-05-17 15:01:19 +02:00
774d2a1e83 Added license info to the gui script 2025-05-17 15:00:15 +02:00
58366036a2 Added screenshots to the README.md file 2025-05-17 14:55:02 +02:00
47c498dddb Made tab titles more accurate 2025-05-17 14:54:48 +02:00
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">