Skip to content

xbenyx/meetingrooms

Repository files navigation

Meeting Room Display with RGB

This is a standard Node.js project, just run npm ci to install the dependencies and npm run dev to start development mode with live reload. Run npm run build and then npm start to run the app in production mode.

Farmers Market Finder - Animated gif demo

Components

Setup & Config - Raspberry Pi configuration

We need to configure the Raspberry Pi in Kiosk Mode.

  1. Open Terminal in Raspberry Pi and update

    sudo apt update sudo apt install rpi-update

  2. Launch chromium browser in kiosk mode

  3. sudo Path /home/pi/.config/lxsession/LXDE-pi/autostart or sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

Copy the details below :

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi

@xset s off  # Disabled screensaver
@xset /dpms   # Disabled DPMS 
@xset s noblank # Dont blank the video device
@chromium-browser --noerrors --disable-session-crashed-bubble --disable-infobars --kiosk --incognito http://localhost:3000/lounge    #If page is open in incognito mode cache is ignored

Setup & Config - NodeJs

Before running the commands, we need to create 2 files inside the api folder; rooms-client.json and rooms.json

rooms-client.json

Go to the Google Developer Console and create a new Project.

rooms.json

Structure is as below.

{
"lounge": {"name": "Lounge", "slug": "lounge", "position": "right", "id": "[email protected]"}
}
  1. Go to folder usr/local then git clone project
  2. sudo apt-get install -y nodejs
  3. sudo npm install
  4. We use Pm2 to run nodejs in the background -> npm install PM2@latest -g
  5. pm2 start server.js
  6. pm2 startup
  7. pm2 startup systemd

Setup & Config - use of NodeRed

Install NodeRed

  1. Go to folder nodered in this project and change format to json then upload file to nodered

  2. Start Nodered as autostart:

    sudo systemctl enable nodered.service

Http path to turn on red light is located at localhost:1880/red and green light is localhost:1880/green

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages