GithubHelp home page GithubHelp logo

xmdb / oncheck Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1 MB

A simple Python script that returns HTTP codes based on a Hypixel player's online status, for use in conjunction with tools like Uptime Kuma.

License: MIT License

Python 100.00%
hypixel online-checker uptime uptimekuma

oncheck's Introduction

oncheck: Hypixel Online Detector and HTTP Server

This is a simple script that checks if a player is online on Hypixel and provides HTTP codes 200 or 500. This is done by using the Hypixel API.

If the player is online, HTTP 200 is returned along with the text, "Username is online".

If the player is offline, HTTP 500 is returned along with the text, "Username is offline".

I use this with Uptime Kuma to monitor if my VM called Majaro Tipster is working.

Manjaro Tipster VM

Usage

Put your Minecraft UUID and Hypixel API key in .env.example and rename it to .env.

Then, run it using python3 main.py.

After, you can add the URL to Uptime Kuma.

Uptime Kuma

Integrate with systemd

You can integrate this with systemd to run it as a service.

Create a file called oncheck.service in /etc/systemd/system/ and put the following in it:

[Unit]
Description=Oncheck Online Detector

[Service]
User=USERNAME
ExecStart=/usr/bin/python3 /path/to/oncheck/main.py
Restart=always

[Install]
WantedBy=multi-user.target

Then, run sudo systemctl daemon-reload and sudo systemctl enable oncheck.service.

You can then start it using sudo systemctl start oncheck.service.

Afterwards, check the status using sudo systemctl status oncheck.service. You should see it running.

License

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

oncheck's People

Contributors

xmdb 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.