Skip to content
/ micro Public

Here’s your personal mini earthquake alert code.

License

Notifications You must be signed in to change notification settings

evacuate/micro

Repository files navigation

Micro

micro is a TypeScript application that monitors seismic activity and posts seismic information to Discord. The application connects to the WebSocket API to receive earthquake data, processes the information, and posts it with relevant details using the Discord Webhook.

Feature

  • Connects to a WebSocket API to receive earthquake data.
  • Processes seismic intensity and event codes.
  • Posts formatted earthquake information to a service using the Discord Webhook.

Getting Started

Prerequisites

  • Node.js (version 20 or higher)
  • pnpm (version 9 or higher)

Installation

  1. Clone the repository:

    git clone https://github.com/evacuate/micro.git
  2. Navigate to the project directory:

    cd micro
  3. Install dependencies:

    pnpm install

Configuration

  1. Copy the example configuration file:

    cp .env.example .env
  2. Edit the .env file

Scripts

  • Build: Compile the TypeScript files to JavaScript

    pnpm build
  • Development: Run the application in development mode with live reloading

    pnpm dev
  • Lint Code: Lint code

    pnpm lint

Usage

  1. Ensure your .env file is correctly configured.

  2. Run the application:

    pnpm start
  3. The application establishes a WebSocket connection, then listens for seismic data and posts relevant information when an event is detected.

Contributing

Contributions Welcome! You can contribute in the following ways.

  • Create an issue - propose a new feature. Report a bug
  • Pull Request - Fix a bug or typo Refactoring the code
  • Share - Share your thoughts on blogs, Twitter, etc.

For more details, see docs/CONTRIBUTING.md.

Author

I proposed, facilitated, and developed the entire project.

License

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

About

Here’s your personal mini earthquake alert code.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published