opinsys / iivari

Digital signage system for schools - based on rails 3 and ldap
2 stars 1 forks source link

qtwebkit-kiosk/server: turn display off/on #6

Closed jpkorhonen closed 13 years ago

jpkorhonen commented 13 years ago

Configurations by organisation (config/organisation.yml)

The server transmits the settings to the client in the same api as, for example, the slides data.

qtwebkit-kiosk software turns the display on or off with the following shell command:

#!/bin/sh
# turn info-tv display off
export DISPLAY=:0.0
xset dpms force standby
#!/bin/sh
# turn info-tv display on
export DISPLAY=:0.0
xset s reset
xset s 0 0
xset s off
xset s noblank
xset dpms 0 0 0
xset -dpms
xset dpms force on
lamikae commented 13 years ago

Python backend can receive signals from JavaScript. See commit 4dcbdbc4b7863f07dc70efb6ba706b13a2433f52.

Signals can be triggered through window.displayCtrl object (written in CoffeeScript).

Implementing powerup and -down signals requires some work with the JSON structure.

lamikae commented 13 years ago

Implemented in commits 497c6143a78c4eeb225a1a95da44a402954272ec and 5bfcdf90f091ac0e628c45bd4cc9b25ef1c46d27.

The configuration is shown in organisations.yml.example

lamikae commented 12 years ago

Ported to develop branch in 192db9e50483239eaeee825b6bb62e046841b87e