Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lintangwisesa/rpi_runtext_expressjs_socketio
Controlled running text using Raspberry Pi, Express.js & Socket.io
https://github.com/lintangwisesa/rpi_runtext_expressjs_socketio
express-js raspberry-pi running-text socket-io
Last synced: 4 days ago
JSON representation
Controlled running text using Raspberry Pi, Express.js & Socket.io
- Host: GitHub
- URL: https://github.com/lintangwisesa/rpi_runtext_expressjs_socketio
- Owner: LintangWisesa
- Created: 2020-04-19T04:16:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T02:24:46.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T10:27:09.428Z (over 1 year ago)
- Topics: express-js, raspberry-pi, running-text, socket-io
- Language: HTML
- Size: 994 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![simplinnovation](https://4.bp.blogspot.com/-f7YxPyqHAzY/WJ6VnkvE0SI/AAAAAAAADTQ/0tDQPTrVrtMAFT-q-1-3ktUQT5Il9FGdQCLcB/s350/simpLINnovation1a.png)
# Controlled Running Text
[![Video](https://img.youtube.com/vi/yU8dXp9tXqA/0.jpg)](https://youtu.be/yU8dXp9tXqA)
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:
```bash
$ 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](https://github.com/LintangWisesa/RPi_RunText_ExpressJS_SocketIO) or clone it from your terminal (make sure you've installed *__git__* on your Pi):
```bash
$ 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.
```bash
$ cd RPi_RunText_ExpressJS_SocketIO$ cd public
$ sudo nano chat.js
```Edit on the following line (```chat.js```):
```javascript
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.
```bash
$ node app
```
or using __*nodemon*__:```bash
$ 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 :love_letter: [email protected]_
[Facebook](https://www.facebook.com/lintangbagus) |
[Twitter](https://twitter.com/Lintang_Wisesa) |
[Youtube](https://www.youtube.com/user/lintangbagus) |
[LinkedIn](https://www.linkedin.com/in/lintangwisesa/) |
:octocat: [GitHub](https://github.com/LintangWisesa) |
[Hackster](https://www.hackster.io/lintangwisesa)