HDS - Hotspot Discord Status
Discord Channel | Discord Mobile Notifications |
---|---|
Listed as a Helium Community Tool https://explorer.helium.com/tools
Bobcat 300 Miner owners can add their local address and receive miner reports via the Bobcat Diagnoser including status, temperature and OTA firmware versions.
Welcome Message:
:call_me_hand: THANKFUL COTTON CROCODILE [ :satellite: TCC ]
Status Bar:
:satellite: TCC :fire:ONLINE :avocado:*NSYNC :pizza:1.00 :bacon:23.534
Proof of Coverage
16:57 23/AUG
04:22 23/AUG
13:29 23/AUG
12:04 23/AUG
Invalid Witness
12:12 23/AUG
10:55 25/AUG
Data Packet Transfer
04:39 24/AUG
Other Activities
14:39 04/JUL
HNT Amounts
0.0007548
Mining Rewards in :bacon:HNT
04:31 23/AUG
04:31 23/AUG
0.0000032
, Data 04:48 24/AUG
01:42 24/AUG
Wellness Check plus Status Message
🚧 No API Activities in the Last 12hrs
:satellite: TCC :fire:ONLINE :avocado:*NSYNC :pizza:1.00 :bacon:23.534
⏰ Scheduled Miner Report, every 72hrs
:nut_and_bolt: MINERity Report 12:27 11/SEP
Sync: Synced Height: :package: 1,006,679 Gap: (2)
Status: Running Temp: Normal Epoch: 26,000
Firmware: Helium 2021.09.03.0 | Bobcat 1.0.2.23S
Inbound (44158): :white_check_mark: Open
Option A: Download from Github
Option B: Clone from Github
git clone https://github.com/co8/hds
cd ~/hds
cp new-config.json config.json
cp new-activity_history.json activity_history.json
nano config.json
Install Discord Webhook for Python via pip3
cd /path/to/hds/
(optional, activate your virtualenv)
pip install -r requirements.txt
or
pip3 install discord-webhook
Option C: Docker Container - Dockerfile
(instructions to come)
Add your Hotspot and Discord Bot Webhook
required
{
"hotspot": "HOTSPOT_ADDRESS_HERE",
"discord_webhook": "DISCORD_WEBHOOK_HERE"
}
example
{
"hotspot": "112MWdscG3DjHTxdCrtuLk...",
"discord_webhook": "https://discord.com/api/webhooks/87869..."
}
optional, config values that can be customized
{
"bobcat_local_endpoint": "http://192.168.1.120/"
}
optional, change default values
{
"wellness_check_hours": 12,
"report_interval_hours": 72
}
FYI: Bobcat Miner Reports slow down the miner. Do not abuse
crontab -e
*/1 * * * * cd ~/hds; python3 hds.py >> cron.log 2>&1
Optional, Clear cron.log weekly on Sunday
20 4 * * 0 cd ~/hds; rm cron.log; echo "cron.log cleared (weekly)" >> cron.log 2>&1
After paste use CONTROL-X to close and then press Y to confirm changes and save
cd ~/hds
python3 hds.py
python3 hds.py reset
python3 hds.py report
A) Docker - Run multiple containers
B) Duplicate the HDS folder for each hotspot and duplicate the crontabs for each instance
directories
hds/
hds-b/
hds-c/
crontab file
/1 * * * * cd ~/hds; ...
20 4 * * 0 cd ~/hds; ...
/1 * * * * cd ~/hds-b; ...
20 4 * * 0 cd ~/hds-b; ...
/1 * * * * cd ~/hds-c; ...
20 4 * * 0 cd ~/hds-c; ...
cron.log is generated at hds/cron.log
.
(period) No new activities
:
(colon) Repeat activities, no new
10:17 08/22/21 a:5 r:3 m:2 discord:OK sec:2.88
10:17 08/28/21
24hr time and datea:
activities countr:
repeat activities countm:
message line count sentdiscord:
Discord Response Reasonsec:
Execution speed, in secondsFork this project and submit pull requests
If you find this project useful please consider supporting it
HNT: 14hriz8pmxm51FGmk1nuijHz6ng9z9McfJZgsg4yxzF2H7No3mH
I'm seeking grants and bounties for new projects and to improve and expand this project. [email protected]
For convenience, I run this script on a Raspberry Pi Zero W
Raspberry Pi Zero W Kit (Amazon US)
Check out my other Helium Projects...
Easily Access Helium Blockchain API Data with just your Hotspot Address
for Rak, Oukeione and Outdoor Fiberglass Dipole Antennas Outdoor or Attic
https://www.thingiverse.com/thing:4942377