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

From Chumby Wiki
Jump to: navigation, search
(/psp/timezone_city)
(/psp/timezone)
Line 18: Line 18:
 
==/psp/slimserver_ip==
 
==/psp/slimserver_ip==
 
==/psp/timezone==
 
==/psp/timezone==
 +
Contains the timezone selected in the Control Panel, typically a path to a timezone file relative to /usr/share/zoneinfo
 +
 
==/psp/timezone_city==
 
==/psp/timezone_city==
 
Contains the city and country of the time zone selected in the Control Panel, separated by tab and terminated by a linefeed.
 
Contains the city and country of the time zone selected in the Control Panel, separated by tab and terminated by a linefeed.

Revision as of 19:50, 16 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

Contains the timezone selected in the Control Panel, typically a path to a timezone file relative to /usr/share/zoneinfo

/psp/timezone_city

Contains the city and country of the time zone selected in the Control Panel, separated by tab and terminated by a linefeed.

/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