Difference between revisions of "Phonebot developer's reference/Sample applications"

From EtherWiki
Jump to: navigation, search
(Services)
(Notepad)
Line 13: Line 13:
 
* Uses the <code>[[Phonebot_developer%27s_reference/Object_reference#Map|map]]</code> object to sort notes
 
* Uses the <code>[[Phonebot_developer%27s_reference/Object_reference#Map|map]]</code> object to sort notes
 
* Uses [[Phonebot_developer%27s_reference/Object_reference#List|<code>list</code> named objects]] to store database records within the visual list
 
* Uses [[Phonebot_developer%27s_reference/Object_reference#List|<code>list</code> named objects]] to store database records within the visual list
 +
* Uses a [[Phonebot_developer%27s_reference/Advanced_tools#User-defined_methods|user-defined method]] to load notes into the list
  
 
== Services ==
 
== Services ==

Revision as of 19:17, 9 March 2012

Agent

Calculator

  • Each number key contains the same script in its OnClick event by using the this keyword.

Notepad

Services

  • Contains several examples of each type of service
  • The "Twitter feed" module uses an http service object to make a request to the Twitter search Web service. When the module's OnService event fires, the json object is used to parse the event data and fill a list with the search results.

Depending on the hardware, sensors can produce a large number of events. If the application freezes when reading sensor data, try setting the Phonebot "Sensor buffer" to a lower value.

Time tracker

Keep track of how much time you spend on different tasks. Create task types to categorize tasks. Use timer to start and stop tasks. View a list of every task or a summary of how much time was spent on each task type.