This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import requests | |
from plyer import notification | |
import datetime # Add this line | |
API_KEY = "XXXXXXXXXXXXXXXXXXXX" # Replace with your API Key from openweathermap | |
CITY = "XXXXX" # Replace City name | |
# INTERVAL_HOURS = 1 # Comment or remove this line | |
INTERVAL_MINUTES = 15 # New interval in minutes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from plyer import notification | |
# Interval in minutes for reminders | |
INTERVAL_MINUTES = 30 | |
def send_reminder(): | |
message = ( | |
"It's time to get up from your chair and stretch a bit. " | |
"Remember to take care of your health while working. 🚶♂️💪" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python -m pip install pynput | |
from pynput.keyboard import Key, Controller | |
import time | |
keyboard = Controller() | |
time.sleep(5) | |
words = ["Lorem Ipsum is simply dummy text of the printing and."] | |
for x in range(len(words)): |