professional speed fix
This commit is contained in:
commit
65d41086a8
@ -587,7 +587,7 @@ if __name__ == '__main__':
|
||||
|
||||
|
||||
|
||||
update_frequencies = {'stocks':1, 'crypto':5, 'forex':60, 'news':60, 'weather': 120, 'sports': 1440} #minutes
|
||||
update_frequencies = {'stocks':1, 'crypto':5, 'forex':60, 'news':120, 'weather': 120, 'sports': 1440} #minutes
|
||||
|
||||
NY_zone = pytz.timezone('America/New_York')
|
||||
CET_zone = pytz.timezone('EST')
|
||||
|
File diff suppressed because one or more lines are too long
@ -1254,11 +1254,11 @@ class StockTicker():
|
||||
arrow, change = self.getArrow(change)
|
||||
|
||||
percent_change = '%.2f' % abs(float(info['percent_change'])) + '%'
|
||||
point_change = str(abs(change))
|
||||
point_change = '%.2f' % abs(change)
|
||||
|
||||
print(percent_change, point_change)
|
||||
|
||||
current = str(float(info['current'])) #TEXT
|
||||
current = '%.2f' % float(info['current']) #TEXT
|
||||
|
||||
|
||||
|
||||
@ -1338,10 +1338,10 @@ class StockTicker():
|
||||
if all_stocks_settings["percent"]:
|
||||
change = '%.2f' % abs(float(info['percent_change'])) + '%'
|
||||
else:
|
||||
change = str(abs(change))
|
||||
change = '%.2f' % abs(change)
|
||||
|
||||
|
||||
current = str(float(info['current'])) #TEXT
|
||||
current = '%.2f' % float(info['current']) #TEXT
|
||||
midFrame = self.textToImageProf(ticker, current, change, arrow, font=ImageFont.load("./fonts/6x10.pil")) #IMAGE THE TEXT
|
||||
|
||||
if all_stocks_settings['logos']:
|
||||
|
@ -715,11 +715,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if stocks_settings.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if stocks_settings.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if stocks_settings.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -787,11 +787,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if stocks_settings.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if stocks_settings.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if stocks_settings.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -1185,11 +1185,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if crypto_settings.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if crypto_settings.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if crypto_settings.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -1257,11 +1257,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if crypto_settings.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if crypto_settings.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if crypto_settings.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -1657,11 +1657,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if forex_settings.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if forex_settings.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if forex_settings.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -1729,11 +1729,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if forex_settings.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if forex_settings.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if forex_settings.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -2131,11 +2131,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if current_weather.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if current_weather.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if current_weather.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -2203,11 +2203,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if current_weather.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if current_weather.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if current_weather.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -2281,9 +2281,9 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Celsius</option>
|
||||
<option {%if current_weather.temp == 'celsius' %} selected {% endif %}>Celsius</option>
|
||||
|
||||
<option>Fahrenheit</option>
|
||||
<option {%if current_weather.temp == 'fahrenheit' %} selected {% endif %}>Fahrenheit</option>
|
||||
|
||||
|
||||
|
||||
@ -2317,9 +2317,9 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Miles/hour</option>
|
||||
<option {%if current_weather.wind_speed == 'miles/hour' %} selected {% endif %}>Miles/hour</option>
|
||||
|
||||
<option>Kilometers/hour</option>
|
||||
<option {%if current_weather.wind_speed == 'kilometers/hour' %} selected {% endif %}>Kilometers/hour</option>
|
||||
|
||||
<option></option>
|
||||
|
||||
@ -2555,11 +2555,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if daily_weather.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if daily_weather.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if daily_weather.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -2627,11 +2627,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if daily_weather.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if daily_weather.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if daily_weather.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -2705,9 +2705,9 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Celsius</option>
|
||||
<option {%if daily_weather.temp == 'celsius' %} selected {% endif %}>Celsius</option>
|
||||
|
||||
<option>Fahrenheit</option>
|
||||
<option {%if daily_weather.temp == 'fahrenheit' %} selected {% endif %}>Fahrenheit</option>
|
||||
|
||||
|
||||
|
||||
@ -2741,9 +2741,9 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Miles/hour</option>
|
||||
<option {%if daily_weather.wind_speed == 'miles/hour' %} selected {% endif %}>Miles/hour</option>
|
||||
|
||||
<option>Kilometers/hour</option>
|
||||
<option {%if daily_weather.wind_speed == 'kilometers/hour' %} selected {% endif %}>Kilometers/hour</option>
|
||||
|
||||
<option></option>
|
||||
|
||||
@ -3009,11 +3009,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if news_settings.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if news_settings.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if news_settings.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3081,11 +3081,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if news_settings.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if news_settings.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if news_settings.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3119,23 +3119,23 @@
|
||||
|
||||
>
|
||||
|
||||
<option>United States</option>
|
||||
<option {%if news_settings.country == 'United States' %} selected {% endif %}>United States</option>
|
||||
|
||||
<option>Australia</option>
|
||||
<option {%if news_settings.country == 'Australia' %} selected {% endif %}>Australia</option>
|
||||
|
||||
<option>Canada</option>
|
||||
<option {%if news_settings.country == 'Canada' %} selected {% endif %}>Canada</option>
|
||||
|
||||
<option>Great Britain</option>
|
||||
<option {%if news_settings.country == 'Great Britain' %} selected {% endif %}>Great Britain</option>
|
||||
|
||||
<option>New Zealand</option>
|
||||
<option {%if news_settings.country == 'New Zealand' %} selected {% endif %}>New Zealand</option>
|
||||
|
||||
<option>Ireland</option>
|
||||
<option {%if news_settings.country == 'Ireland' %} selected {% endif %}>Ireland</option>
|
||||
|
||||
<option>Singapore</option>
|
||||
<option {%if news_settings.country == 'Singapore' %} selected {% endif %}>Singapore</option>
|
||||
|
||||
<option>South Africa</option>
|
||||
<option {%if news_settings.country == 'South Africa' %} selected {% endif %}>South Africa</option>
|
||||
|
||||
<option>Worldwide</option>
|
||||
<option {%if news_settings.country == 'Worldwide' %} selected {% endif %}>Worldwide</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3152,6 +3152,17 @@
|
||||
value=""
|
||||
|
||||
id="flexCheckChecked30"
|
||||
|
||||
{%
|
||||
|
||||
if
|
||||
|
||||
news_settings.use_country%}
|
||||
|
||||
checked
|
||||
|
||||
{%endif%}
|
||||
|
||||
|
||||
/>
|
||||
|
||||
@ -3185,19 +3196,19 @@
|
||||
|
||||
>
|
||||
|
||||
<option>General</option>
|
||||
<option {%if news_settings.category == 'General' %} selected {% endif %}>General</option>
|
||||
|
||||
<option>Business</option>
|
||||
<option {%if news_settings.category == 'Business' %} selected {% endif %}>Business</option>
|
||||
|
||||
<option>Entertainment</option>
|
||||
<option {%if news_settings.category == 'Entertainment' %} selected {% endif %}>Entertainment</option>
|
||||
|
||||
<option>Health</option>
|
||||
<option {%if news_settings.category == 'Health' %} selected {% endif %}>Health</option>
|
||||
|
||||
<option>Science</option>
|
||||
<option {%if news_settings.category == 'Science' %} selected {% endif %}>Science</option>
|
||||
|
||||
<option>Sports</option>
|
||||
<option {%if news_settings.category == 'Sports' %} selected {% endif %}>Sports</option>
|
||||
|
||||
<option>Technology</option>
|
||||
<option {%if news_settings.category == 'Technology' %} selected {% endif %}>Technology</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3219,7 +3230,7 @@
|
||||
|
||||
if
|
||||
|
||||
news_settings.title%}
|
||||
news_settings.use_category%}
|
||||
|
||||
checked
|
||||
|
||||
@ -3255,15 +3266,15 @@
|
||||
|
||||
>
|
||||
|
||||
<option>10</option>
|
||||
<option {%if news_settings.num_headlines == '10' %} selected {% endif %}>10</option>
|
||||
|
||||
<option>15</option>
|
||||
<option {%if news_settings.num_headlines == '15' %} selected {% endif %}>15</option>
|
||||
|
||||
<option>20</option>
|
||||
<option {%if news_settings.num_headlines == '20' %} selected {% endif %}>20</option>
|
||||
|
||||
<option>25</option>
|
||||
<option {%if news_settings.num_headlines == '25' %} selected {% endif %}>25</option>
|
||||
|
||||
<option>30</option>
|
||||
<option {%if news_settings.num_headlines == '30' %} selected {% endif %}>30</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3521,11 +3532,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if upcoming_games.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if upcoming_games.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if upcoming_games.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3593,11 +3604,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if upcoming_games.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if upcoming_games.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if upcoming_games.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3823,11 +3834,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if past_games.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if past_games.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if past_games.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -3895,11 +3906,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if past_games.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if past_games.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if past_games.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -4125,11 +4136,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if live_games.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if live_games.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if live_games.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -4197,11 +4208,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if live_games.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if live_games.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if live_games.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -4423,11 +4434,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if team_stats.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if team_stats.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if team_stats.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -4495,11 +4506,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if team_stats.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if team_stats.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if team_stats.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -4771,11 +4782,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if image_settings.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if image_settings.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if image_settings.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -4843,11 +4854,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if image_settings.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if image_settings.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if image_settings.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -5137,11 +5148,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if GIF_settings.speed == 'medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if GIF_settings.speed == 'slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if GIF_settings.speed == 'fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -5209,11 +5220,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if GIF_settings.animation == 'down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if GIF_settings.animation == 'up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if GIF_settings.animation == 'continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -5499,11 +5510,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Medium</option>
|
||||
<option {%if message_settings.speed == 'Medium' %} selected {% endif %}>Medium</option>
|
||||
|
||||
<option>Slow</option>
|
||||
<option {%if message_settings.speed == 'Slow' %} selected {% endif %}>Slow</option>
|
||||
|
||||
<option>Fast</option>
|
||||
<option {%if message_settings.speed == 'Fast' %} selected {% endif %}>Fast</option>
|
||||
|
||||
</select>
|
||||
|
||||
@ -5571,11 +5582,11 @@
|
||||
|
||||
>
|
||||
|
||||
<option>Down</option>
|
||||
<option {%if message_settings.animation == 'Down' %} selected {% endif %}>Down</option>
|
||||
|
||||
<option>Up</option>
|
||||
<option {%if message_settings.animation == 'Up' %} selected {% endif %}>Up</option>
|
||||
|
||||
<option>Continuous</option>
|
||||
<option {%if message_settings.animation == 'Continuous' %} selected {% endif %}>Continuous</option>
|
||||
|
||||
</select>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user