Jump to content

checking GPS time


Városi

Recommended Posts

Here's what I did in a script in the Groundspeak Wherigo builder:

-- save the operating system date/time to a variable
Set osTime equal to os.date("%I")

-- grab the HH:MM:SS portion from the above formatted string
Set formattedTime equal to string.sub(osTime,12,19)

--
-- formattedTime now has "HH:MM:SS" in string format and can be displayed in a message box
--
[[Well done ]] .. Player.Name .. [[ for making your way to the trailhead.

This is the first location on your tour of the Unnamed Trail.

The next location is a just up the trail.  You may already see why I call this trail the Unnamed Trail.]] 
.. 
[[the current time is: ]] .. formattedTime

Link to comment

Someone knows that GPS time can be chacked in the Wherigo Cartridge. A would like to create 2 way in my game. At daytime, and at night the game shows different zones.

Is it possible to checked this?

Yes, it is possible, in URWIGO you can use following code (see attached picture or attteched source code - unzip first!)

day_night.zip

post-723638-1269790963.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...