GPS Module

From WebDisplays
Revision as of 02:04, 14 February 2018 by Montoyo (talk | contribs) (Created page with "The GPS Module is an upgrade which allows web pages to get the world position of the screen. ==Recipe== File:Upgrade gps.png The item on the left is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The GPS Module is an upgrade which allows web pages to get the world position of the screen.

Recipe

Upgrade gps.png

The item on the left is a Blank Upgrade.

How to use

Like any other upgrades, install it by right-clicking on a screen with the upgrade in your main hand. You will need the "Link & upgrade" permission to do that.

JavaScript

The upgrade name returned by GetUpgrades is webdisplays:gps. For more information on how to use these queries, check out Screen#JavaScript

Queries

This upgrade adds the following queries:

Query name Arguments Return value Comment
GetLocation None {"x":int,"y":int,"z":int,"side":string} Side can be BOTTOM, TOP, NORTH, SOUTH, WEST or EAST