Aller au contenu


Photo
- - - - -

How To Display Chat Text On Your Robot's Framebuffer


2 réponses à ce sujet

#1 firened

firened

    Membre

  • Membres
  • 44 messages
  • Gender:Male

Posté 17 août 2021 - 04:00

add a framebuffer view:
- add a CAMERA in hardware config with SOURCE: 1
- add a COMMAND in remote control config and use the created camera number

display chat text on framebuffer:
- install dependencies:
`sudo apt install lolcat cowsay figlet`
-then edit robot.json
`sudo nano /boot/robot.json`

for a cow with a speech bubble, add:
"CMDTTS": "cat /tmp/tts.txt | /usr/games/cowsay | /usr/games/lolcat -F 0.3 > /dev/tty0"
for big colorful text (thank you Pascal) :
"CMDTTS": "cat /tmp/tts.txt | /usr/bin/figlet -f small | /usr/games/lolcat > /dev/tty0"
there are lots of possibilities and adjustments possible with lolcat, figlet, cowsay, toilet or fortune and more. Add your favorite CMDTTS into the comments

#2 firened

firened

    Membre

  • Membres
  • 44 messages
  • Gender:Male

Posté 22 août 2021 - 02:43

Large filled Font but 180° rotated:
"CMDTTS": "cat /tmp/tts.txt | toilet -w 78 -f mono9 -F gay -F 180 > /dev/tty0"

Small but colorful Font
"CMDTTS": "cat /tmp/tts.txt | toilet -w 78 -f term -F border --gay > /dev/tty0"

colorful animation followed by a random quote:
"CMDTTS": "cat /tmp/tts.txt | /usr/games/lolcat -F 0.3 -a -d 30 > /dev/tty0; /usr/games/fortune > /dev/tty0"

#3 firened

firened

    Membre

  • Membres
  • 44 messages
  • Gender:Male

Posté 22 août 2021 - 06:30

it's possible to write anything to `> /dev/tty0` and have it show up on the framebuffer. can be output of your custom scripts or even animations:
`sudo apt install sl cmatrix libaa-bin`

a passing train:
`sudo -s`
`/usr/games/sl > /dev/tty0`

matrix:
`sudo -s`
`cmatrix > /dev/tty0`

or a fire:
`sudo -s`
`aafire > /dev/tty0`

or follow the instructions here for an aquarium:
https://www.tecmint....un-in-terminal/
`sudo -s`
`asciiquarium > /dev/tty0`



Répondre à ce sujet



  


0 utilisateur(s) li(sen)t ce sujet

0 members, 0 guests, 0 anonymous users