Giter VIP home page Giter VIP logo

physics-notifier's Introduction

Physics Facts Notifier

Overview

This script sends a desktop notification with an interesting physics fact at regular intervals. It can use either a local file or an online source for the facts.

Prerequisites

  • Python 3.x
  • plyer package for notifications
  • schedule package for task scheduling
  • requests package for fetching facts online

You can install all the required packages by running:

pip install plyer schedule requests

Configuration

The script is configured using a JSON file called config.json. The available settings are:

  • interval: Time interval (in minutes) between notifications (default: 15).
  • use_online_source: Whether to fetch facts from an online source (default: true).
  • online_source_url: The URL to fetch the facts from if use_online_source is true.
  • enable_logging: Whether to enable logging (default: true).
  • log_file: The file to store logs.

Usage

  1. Clone the Repository: Clone this GitHub repository to your local machine.

    git clone <repository_url>
  2. Install Dependencies: Navigate to the directory containing the cloned repository and install the required packages.

    pip install -r requirements.txt
  3. Configure the Script: Edit config.json to customize your settings, like notification interval, data source, etc.

  4. Run the Script: Execute the Python script to start receiving notifications.

    python physics-notifier.py
  5. Stop the Script: To stop receiving notifications, press Ctrl+C in the terminal where the script is running.

Customization

  • Update Physics Facts: You can add or remove facts in physics_facts.txt. Each fact should be on a new line.
  • Change Configuration: Edit config.json to adjust your settings.

Author

Persaeus/Tunjan

License

This project is under the MIT License. See LICENSE for more details.

Contributing

Feel free to fork this repository and create a pull request if you have some improvements or features to add.

physics-notifier's People

Contributors

tunjan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.