This extension contains functions for embedding Google maps and widgets. Related Links: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2007/06/google
This service requires Deki Wiki 1.8.2 or later.
To enable this extension, follow these steps:
Before the Google service can be used, it must be configured with a Google API key. Sign up here.
| Config Key | Description |
| api-key | Google API key |
Functions:
Embed Google Calendar.
Parameters:
| Name | Type | Description |
| uri | uri | Google calendar feed uri. |
| startdate | str | Optional. Starting date (default: today) |
| enddate | str | Optional. Ending date (default: 7 days from today) |
| width | num | Optional. Calendar width (default: 800) |
| height | num | Optional. Calendar height (default: 800) |
Remarks: Refer here for more information about Google Calendar.
Samples:
Embed a control to show an Atom/RSS feed.
Parameters:
| Name | Type | Description |
| feed | uri | Feed uri (Atom or RSS) |
| max | num | Optional. Max number of entries to return (default: 4) |
| label | str | Optional. Feed label (default: "") |
Samples:
| | Output | |
| ||
|
Publish entries of a RSS/Atom feed.
Parameters:
| Name | Type | Description |
| feed | uri | Optional. Feed uri (Atom or RSS) |
| max | num | Optional. Max number of entries to read (default: 20) |
| publish | str | Optional. Publish on channel (default: "default") |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Publish Format:
| Name | Type | Description |
| label | str | Title of the feed entry. |
| uri | str | Feed entry link. |
| html | str | Formatted feed entry text. |
| text | str | Feed entry summary. |
| date | str | Feed entry date. |
| name | str | Feed entry author. |
Subscribe Format:
| Name | Type | Description |
| uri | str | Feed link. |
Samples:
| | Output | |
| ||
| |
Embed a control to show Atom/RSS feeds.
Parameters:
| Name | Type | Description |
| feeds | list | Optional. List of feed objects (Atom or RSS) ({ uri : uri, label: str }) |
| max | num | Optional. max number of entries to return (default: 4) |
| tabbed | bool | Optional. Tabbed presentation (default: false) |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Subscribe Format:
| Name | Type | Description |
| uri | str | Feed link. |
| label | str | Feed label. |
Samples:
| | Output | |
| ||
|
Publish list of RSS/Atom feeds that match search terms.
Parameters:
| Name | Type | Description |
| search | str | Optional. Search term (default: nil) |
| max | num | Optional. Max number of feeds to find (default: 4) |
| publish | str | Optional. Publish on channel (default: "default") |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Publish Format:
| Name | Type | Description |
| uri | str | Feed link. |
| label | str | Feed label. |
Subscribe Format:
| Name | Type | Description |
| text | str | Search term. |
Samples:
| | Output | |
|
Embed Google Gadget Script.
Parameters:
| Name | Type | Description |
| script | str | Google Gadget script. |
Remarks:
To get started, go here, find a gadget you like, and customize its settings. Once you are done, click on "Get the Code" and pass this result as a parameter to google.gadgetscript.
Samples:
| | Output | |
| ||
|
Embed Google Map with map marker.
Parameters:
| Name | Type | Description |
| address | str | Optional. Street address (default: nil) |
| zoom | num | Optional. Map zoom level (1-17; default: 14) |
| width | num | Optional. Map width (default: 450) |
| height | num | Optional. Map height (default: 300) |
| title | str | Optional. Title for map marker (default: nil) |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Subscribe Formats:
| Name | Type | Description |
| latitude | str | Latitude of address. |
| longitude | str | Longitude of address. |
| label | str | Map marker title. |
| info | str | Map marker description. |
| Name | Type | Description |
| address | str | Street address. |
| label | str | Map marker title. |
| info | str | Map marker description. |
Here is a step by step guide on how to put google maps on your dekiwiki page:
1) go to service management in the control panel
2) below 'Add Service' click on 'Local'
3) select 'Extension' type
4) enter a name: Google
5) enter the SID: http://services.mindtouch.com/deki/draft/2007/06/google
6) in the first config box enter: api-key
7) in the second config box (to the right of the first), enter you Google API key (you can get it from http://www.google.com/apis/maps/signup.html)
8) click 'Update Service'
Samples:
| | Output | |
| | |
| | |
| |
Embed Google search for web, images, videos, news, blogs, and books results.
Parameters:
| Name | Type | Description |
| search | str | Optional. Search terms (default: nil) |
| options | map | Optional. Search options (default: { web: true, local: true, images: true, videos: true, news: true, blogs: true, books: true }) |
| tabbed | bool | Optional. Tabbed presentation (default: false) |
| publish | str | Optional. Publish on channel (default: nil) |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Publish Format:
| Name | Type | Description |
| label | str | Search result title. |
| uri | str | Search result URI. |
| latitude | str | Search result latitude. |
| longitude | str | Search result longitude. |
| address | str | Search result address. |
| phone | str | Search result phone. |
| text | str | Search result text. |
| date | str | Search result date. |
Subscribe Format:
| Name | Type | Description |
| text | str | Search terms. |
Samples:
| | Output | |
| | |
| |
Embed Google Blog results.
Parameters:
| Name | Type | Description |
| search | str | Optional. Search terms (default: nil) |
| horizontal | bool | Optional. Horizontal layout (default: false) |
| title | str | Optional. Search title (default: nil) |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Subscribe Format:
| Name | Type | Description |
| text | str | Search terms. |
Samples:
| | Output | |
|
Embed Google News results.
Parameters:
| Name | Type | Description |
| search | str | Optional. Search terms (default: nil) |
| horizontal | bool | Optional. Horizontal layout (default: false) |
| title | str | Optional. Search title (default: nil) |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Subscribe Format:
| Name | Type | Description |
| text | str | Search terms. |
Samples:
| | Output | |
| |
Embed Google Video results.
Parameters:
| Name | Type | Description |
| search | str | Optional. Search terms (default: nil) |
| width | num | Optional. Video search width (default: 260) |
| height | num | Optional. Video search height (default: nil) |
| subscribe | str | Optional. Subscribe to channel (default: nil) |
Subscribe Format:
| Name | Type | Description |
| text | str | Search terms. |
Samples:
| | Output | |
| |
Embed Google Spreadsheet.
Parameters:
| Name | Type | Description |
| uri | uri | Google spreadsheet uri. |
| width | num | Optional. Spreadsheet width (default: 800) |
| height | num | Optional. Spreadsheet height (default: 800) |
Remarks: Refer here for more information about Google Spreadsheets.
Samples:
| | Output | |
| |
Embed a Google Bar Chart
Parameters:
| Name | Type | Description |
| width | num | chart width |
| height | num | chart height |
| values | list | chart values (e.g. [ 1, 2, 3 ]) |
| legends | list | Optional. Chart legends (e.g. [ "first", "secong", "third" ]; default: nil) |
| colors | list | Optional. Chart colors (e.g. [ "ff0000", "00ff00", "0000ff" ]; default: nil) |
| vertical | bool | Optional. Draw bars vertically (default: true) |
| stacked | bool | Optional. Draw bars stacked (default: false) |
| xaxis | list | Optional. Chart x-axis labels (e.g. [ "first", "second", "third" ]; default: [ 1, 2, 3, ... ]) |
| yaxis | list | Optional. Chart y-axis labels (e.g. [ 0, 50, 100 ]; default: [ 0, max/2, max ]) |
Samples:
| | Output | |
| ![]() |
Embed a Google Line Chart
Parameters:
| Name | Type | Description |
| width | num | Chart width. |
| height | num | Chart height |
| values | list | chart values (e.g. [ 1, 2, 3 ]) |
| legends | list | Optional. Chart legends (e.g. [ "first", "secong", "third" ]; default: nil) |
| colors | list | Optional. Chart colors (e.g. [ "ff0000", "00ff00", "0000ff" ]; default: nil) |
| xaxis | list | Optional. Chart x-axis labels (e.g. [ "first", "second", "third" ]; default: [ 1, 2, 3, ... ]) |
| yaxis | list | Optional. Chart y-axis labels (e.g. [ 0, 50, 100 ]; default: [ 0, max/2, max ]) |
Samples:
| | Output | |
| ![]() |
Embed a Google Pie Chart
Parameters:
| Name | Type | Description |
| width | num | Chart width |
| height | num | Chart height |
| values | list | chart values (e.g. [ 1, 2, 3 ]) |
| labels | list | Optional. Chart labels (e.g. [ "first", "secong", "third" ]; default: nil) |
| colors | list | Optional. Chart colors (e.g. [ "ff0000", "00ff00", "0000ff" ]; default: nil) |
| threed | bool | Optional. Draw 3D chart (default: true) |
Samples:
| | Output | |
| ![]() |
dd/mm/yyyy ?
yyyy-mm-dd ?
Thanks