Skip to content

LintangWisesa/RPi_RunText_ExpressJS_SocketIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplinnovation

Controlled Running Text

Video

A controlled running text built using Raspberry Pi, Express.js & Socket.io. This running text can be controlled wirelessly over WiFi connection. You can set the displayed text, its font type, text color, background color and its speed. To build this project, make sure Node.js (version 8 or later) is installed on your Rapberry Pi (any OS). Then followed these steps to make your own:


1. Connect to WiFi & Check its IP

Connect your Raspberry Pi to a WiFi connection, then check its IP address. On terminal type:

$ ifconfig

Your Pi's IP address must be various, it consists some numbers with some dots like 123.456.78.910. Note your IP address!


2. Clone this project

Clone this project from my github repo. Download here or clone it from your terminal (make sure you've installed git on your Pi):

$ git clone https://github.com/LintangWisesa/RPi_RunText_ExpressJS_SocketIO.git

3. Insert your IP on the app

Inside this project folder, go to /public then insert your Pi's IP address on chat.js file.

$ cd RPi_RunText_ExpressJS_SocketIO

$ cd public

$ sudo nano chat.js

Edit on the following line (chat.js):

var socket = io.connect('http://123.456.78.910:1234') 
// change with your RPi IP address

Exit & save it!


4. Run Express.js server

Go back to the project root, then run its server application (app.js file). It'll be better if you have nodemon installed.

$ node app

or using nodemon:

$ nodemon app

The server will be listening on port 1234, so you can access it via your Pi's web browser (for example Chromium): http://localhost:1234. It will render an HTML page with running text displayed, you can configure it by click Settings button on the page.


5. Control it from your gadget

You can also control the running text via your laptop, tablet or even a smartphone. First connect your gadget to a WiFi which your Raspberry Pi is connected to. Open your browser & go to your Pi's IP address on port 1234: http://123.456.78.910:1234. You'll see something similar with your Pi display & try to config its displayed text, font type, text color, background color & its speed. Enjoy!


Lintang Wisesa 💌 lintangwisesa@ymail.com

Facebook | Twitter | Youtube | LinkedIn | :octocat: GitHub | Hackster

About

Controlled running text using Raspberry Pi, Express.js & Socket.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published