mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-14 12:43:15 +02:00
Weather view
Better weather view
This commit is contained in:
parent
471f6a9fed
commit
f29ae0ed9b
3 changed files with 6 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ from nodeconnection import *
|
|||
from terminal_matrix.matrix import *
|
||||
|
||||
|
||||
version = "0.7.2"
|
||||
version = "0.7.3"
|
||||
|
||||
def sysinfo(): #Cpu and memory usage
|
||||
print(" \033[0;37;40m----------------------")
|
||||
|
|
|
|||
8
ppi.py
8
ppi.py
|
|
@ -76,14 +76,14 @@ def wttrDataV1():
|
|||
selectData2 = input("Insert your data \033[1;31;40m*\033[0;37;40m : ")
|
||||
lang = input("Insert your language: ")
|
||||
unit = input("Insert your metric units: ")
|
||||
list = "curl " + lang + ".wttr.in/" + selectData2 + "?" + unit
|
||||
list = "curl '" + lang + ".wttr.in/" + selectData2 + "?F&" + unit + "'"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
input("Continue...")
|
||||
else:
|
||||
list = "curl wttr.in/" + selectData
|
||||
list = "curl wttr.in/" + selectData + "?F"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
|
|
@ -141,14 +141,14 @@ def wttrDataV2():
|
|||
selectData2 = input("Insert your data \033[1;31;40m*\033[0;37;40m : ")
|
||||
lang = input("Insert your language: ")
|
||||
unit = input("Insert your metric units: ")
|
||||
list = "curl 'v2.wttr.in/" + selectData2 + "?" + unit + "&lang=" + lang + "'"
|
||||
list = "curl 'v2.wttr.in/" + selectData2 + "?" + unit + "&F&lang=" + lang + "'"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
input("Continue...")
|
||||
else:
|
||||
list = "curl v2.wttr.in/" + selectData
|
||||
list = "curl v2.wttr.in/" + selectData + "?F"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
|
|
|
|||
2
ver.txt
2
ver.txt
|
|
@ -1 +1 @@
|
|||
{"version":"0.7.2"}
|
||||
{"version":"0.7.3"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue