File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -7,26 +7,26 @@ if ! type pip &> /dev/null; then
7
7
opkg update
8
8
opkg install python3-pip
9
9
fi
10
- pip install --force-reinstall /tmp/liboxide-0.0.1 -py3-none-any.whl
10
+ pip install --force-reinstall /tmp/liboxide-0.1.0 -py3-none-any.whl
11
11
endef
12
12
export SCRIPT
13
13
14
- dist/liboxide-0.0.1 .tar.gz : $(shell find liboxide -type f)
14
+ dist/liboxide-0.1.0 .tar.gz : $(shell find liboxide -type f)
15
15
python -m build --sdist
16
16
17
- dist/liboxide-0.0.1 -py3-none-any.whl : $(shell find liboxide -type f)
17
+ dist/liboxide-0.1.0 -py3-none-any.whl : $(shell find liboxide -type f)
18
18
python -m build --wheel
19
19
20
20
clean :
21
21
git clean --force -dX
22
22
23
- deploy : dist/liboxide-0.0.1 -py3-none-any.whl
24
- rsync dist/liboxide-0.
0.1 -py3-none-any.whl
[email protected] :/tmp
23
+ deploy : dist/liboxide-0.1.0 -py3-none-any.whl
24
+ rsync dist/liboxide-0.
1.0 -py3-none-any.whl
[email protected] :/tmp
25
25
26
26
install : deploy
27
27
echo -e
" $$ SCRIPT" | ssh
[email protected] bash -le
28
28
29
29
test : install
30
- cat test.py
| ssh
[email protected] /opt/bin/python
30
+ cat test.py
| ssh
[email protected] /opt/bin/python
-u
31
31
32
32
.PHONY : clean install test deploy
Original file line number Diff line number Diff line change @@ -21,4 +21,12 @@ liboxide.wifi.enable()
21
21
print (" Applications:" )
22
22
for name, app in liboxide.apps.applications.items():
23
23
print (f " { name} : { app.bin} " )
24
+
25
+ autoLock = liboxide.settings.get(" autoLock" )
26
+ print (" Automatically locking after {autoLock} minutes" )
27
+
28
+ print (f " Battery level: { liboxide.power.batteryLevel} " )
29
+ while True :
30
+ batteryLevel = liboxide.power.on.batteryLevelChanged()
31
+ print (f " Battery level: { batteryLevel} " )
24
32
```
Original file line number Diff line number Diff line change 18
18
print (f"Lockscreen App: { app .displayName } " )
19
19
autoLock = liboxide .settings .get ("autoLock" )
20
20
print (f"Automatic lock: { autoLock } minutes" )
21
- liboxide .wifi .scan (False )
22
- bss = liboxide .wifi .on .bssFound ()
23
- print (f"Found BSS for SSID: { bss .ssid } " )
21
+ print (f"Battery level: { liboxide .power .batteryLevel } " )
22
+ while True :
23
+ batteryLevel = liboxide .power .on .batteryLevelChanged ()
24
+ print (f"Battery level: { batteryLevel } " )
You can’t perform that action at this time.
0 commit comments