Giter Club home page Giter Club logo

Comments (3)

McGlear avatar McGlear commented on June 24, 2024 1

If the documentation around accessing the GPS location within Obsidian using the map view plugin is still up to date, then Obsidian does not support accessing device location. Map view offers a workaround using a helper app. I would consider such approaches out of scope for Templater. However, I would assume you should be able to access Map View functions from within Templater scripts, as long as the desired functionality is provided as an Obsidian command. Have you tried that?

from templater.

Zachatoo avatar Zachatoo commented on June 24, 2024

In case it isn't clear on how to execute an Obsidian command.

You can get a list of the command IDs by opening the dev console (CMD Shift I) and typing app.commands.commands into the console.

This example will run the “Daily notes: Open today’s daily note” command.

<%*
app.commands.executeCommandById("daily-notes");
%>

from templater.

Tylannn avatar Tylannn commented on June 24, 2024

I checked official document. It seems there's no way for add-ons to get geolocation or ask for it. And, yeah, access outside API is to much for templater.

May we could model obsidian leaflet's way? Let user input coords manually, most people don't change location frequently. But I'm not sure if it's worthy, too much input box looks messing.

And, apparently, user script can do this.

from templater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.