Raspberry Pi: Node JS Internet Speed-Logger

Опубликовано: 08 Октябрь 2024
на канале: Technology Lowdown
2,233
33

This guide takes you through the setup of speedtest-cli and speed-logger on the Raspberry Pi. Speed-Logger enables you're Speedtest results to have a GUI that's accessible through the web browser.

Commands used are below for your reference.

sudo raspi-config
Configure Local
Configure Timezone
Under Advanmced... Expand Filesystem

sudo apt-get update && sudo apt-get upgrade

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y git python-pip

sudo apt-get install nodejs

npm -v
node -v

sudo pip install speedtest-cli

git clone https://github.com/ericmann/speed-log...

cd speed-logger

sudo npm install
node speed.js

The Application should now be running successfully...

Ctrl+C

sudo npm install -g pm2@latest

pm2 start speed.js

pm2 startup

pm2 ls (See what's going on)

sudo reboot

pm2 ls

If it's running you're done. -------------------------------------------------------------------------------------------------------------
Want to connect with me?
Twitter -   / nickswebtsv  

-------------------------------------------------------------------------------------------------------------
Need an Internet Connection in Australia? Looking to get connected to the NBN? Looking for great prices and local support?

Signup to Aussie Broadband with code "2124279" and receive $50AUD credit - http://bit.ly/abb-sign-up

Mention my name to sign-up.

-------------------------------------------------------------------------------------------------------------
I'm an Australian YouTuber and if you're looking for other great Australians on Youtube here's a place to start:

Eddie Woo -    / @misterwootube  
TechManPat -    / @techmanpat  
CWNE88 -    / @tallpaultech  

I am not at all affiliated with any of the YouTuber's listed above.