mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-09 20:31:10 +00:00
add gitignore and reqs
This commit is contained in:
parent
a56da58b59
commit
64425c66b7
3 changed files with 14 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.venv
|
||||
13
main.py
13
main.py
|
|
@ -1 +1,12 @@
|
|||
print("hello lego!")
|
||||
import psutil
|
||||
|
||||
|
||||
def get_temperatures():
|
||||
sensors = psutil.sensors_temperatures()
|
||||
|
||||
for k in sensors:
|
||||
print(f"{k}: {sensors[k]}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
get_temperatures()
|
||||
|
|
|
|||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
psutil==5.9.8
|
||||
Loading…
Add table
Add a link
Reference in a new issue