From f29ae0ed9ba8df2fbb4fa10ebfb085e1193bb9d7 Mon Sep 17 00:00:00 2001 From: curly60e <55191248+curly60e@users.noreply.github.com> Date: Sun, 20 Sep 2020 19:52:24 -0300 Subject: [PATCH] Weather view Better weather view --- PyBlock.py | 2 +- ppi.py | 8 ++++---- ver.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PyBlock.py b/PyBlock.py index 0fdac4f..f606f8e 100644 --- a/PyBlock.py +++ b/PyBlock.py @@ -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----------------------") diff --git a/ppi.py b/ppi.py index 2f04818..f467ae3 100644 --- a/ppi.py +++ b/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() diff --git a/ver.txt b/ver.txt index 531fde5..76257fe 100644 --- a/ver.txt +++ b/ver.txt @@ -1 +1 @@ -{"version":"0.7.2"} +{"version":"0.7.3"}