Chumby Service Settings in /psp

From Chumby Wiki
Jump to: navigation, search

/psp

/psp/alarm_volume

Contains an integer value denoting the volume of the alarms. Valid values are 0 to 100.

/psp/alarms

File format:

<alarms>
<alarm name="" backupDelay="" backup="" action_param="" action="" auto_dismiss="" param_description="" param="" arg="" type="" duration="" snooze="" enabled="" time="" when="" />
<alarm name="" backupDelay="" backup="" action_param="" action="" auto_dismiss="" param_description="" param="" arg="" type="" duration="" snooze="" enabled="" time="" when="" />
<alarm name="" backupDelay="" backup="" action_param="" action="" auto_dismiss="" param_description="" param="" arg="" type="" duration="" snooze="" enabled="" time="" when="" />
</alarms>

Parameter values:

Parameters can appear in any order.

  • name - Alarm name
  • enabled - Valid values are "0" (inactive) and "1" (active)
  • action
  • action_param
  • auto_dismiss
  • param_description
  • param
  • arg
  • type
  • duration - of alarm, in minutes
  • snooze - snooze time, in minutes
  • time - unixtime/60
  • when - Valid values are "Once", "Daily", "Weekends", "Weekdays", "Sundays", "Mondays", "Tuesdays", "Wednesdays", "Thursdays", "Fridays", "Saturdays"
  • backup - Is a backup alarm active or inactive? Valid values are "0" (inactive) and "1" (active)
  • backupDelay - in minutes

/psp/cgi-bin/

/psp/crontabs/

/psp/crontabs/root

/psp/disable_intro

/psp/firsttime

/psp/hostname

/psp/hosts

/psp/ifdate.xml

/psp/localtime

Contains a copy of the timezone file specified in /psp/timezone

/psp/mute

Contains an integer value denoting the sound output mute status. Valid values are 0 (mute disabled) and 1 (mute enabled).

/psp/network_config

Contains XML for the currently selected network configuration.

/psp/network_configs

Contains XML for the list of network configurations.

Format

<configurations><configuration username="" nameserver2="" nameserver1="" gateway="" netmask="" ip="" allocation="" key="" encoding="" encryption="" auth="" hwaddr="" ssid="" type="" /></configurations>
  • username - username for WPAEAP and WPA2EAP (reserved for future use on Chumby 8)
  • allocation - Either "static" or "dhcp"
  • nameserver2 - Contains IP address of the secondary DNS server. Blank if DHCP used
  • nameserver1 - Contains IP address of the primary DNS server. Blank if DHCP used
  • gateway - Contains IP address of gateway. Blank if DHCP used
  • netmask - Contains netmask. Blank if DHCP used
  • ip - IP address for static IP address otherwise blank
  • key - Security key for WPA, WPA2, or WEP, password for WPAEAP and WPA2EAP
  • encoding - "ascii" or "hex", encoding of the key
  • encryption- - "NONE" for open access points or Ethernet, "WEP" for WEP, "AES" or "TKIP" for WPAPSK and WPA2PSK
  • auth - "OPEN" for open access points or Ethernet; "WEPAUTO", "WPAPSK" or "WPA2PSK" for secure wifi access points
  • hwaddr - contains the MAC address of the wireless access point or blank for LAN
  • ssid - ethernet or the SSID of the WLAN access point
  • type - "lan" for ethernet, or "wlan" for wifi

The following characters must be correctly escaped otherwise they won't be accepted (in the Chumby One - the Chumby Classic does not seem to mind)

Character Escape Code

  • " &quot;
  • ' &apos;
  • < &lt;
  • > &gt;
  • & &amp;

/psp/pan

/psp/shoutcast_search

Contains the last search string used in the search box for the SHOUTcast music source in the Control Panel.

/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

Contains the value of the volume slider, in the range 0 through 100