Led ticker: Difference between revisions

From NURDspace
No edit summary
No edit summary
Line 32: Line 32:
* [[asterisk]]: '''/usr/local/bin/ticker-send.py''' en '''/usr/local/bin/push-it.sh''' (voor bellers)
* [[asterisk]]: '''/usr/local/bin/ticker-send.py''' en '''/usr/local/bin/push-it.sh''' (voor bellers)
* [[spacenanny]]: '''/usr/local/sbin/deurbel.py''' ("deurbel!!!")
* [[spacenanny]]: '''/usr/local/sbin/deurbel.py''' ("deurbel!!!")
* [[Space Status]]: '''/opt/status/status.py''' (space status: open/closed)
* [[Space status]]: '''/opt/status/status.py''' (space status: open/closed)

Revision as of 09:45, 3 January 2019

  • ze ip is 10.208.42.159
  • luistert op port 5001 UDP
  • stuur tekst om te tonen via een udp bericht
  • escapes:
    • $C...$ voorgrond kleur
    • $B...$ achtergrond kleur
    • $O...$ outline kleur
      • formaat kleur: xxx,xxx,xxx waarbij xxx een decimale waarden tussen 0 en 255 is
    • $o$ zet outline kleur uit
    • $d...$ hoelang de tekst op 't scherm zetten
    • $i$ deze tekst is de "idle tekst"; als er niks anders voorbij scrolled, dan wordt deze tekst (NIET-scrollend) getoond
    • $f$ knipper 'n bietje

Dus bijvoorbeeld:

  • $f$$C255,0,0$Hallo! Dit is een rode tekst.
  • $i$Deze tekst wordt getoond als er verder niks te scrollen is.


  • wordt gestart vanuit /etc/rc.local
  • root password is dat ene korte

koppelingen

  • nurdbot: /home/nurdbot/.jsb/releases/NURDbot/jsb/plugs/socket/udp.py (voor berichten van de deur) en myplugs/socket/wautemp.py (voor !ticker bla)
  • asterisk: /usr/local/bin/ticker-send.py en /usr/local/bin/push-it.sh (voor bellers)
  • spacenanny: /usr/local/sbin/deurbel.py ("deurbel!!!")
  • Space status: /opt/status/status.py (space status: open/closed)