Skip to content

OzeroDev/happi-server

Repository files navigation

Happi-Server

Raspberry Pi Setup

Install the Following Libraries:
  • pip install flask
  • pip install discord.py
  • pip install Pillow
  • pip install python-dotenv
  • pip install gpiozero
  • sudo apt install sqlite3 sudo apt-get install python3-tk pip install opencv-python

pip install tkvideoplayer

raspberry pi pip installation guide: python -m venv ~/py_envs source ~/py_envs/bin/activate python -m pip install NAMEOFWHATEVER

phomemo printer instructions

24:54:89:AE:0A:51

alt-f4

bash commands: bluetoothctl devices bluetoothctl pair 24:54:89:AE:0A:51 sudo rfcomm connect 0 24:54:89:AE:0A:51

sudo chmod a+rw /dev/rfcomm0

thermal-print.py my-image.png > /dev/rfcomm0

color printer instructions

0C:86:29:61:9B:14

sudo apt-get install bluetooth libbluetooth-dev sudo pip install pybluez sudo apt-get install obexftp

pip install flask-cors

bash commands: bluetoothctl pair 0C:86:29:61:9B:14 obexftp --nopath --noconn --uuid none --bluetooth 0C:86:29:61:9B:14 --channel 2 -p color.png

python -m http.server 50299

API Ussage

add_ipad_response : POST

header: password body: {"image_base64", "prompt"} image must be encoded as base64 make sure the base64 doesn't include the tag "data:image/png;base64,"

add_qr_response : POST

header: password body: {"image_base64", "test_response", "prompt"} image must be encoded as base64 make sure the base64 doesn't include the tag "data:image/png;base64,"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •