hexfetch

command module
v0.1.0-arm Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: MIT Imports: 11 Imported by: 0

README

hexfetch

hexfetch is a web application for hexfetch with convenient features like HEX miners, charts and periodical data fetching from Pulsechain API.
This doesn't itself interact Pulsechain network but instead it uses HEXDailyStats API to fetch data.
hexfetch doesn't need the 0x addresses at all so it's 100% privacy.

hexfetch is made with go 1.24.2.

Running hexfetch will create a folder into same directory where hexfetch is running.
settings directory contains user defined config.json and miners.json.

Environment variables

env value explanation
DEBUG true/false Enable logging. Default value: false

hexfetch for arm architecture

This branch called arm is for arm based architecture microcontrollers such as Raspberry Pi.
We are using Raspberry Pi Zero 2W for this build.

NOTE: ALL COMMANDS MUST BE RUN AS SUDO!

Prepare SD-card

Format SD-card with FAT32 partition called ALPINE.

Initialize ALPINE partition

sudo mkdir /mnt/sdcard
sudo mount /dev/sdc1 /mnt/sdcard

# Extract archive into /mnt/sdcard
sudo tar -xzf alpine-rpi-<version>-armv7.tar.gz -C /mnt/sdcard

Enable SSH

sudo touch /mnt/sdcard/ssh

WiFi setup

sudo nano /mnt/sdcard/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/ WPA_DRIVER=nl80211
update_config=1
country=US
network={
    ssid="YourSSID"
    psk="YourPassword"
    key_mgmt=WPA-PSK
}

Headless Alpine bootstrap

sudo wget https://github.com/macmpi/alpine-linux-headless-bootstrap/blob/89c689e0c48d1da52357e23c8e9468f11521c97e/headless.apkovl.tar.gz
sudo mv headless.apkovl.tar.gz /mnt/sdcard

Configuration file

nano /mnt/sdcard/config.txt

enable_uart=1
arm_64bit=1
kernel=boot/vmlinuz-rpi
initramfs boot/initramfs-rpi

nano /mnt/sdcard/cmdline.txt

console=tty1 modules=loop,squashfs,sd-mod,usb-storage alpine_dev=mmcblk0p1:vfat apkovl=/dev/mmcblk0p1/ALPINE/config.apkovl.tar.gz

Unmount SD-card

sync
sudo umount /mnt/sdcard

Connecting into rpi0

ssh root@192.168.68.102

Setup the Alpine Linux

setup-alpine
# Proceed with default options.

# SSH
# Allow root ssh login: prohibit-password
# input public SSH key

# Disk & Install



Tabs

Profile

Profile tab shows user's miners and T-Shares and total value of T-Shares.
If miner is matured, it will be shown (MATURED) with END button. Ending the miner will move it into Completed Miners container.

Viewing Completed Miners button opens a window of completed HEX miners.

Live Data

Live Data tab shows periodically fetched data from Pulsechain API.

Charts

Charts tab show historical charts of HEX price, T-Share rate and other useful information of HEX.

Settings

Settings tab shows:

  • Live Data Settings for changing the frequency of fetching data (in minutes)
  • Liquid HEX to calculate and show the value of liquid HEX in Profile tab
  • Add New Miner for adding HEX miner with start date, end date and amount of T-Shares
  • Existing Miners for list of HEX miners with Delete function

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL