It is currently April 19th, 2024, 5:37 am

Accessing Windows Location Services from skin

Get help with creating, editing & fixing problems with skins
timg11
Posts: 1
Joined: June 11th, 2019, 1:18 am

Accessing Windows Location Services from skin

Post by timg11 »

I'm brand new to Rainmeter. I've got the basic Illusto\Clock running with a few customizations.
I travel a lot and I'd like to make my clock automatically adjust to the current location timezone. ( I keep the system clock constant)

Microsoft documents Windows.Devices.Geolocation Namespace as a means to identify the system location.
Can this API (or something similar) be accessed from Rainmeter?
I looked through the Final Manual and didn't find anything on geolocation.
Searching back a few years I saw some posts from 2013 on using HTML5 web services and parsing the return, but that was before Windows geolocation services had matured.
User avatar
raiguard
Posts: 660
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: Accessing Windows Location Services from skin

Post by raiguard »

I am interested in this too. I wish to add an auto-location feature to my Weather skin, and being able to use Windows' built-in location services would be much nicer than relying on a website. For now I am using ipapi.co, but it isn't wholely accurate (despite living in a city with almost 100,000 people, it reports that I live in a city over twenty miles to the north!).

I'd imagine that accomplishing this would require a special plugin, since Windows needs to authenticate permission to access the data on a per-app basis.
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017