Media Scheduler
- About
- Getting Started
- Installation
- Circuit
- Web App
- Usage
- List Of Components
- Built Using
- DemoVideo
- Authors
This repo contains
- Firmware
- Circuit
- Detailed instructions
for Media Scheduler.
These instructions will get you a copy of the project up and running on your system. The flowchart of the system is given below:
Things you need to install the FW.
- 1x Raspberry Pi 3B or 4
A step by step series that tell you how to get the Firmware and Backend running
- Download and install Raspberry Pi Imager from here https://www.raspberrypi.com/software/
- Donwload "Raspberry Pi OS with desktop and recommended software" from here https://www.raspberrypi.com/software/operating-systems/
- Then extract the dowloaded image file using any extraction software like 7-zip https://www.7-zip.org/
- Put a 16 GB SD Card in your Laptop/PC.
- Open the Raspberry Pi imager, Click on "Choose OS" button and scroll down to select "Use Custom" as shown below
- Then select the extracted image file.
- In the next step select your SD Card and then click on "Write" button to start the writing process.
- Thatβs it. It should be flashed within a few minutes.
- Download this repository and open the configFiles folder of the repository and open wpa_supplicant.conf file and add your WiFi credentials in it.
- Once done, remove the SD Card and re-insert it into your PC/Laptop and then open the "boot" volume. Copy the files of "configFiles" folder here in the "boot" volume. Also create an empty file named "ssh" in the "boot" volume if not already present.
- Do the same steps for 2nd SD Card as well.
- Then put the SD Card in the first Raspberry Pi Zero and power it on.
- Then SSH into the Raspberry Pi which you can using the command
ssh [email protected]
- Once you are logged in, execute the following command
To install and Run Media Scheduler Automatically just run the following command on your Raspberry Pi terminal
curl -sSL https://raw.githubusercontent.com/Nauman3S/Media-Scheduler/main/installer.sh | bash
After the installer completes the process restart your raspberry pi.
- DISPLAY=:0 /home/pi/Media-Scheduler/Firmware/starter.sh
- Execute the following command
sudo nano /boot/cmdline.txt
-
Change the console from tty1 to
console=tty3
-
Add this to the end of the line.
loglevel=0
removes most of the messages from the boot and put the following line at the end
quiet splash loglevel=0 logo.nologo vt.global_cursor_default=0
- Press CTRL+O and CTRL+X to save and exit.
sudo nano /etc/rc.local
- Add this before 'exit 0':
- Press CTRL+O and CTRL+X to save and exit.
dmesg --console-off
- Execute the following command
sudo update-rc.d motd remove
sudo nano /boot/config.txt
- Add the following line at the end of the file
disable_splash=1
- Press CTRL+O and CTRL+X to save and exit.
sudo nano /boot/cmdline.txt
- Add below line to end of file
logo.nologo
- Press CTRL+O and CTRL+X to save and exit.
sudo reboot
Following these 14 steps will remove all unwanted boot logs messages and raspberry pi logo/splash screens.
Follow the pinout diagram below to connect the components to the Raspberry Pi.
Components pin connection details
Console Button to open or close console
Button Pins | Raspberry Pi |
---|---|
PIN 1 |
GND |
PIN 2 |
23 |
Dashboard can be accessed using the credentials given below
- Email Address: [email protected]
- Passowrd: admin
- Upload Pictures and set their display time and display duration.
- Upload videos and set their display time.
- Upload default picture which will be displayed when nothing else is running.(uploading a picture with name default.png will make it a default picture)
Backend Link: https://mediascheduler-backend.production.rehanshakir.com/api/fields
- Upload the code to your Raspberry Pi as mentioned in the Installlation section above.
- Now connect the circuit components as mentioned in Circuit section above.
- Power on your raspberry pi.
- Use the webapp dashboard to upload new videos/pictures.
- To set a default picture, upload a image file named
default.png
and it will be automatically used as a default image. - Press the push button to open the terminal.
Following components are used to make this project
- Raspberry Pi 4 Kit Raspberry Pi 4 Kit
- Generic Push buttons
- Python - Programming Language
- NodeJS - JavaScript Framework for WebApp Backend
- ReactJS - JavaScript Framework for WebApp FrontEnd
- MongoDB - NoSQL Database for WebApp
Media Scheduler Demo - Media Scheduler Demo Video
- @Nauman3S - Development and Deployment