The Psygraph WordPress Plugin
The Psygraph plugin for WordPress does several things:
- It offers a web interface to some of the features of the Psygraph application.
- It displays Psygraph data on your blog by using various shortcodes.
- It automatically creates posts with audio attachments for an RSS feed (Podcast). [Note: This feature is not enabled on the Psygraph.com site due to bandwidth issues]
The Psygraph WordPress plugin integrates with the Psygraph app to display your data, and is only necessary if you wish to use your data outside of the Psygraph app. You can use any WordPress installation that has the Psygraph plugin installed, such as psygraph.com. If you use your own WordPress installation, you will be able to create new posts and automatically upload audio notes.
The web client offers a limited interface to some of the features of Psygraph. Some options that depend on your device, such as those dependent on the accelerometer, are disabled. The web client for Psygraph.com can be accessed as: http://psygraph.com/webclient).
Psygraph creates a virtual page for each user with recent events, audio notes, and other data. That data can be visualized on a graph, or downloaded in a number of different file formats.
By default, Psygraph data is only available to you when you are logged into WordPress. You might wish to allow your data to be publicly readable, however, so that you can share your progress with other people. In order to share your data, log into the wordpress site and visit your user page, http://psygraph.com/pguser/USERNAME (replace USERNAME with your actual WordPress username). At the top of that page will be the admin settings, which contain a checkbox to make your data public.
For more information about the shortcodes that are used, see the page discussing shortcodes. For an example of the way shortcodes render the data from your mobile phone, see the example page for the user beta at: http://psygraph.com/pguser/beta.
Creating Posts and Podcasts
Posts can be created out of notes in Psygraph application by selecting the corresponding setting in the Psygraph plugin administrator settings [please note that this feature is not selected at Psygraph.com, since we do not have the bandwidth to host everyone’s audio content]. To do that, you must be logged in as an administrator of the WordPress site. If that option is selected, content will be automatically uploaded when it is created. Podcasts (or RSS 2.0 feeds) can then be made available using a tool such as Blubrry’s PowerPress. For example, see: https://psygraph.com/category/podcast/feed/
Using WordPress shortcodes
One of the best things about Psygraph is that it integrates with WordPress. The data is stored on a WordPress server, and it can be accessed on your blog pages by using WordPress codes called shortcodes. Here is a quick summary of the pg_link, pg_page, and pg_event shortcodes. Many of these shortcodes are used on the user overview pages: see the WordPress screenshots for pictures of the results.
[pg_link linktext="text" format="kml"]
This shortcode generates a link to a file.
The linktext parameter defined the text that the user sees, and can be any string.
The format parameter is a file format. The following formats are currently supported:
- CSV (comma separated values)
- KML (a map file)
- HTML (a page for display on the web)
- ICS (a format used for calendar interoperability)
This shortcode renders a page of content. The following pages can be specified:
- client: the Psygraph web client directly on the WordPress page. The client can also be accessed outside of WordPress at http://psygraph.com/webclient.
- audio: Display an audio control that can play all of the user’s audio notes and memos.
- input: Render a form which can be used to upload events to the Psygraph plugin.
If you wish to display Psygraph events directly on your blog, use the [pg_events] shortcode. Set the display option to generate maps or graphs. It can be used with the optional parameters described below to limit the number of events which are displayed. For example, [pg__events start=”1972-08-22″] will display all of the events since August 22, 1972.
You can set the “display” option to one of the following options to display your data on a map or graph instead of in an HTML table.
- map: Render a map directly on the page which consists of the accumulated geographic data.
- graph2D: Display data in a 2D graph.
- graph3D: Display data in a 3D graph.
These shortcodes are used to create the user overview pages: see http://psygraph.com/pg_beta for a live example.
When you generate links to files or list of events, you may wish to restrict which events are selected. The following optional parameters may be used for both the pg_link and pg_events tags.
This parameter lets you select the maximum number of events to be displayed. It is a numerical parameter which must be greater than zero.
These parameters allow you to specify date ranges for the events. The format of both of these parameters is specified in years-months-days hours:minutes:seconds. The start parameter above references April 4, 2015, and does not specify the time (0:0:0 is assumed). The duration parameter references August 22, 2016 at 2:15 PM.
The ID parameter lets you specify the id of a particular event.
The page parameter lets you restrict your query to events generated by a particular page.
The category parameter lets you restrict your query to events in a particular category.
The type parameter lets your restrict your query to events of a particular type. For example, the stopwatch page generates both “interval” (which correspond to a start and stop time) and “reset” events (which correspond to pressing the reset button).