This is a simple project to track the online/offline status of your PC and display it on a Neocities web page.
The Python script updates status.json on Neocities, and the HTML page reads this file to show whether the PC is online or offline.
git clone https://github.com/Gibsy/WebPCStatus.git
cd WebPCStatus pip install -r requirements.txtAPI_KEY=YOUR_NEOCITIES_API_KEY
SITE=YOUR_WEBSITE_NAMEget your API here - https://neocities.org/settings/YOURWEBSITENAME#api_key
python main.pyThen just add status.js and pcStatus in HTML to your website (look in example.html)
<div style="margin-left:20px;margin-top:20px;background:black;width:375px;padding:10px;border:3px solid gray;">
<h1 style="color:#FFFFFF;">STATUS:</h1>
<h2 id="pcStatus" style="color:white;">Loading...</h2>
</div>