Difference between revisions of "Chumby Service Settings in /psp"

From Chumby Wiki
Jump to: navigation, search
Line 20: Line 20:
 
==/psp/timezone_city==
 
==/psp/timezone_city==
 
==/psp/ts_settings==
 
==/psp/ts_settings==
 +
Contains four or five numbers separated by commas. The first four are the calibration settings, and are values in touch screen units (not pixels).
 +
 +
The first is the X coordinate of the left screen edge, the second is the offset to that value to reach the right screen edge. The third is the Y coordinate of the top screen edge, the second is the offset to reach the bottom screen edge. Note that this last value is negative.
 +
 +
To convert from touch screen values to screen pixels, the formulae are:
 +
* pixel_x = 320 * (touch_x - ts_settings[0]) / ts_settings[1]
 +
* pixel_y = 240 * (touch_y - ts_settings[2]) / ts_settings[3]
 +
 +
The use of the fifth number is not yet clear.
 
==/psp/udev/==
 
==/psp/udev/==
 
==/psp/url_streams==
 
==/psp/url_streams==
 
==/psp/use_ntp==
 
==/psp/use_ntp==
 
==/psp/volume==
 
==/psp/volume==

Revision as of 05:00, 14 September 2008

/psp

/psp/alarm_volume

/psp/alarms

/psp/cgi-bin/

/psp/crontabs/

/psp/crontabs/root

/psp/disable_intro

/psp/firsttime

/psp/hostname

/psp/hosts

/psp/ifdate.xml

/psp/localtime

/psp/mute

/psp/network_config

/psp/network_configs

/psp/pan

/psp/shoutcast_search

/psp/slimserver_ip

/psp/timezone

/psp/timezone_city

/psp/ts_settings

Contains four or five numbers separated by commas. The first four are the calibration settings, and are values in touch screen units (not pixels).

The first is the X coordinate of the left screen edge, the second is the offset to that value to reach the right screen edge. The third is the Y coordinate of the top screen edge, the second is the offset to reach the bottom screen edge. Note that this last value is negative.

To convert from touch screen values to screen pixels, the formulae are:

  • pixel_x = 320 * (touch_x - ts_settings[0]) / ts_settings[1]
  • pixel_y = 240 * (touch_y - ts_settings[2]) / ts_settings[3]

The use of the fifth number is not yet clear.

/psp/udev/

/psp/url_streams

/psp/use_ntp

/psp/volume