wcurrent and daily weather added

This commit is contained in:
Neythen 2021-06-07 21:10:38 +01:00
parent 74ae981465
commit 7ab6a0a24b
9 changed files with 15 additions and 14 deletions

View File

@ -1,3 +1,3 @@
symbol,name,base,current,24hr change
BTC,bitcoin,usd,35686,-0.19855074369701814
ETH,ethereum,gbp,1923.88,1.8532746746620032
BTC,bitcoin,usd,35668,-0.37786061371520613
ETH,ethereum,gbp,1923.94,1.8341326495198176

1 symbol name base current 24hr change
2 BTC bitcoin usd 35686 35668 -0.19855074369701814 -0.37786061371520613
3 ETH ethereum gbp 1923.88 1923.94 1.8532746746620032 1.8341326495198176

View File

@ -1 +1 @@
{"main_weather": "Clouds", "description": "overcast clouds", "temp": 18.72, "min_temp": 15.77, "max_temp": 20.06, "feels_like": 18.42, "humidity": 68, "clouds": 100, "wind_speed": 2.44, "wind_direction": 228, "visibility": 10000, "uv": 0}
{"main_weather": "Clouds", "description": "overcast clouds", "temp": 18.69, "min_temp": 15.77, "max_temp": 20.06, "feels_like": 18.44, "humidity": 70, "clouds": 100, "wind_speed": 2.44, "wind_direction": 228, "visibility": 10000, "uv": 0}

View File

@ -1 +1 @@
[{"main_weather": "Clouds", "description": "few clouds", "min_temp": 12.92, "max_temp": 22.22}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 12.68, "max_temp": 22.5}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": 13.04, "max_temp": 23.87}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 14.72, "max_temp": 24.47}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 15.51, "max_temp": 25.8}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 16.6, "max_temp": 28.11}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": 16.35, "max_temp": 27.24}, {"main_weather": "Rain", "description": "light rain", "min_temp": 17.54, "max_temp": 28.74}]
[{"main_weather": "Clouds", "description": "few clouds", "min_temp": 12.92, "max_temp": 22.21}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 12.67, "max_temp": 22.49}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": 13.03, "max_temp": 23.86}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 14.72, "max_temp": 24.46}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 15.5, "max_temp": 25.79}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 16.59, "max_temp": 28.09}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": 16.34, "max_temp": 27.22}, {"main_weather": "Rain", "description": "light rain", "min_temp": 17.53, "max_temp": 28.72}]

View File

@ -1 +1 @@
07/06/2021 16:02:07
07/06/2021 16:09:41

1 07/06/2021 16:02:07 07/06/2021 16:09:41

View File

@ -1,4 +1,4 @@
name,current,opening
MSFT,253.81,249.98
NFLX,494.66,492.917
NFLX,494.66,492.9169
GOOG,2466.09,2451.32

1 name current opening
2 MSFT 253.81 249.98
3 NFLX 494.66 492.917 492.9169
4 GOOG 2466.09 2451.32

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 B

After

Width:  |  Height:  |  Size: 747 B

BIN
final.ppm

Binary file not shown.

Binary file not shown.

View File

@ -156,7 +156,8 @@ class StockTicker():
def scrollImageTransition(self, image_files, offset_x = 0, offset_y = 0, stocks = True):
# use two image files and switch between them with a seemless transition
current_img = 1
image1 = self.openImage(image_files[0])
image2 = self.openImage(image_files[1])
kill = False
while True:
@ -165,8 +166,8 @@ class StockTicker():
if stocks:
update_process = Process(target = self.getFullStockImage, args = (1,))
update_process.start()
image1 = self.openImage(image_files[0])
image2 = self.openImage(image_files[1])
image1 = self.openImage(image_files[0])
image2 = self.openImage(image_files[1])
elif current_img == 2:
@ -174,8 +175,8 @@ class StockTicker():
update_process = Process(target = self.getFullStockImage, args = (2,))
update_process.start()
image1 = self.openImage(image_files[1])
image2 = self.openImage(image_files[0])
image1 = self.openImage(image_files[1])
image2 = self.openImage(image_files[0])
img_width, img_height = image1.size
@ -204,9 +205,9 @@ class StockTicker():
except KeyboardInterrupt:
sys.stdout.flush()
pass
image1.close()
image2.close()
if stocks:
image1.close()
image2.close()
if kill: break