small changes

This commit is contained in:
Death916 2024-02-27 12:40:43 -08:00
parent 7a88aeba0f
commit c89974bc19
3 changed files with 5 additions and 3 deletions

View file

@ -90,7 +90,7 @@ def main():
#start timer for news
news_timer = QTimer()
news_timer.timeout.connect(news_obj.get_news)
news_timer.setInterval(600000) # 10 minutes
news_timer.setInterval(300000) # 10 minutes #changed to 5 mins
news_timer.start()
@ -102,6 +102,6 @@ def main():
if __name__ == "__main__":
main()
#TODO: add weather to qml
#TODO: move weather to own file

View file

@ -42,6 +42,7 @@ class news():
self._news_dict_length += 1
#for i in self._news_dict:
# print(self._news_dict[i])
print("news updated")
return self._news_dict

View file

@ -34,6 +34,7 @@ class Weather(QObject):
weather_context = engine.rootContext()
weather_context.setContextProperty("weatherImage", image)
driver.quit()
print("weather updated")
self.weatherUpdated.emit(image)
return screenshot_path