Skip to content

Commit

Permalink
SpeedTest Feature Added
Browse files Browse the repository at this point in the history
  • Loading branch information
adityajha2005 committed May 27, 2024
1 parent 363c7c6 commit 23d0c07
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions daisy_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import wolframalpha
from plyer import notification
from pygame import mixer
import speedtest


for(i) in range(3):
Expand Down Expand Up @@ -158,8 +159,13 @@ def convert_to_datetime(alarm_time_str):
pyautogui.typewrite(query, interval=0.2)
pyautogui.press("enter")
speak(f"Opening {query}")



elif "internet speed" in query:
wifi = speedtest.Speedtest()
download_speed = wifi.download()/1048576
upload_speed = wifi.upload()/1048576
speak(f"Download speed is {download_speed} Mbps and Upload speed is {upload_speed} Mbps")
print(f"Download speed is {download_speed} Mbps and Upload speed is {upload_speed} Mbps")



Expand Down

0 comments on commit 23d0c07

Please sign in to comment.