An open API service indexing awesome lists of open source software.

https://github.com/kurama250/stats_server_pi

This code is used to see live consumption information from your Raspberry Pi server !
https://github.com/kurama250/stats_server_pi

discord nodejs rasbian raspberry-pi stats

Last synced: 9 months ago
JSON representation

This code is used to see live consumption information from your Raspberry Pi server !

Awesome Lists containing this project

README

          

Bot stats Raspberry Pi server for Discord


(Programming Language - Node.js | Shell)










# Tutorial to install the bot ! For Rasbian (Raspberry Pi)

## 1 - on Terminal

A) Auto installer

- Run command :

```shell script
bash <(curl -s https://raw.githubusercontent.com/Kurama250/Stats_server_pi/main/setup_server.sh)
```

B) Manual installer

```shell script
apt update && apt upgrade -y
apt install npm nodejs git raspi-config -y
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&\
apt-get install -y nodejs
```
```shell script
git clone https://github.com/Kurama250/Stats_server_pi.git
cd Stats_server_pi
npm install discord.js child_process
npm install pm2 -g
```
## 2 - on Terminal

```shell script
nano config.json
```

## And you also change this line :

```json
"token": "YOUR_TOKEN",
"channelId": "ID_CHANNEL",
"serverId": "ID_SERVER"
```

After doing this, press CTRL + X and you press Y and ENTER then you do the following commands !

## 3 - on Terminal

```shell script
pm2 start main.js -n Stats_server_pi
```

- Demo :

![alt text](https://github.com/Kurama250/Stats_server_pi/blob/main/img/stats-server-pi.png)


Support on Discord : Discord Link3>

If you like this repository don't hesitate to give it a star ⭐ !


Then it's the end you have started the bot have fun !

Licence : [Creative commons](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en) - CC BY-NC-ND 4.0 by [Kurama250](https://github.com/Kurama250) | [Yoro404](https://github.com/Yoro404)