Skip to content

Commit 0a460fb

Browse files
Create HAD-PLus.py
Initial version of this script.
0 parents  commit 0a460fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

HAD-PLus.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import webview
2+
3+
# Define the URL for your Home Assistant dashboard
4+
url = 'http://homeassistant.local:8123/'
5+
6+
# Create the window and set both it's size and the coordinates of the top left of the window
7+
# Line 12 is just the name of the script
8+
# Line 14 is where you set the window size and it's location on your desktop
9+
# Line 15 allows you to toggle window frames, if the window is resizable and if it is forced to be on top
10+
11+
window = webview.create_window(
12+
'Home Assistant',
13+
url,
14+
x=-1, y=-1, width=2583, height=1449,
15+
frameless=True, resizable=False, on_top=False
16+
)
17+
18+
# Start the webview with session persistence so you do not need to re-login every time
19+
webview.start(private_mode=False)

0 commit comments

Comments
 (0)