Got it

Doprafetch - A Neofetch clone to get information about your Huawei router

Latest reply: Feb 14, 2022 13:27:33 454 6 2 0 0

 - Doprafetch -


Why?

You might have already wondered: what hardware your AP/Router have?

Well, I did and wanted to check it out!

Since you can SSH into your router, it's way easy to check it out. Even if you have commands like 

display deviceInfo

it doesnt really show what's inside.


How?

The program get the system information mostly with few system comands and reading some "files". All made in Golang with 100 lines of code!


Download?

The project is open source! The link to the repository is https://github.com/princessmortix/doprafetch (What's GitHub/What is this link?)

You can either download it from github releases or build it youself.

Building

To build you'll need Golang. You can download it here.

After installing, clone the repositoru, either with

git clone https://github.com/princessmortix/doprafetch

(If you have git), or download by clicking there:

Download the repository locally.


Then, on dropafetch folder, open a terminal window and paste these commands:

go get github.com/cloudfoundry/gosigar
go get github.com/fatih/color
go get github.com/ricochet2200/go-disk-usage/du

These commands downloads the needed libraries to compile Dropafetch.

After that, set the needed environment variables with these commands:

(On Windows:)

set GOOS=linux
set GOARCH=arm

(On linux:)

export GOOS=linux
export GOARCH=arm

These commands are necessary to tell the compiler to compile the program for the linux on the ARM architecture.

After that, you'll only need to run

go build

to build the program, simple as that, right?


What's next planned?

  • Configuration (using flags)

  • Compatibily between devices

  • Get the data before printing

  • An easy way to download the program on the AP/Router.

Screenshot:

Doprafetch in action!

=============================


If you have any suggestions, ideas or just wanna say hi, just reply to me in this post!

- Princess Mortix, 2021

=============================

Changelog:

V2.1 (Beta, not released yet)
  • Use build flags instead of using runtime library;

  • Smaller code.

V2:
  • Fixed uptime issues;

  • Fixed CPU detection;

  • Added disk usage;

  • Fixed shell/busybox version

  • Fixed typo (dropa -> dopra);

  • Added firmware version;

  • Fixed kernel version.

Good share thanks
View more
  • x
  • convention:

princessmortix
princessmortix Created Oct 25, 2021 10:44:55 (0) (0)
thanks a lot!  
Nice share
View more
  • x
  • convention:

princessmortix
princessmortix Created Oct 25, 2021 10:45:01 (0) (0)
thanks!  
Good Share
View more
  • x
  • convention:

princessmortix
princessmortix Created Mar 3, 2022 22:45:19 (0) (0)
thanks!!  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.