Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

LukeAz/raspberryMonitoringWebApp

Open more actions menu

Repository files navigation

raspberryMonitoringWebApp

General info

This project contains a webapp to monitor the performance of the raspberry pi and its temperatures. It was developed using the express framework.

This script uses the system file '/sys/class/thermal/thermal_zone0/temp' available in all raspberry pi. This file contains the real time temperature.

Layout

Technologies

Project is created with:

  • Express Nodejs
  • Websocket
  • Node os utils

Setup and run

To run this project, install it locally:

$ git clone https://github.com/LukeAz/raspberryMonitoringWebApp.git
$ cd raspberryMonitoringWebApp
$ npm install
$ nano config.json
$ npm start

Configuration

To customize the script settings you need to edit the 'config.json' file.

$ nano config.json

Explanation:

  • EXPRESS_PORT: port of the web server;
  • WS_PORT: port of the webSocket;
  • HOST: host url, example localhost (127.0.0.1) or internal ip (192.168.1.111);
  • MAX_TEMP: maximum temperature in degrees Celsius (For color graphics).

Service

In the repository there is an example in the file 'raspberryMonitoringWebAppExample.service' to insert the script into the system services. It is necessary to edit the working directory within it.

$ nano raspberryMonitoringWebAppExample.service
$ cp raspberryMonitoringWebAppExample.service /etc/systemd/system/
$ sudo systemctl enable raspberryMonitoringWebAppExample
$ sudo systemctl start raspberryMonitoringWebAppExample

To stop the service:

$ sudo systemctl stop raspberryMonitoringWebAppExample

To delete the service:

$ sudo systemctl disable raspberryMonitoringWebAppExample
$ sudo rm /etc/systemd/system/raspberryMonitoringWebAppExample.service

About

This project contains a WebApp to monitor the performance of the raspberry pi and its temperatures.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.