Skip to content

iotzo/PiscesQoLDashboard

 
 

Repository files navigation

Pisces QoL Dashboard

This is a replacement dashboard for the Pisces Helium Miner.

The dashboard that ships with the Pisces P100 has a number of security and performance issues. The main things this dashboard fixes are:

  • Lack of any authentication on the frontend.
  • Removal of ability to run root level code from the web server.
  • Changes to the way data is polled so that the dashboard doesn't hang for ~30 seconds while waiting for GPS/Bluetooth/Helium miner to report back statuses.
  • Enabling of WiFi support (not tested with mining).

Important Notes

This dashboard is in no way supported by, or affiliated with, the Pisces dev team.

By installing this dashboard, you are inheritently making the device more secure by removing the device's ability to install things like this dashboard from the web server.

A result of this is that in the event you need to troubleshoot your device, Pisces will have one fewer tool to assist you (although arguably this should never have been a tool for them to use in the first place). I have taken steps to avoid this so please read the important information below:

Installing this script creates a sudo user called "admin" with the password "admin". When you first log in to the dashboard, it is imperative that you visit Tools > Reset Password and update this password.

Installation Instructions

  1. Find the internal IP address of your Pisces miner.
  2. Use the following link, replacing YOURIP with the IP address of your miner:
  1. Log in at https://YOURIP
  • Username: admin
  • Password: admin
  1. Click "Tools"
  2. Click "Reset Password"
  3. Enter a secure password and click submit.
  4. Enjoy!

Updating

As of v0.1.1, the dashboard now has an updater. If you are running version v0.1.0 then you will have to manually update this one. Follow the instructions below:

  1. Log in via SSH (either PuTTY or click start > type "cmd" and press enter, then type "ssh admin@your-miner-ip").
  2. Run the following commands:

Removal Instructions

  1. Connect via SSH to your miner (either using PuTTY or open cmd and type: ssh admin@YOURIP)
  2. Enter the admin username and the password you set.
  3. Type the following command: sudo bash /var/dashboard/uninstall.sh

Caveats

  • It's not using jQuery or anything fancy to pull statuses on stuff. If you click a button to enable/disable a service, manually refresh a few times until it updates.
  • You will likely get a "This site is not secure" banner when you first connect. This is because I've enabled HTTPS by default with a self-signed certificate. The reason it is "not secure" is because web browsers prefer certificates to be signed by an authority, not just yourself. I promise though, HTTPS with a self-signed certificate is way more secure than standard HTTP (don't take my word for it, Google "https vs http") because at least your data is being encrypted this way. If you care enough, go buy a certificate for a couple of bucks and add it into /etc/ssl/ (you've got root access now).

Change Log

  • v0.1.4

    • If the miner docker has already locked up due to blockchain corruption then docker stop isn't aggressive enough to stop it. This has been changed to docker kill and I have also changed the method for removing the files as when it grows past a certain point, rm cannot deal with it in one hit.
  • v0.1.3

  • v0.1.2

    • Fixed bug with docker updater. If no config has been downloaded by Pisces (either updates disabled or haven't run) then it would stop the docker from being enabled. Now it will use the current config if no new config from Pisces is found.
  • v0.1.1

    • Added functionality: clear blockchain data, update miner docker and update dashboard.
    • A few quality of life enhancements, tweaking of minor bugs and updating styles.
    • Merged fix for remote IP lookup.

Buy me a beer

If you like my work, sling me some crypto:

  • ETH: 0x5130357514BA058a78855E9A6B071E0E91e39aCd
  • HNT: 13eyzqK1Dqqnj2dBHxBoWhbnGcdA7ZWh9kpejg4MTE6QzdRMU9p

About

This is a replacement dashboard for the Pisces Helium Miner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 25.2%
  • PHP 22.0%
  • JavaScript 20.7%
  • CSS 17.5%
  • Erlang 14.1%
  • Hack 0.5%