Skip to content

Commit 1e81d66

Browse files
committed
move to python 3.10; temporally set theme auto as dark
1 parent 668abaa commit 1e81d66

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A simple and badly-written program to display basic information of your HUAWEI Mobile Wifi 3 Pro (may support similar device), along with some useful features not provided by the official app or web interface.
44

5+
![](images/screenshot1.png)
6+
57
## Features
68

79
- 🔋 Receive notification when your device is at low battery level or finish charging, threshold customizable
@@ -27,6 +29,8 @@ A simple and badly-written program to display basic information of your HUAWEI M
2729
- Current Day Duration
2830
- Data Limit
2931

32+
- 📊 Record battery history, and display with a graph
33+
3034
## How it works
3135

3236
The program posts http request to get information from the router and parse the result.
@@ -35,7 +39,7 @@ Currently, the program is unable to perform password authentication due to lack
3539

3640
## TODO
3741

38-
- [ ] Record battery level
42+
- [x] Record battery level
3943
- [ ] Password authentication
4044

4145
## Credits

app/components/battery_history_card.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ def __init__(self, battery_history_dic, parent=None):
2929
self.background_color_dic = {
3030
"Theme.DARK": (0.152941176, 0.152941176, 0.152941176, 1),
3131
"Theme.LIGHT": (0.847058824, 0.847058824, 0.847058824, 1),
32-
"Use system setting": (0.152941176, 0.152941176, 0.152941176, 1)
32+
"Theme.AUTO": (0.152941176, 0.152941176, 0.152941176, 1)
3333
}
3434

3535
self.front_color_dic = {
3636
"Theme.DARK": "white",
3737
"Theme.LIGHT": "black",
38-
"Use system setting": "white"
38+
"Theme.AUTO": "white"
3939
}
4040

4141
self.graphWidget = MplCanvas(self, dpi=100)

images/screenshot1.png

1.11 MB
Loading

requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coloredlogs==15.0.1
2+
matplotlib==3.8.0
3+
# notifypy==1.0.3.0
4+
notify-py
5+
PyQt5==5.15.10
6+
# PyQt5_sip==12.10.1
7+
PyQt_Fluent_Widgets==0.9.8
8+
Requests==2.31.0

0 commit comments

Comments
 (0)