Skip to content

Raspberry Pi based remotely controlled OLED screen

License

Notifications You must be signed in to change notification settings

Samarkin/screen-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenServer

The goal of this project is to develop a remotely controlled OLED screen.

Technology Stack

  • Raspberry Pi 3 Model B (to be potentially replaced with a cheaper alternative)
  • SH1106-driven 128x64 OLED screen
  • Golang

To Build

  1. Get the source code
go get github.com/samarkin/screen-server/cmd/oledd
go get github.com/samarkin/screen-server/cmd/create-user
  1. Disable go modules
go env -w GO111MODULE=auto
  1. Create user
cd $GOPATH/src/github.com/samarkin/screen-server/cmd/oledd
go run github.com/samarkin/screen-server/cmd/create-user
  1. Build and run
go run github.com/samarkin/screen-server/cmd/oledd

Sample Usage

  1. Find out IP of your Raspberry Pi. For example, 192.168.1.5.

  2. From any computer connected to the same network make an HTTP request to port 6533 (OLED spelled on phone keypad)

    1. Obtain the auth token first (using login in password that you provided previously):

      tokenHeader=`curl -v --silent --data '{"login":"admin", "password":"admin"}' http://192.168.1.5:6533/api/login 2>&1 | grep X-Session-Token | cut -c 3- | tr -d '\r\n'`
    2. Display a message

      curl -v -H $tokenHeader --data '{"text": "Hello, world!"}' http://192.168.1.5:6533/api/messages

Full API Description

About

Raspberry Pi based remotely controlled OLED screen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages