NotePlan / NotePlan/plugins

Location for Weather

Offen
#493 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
204
Forks
82
Ø Merge
22 Std. 27 Min.
Gemergte PRs (30 T.)
3

Beschreibung

Describe the bug
When attempting to show the weather in the daily note template using the Templating function, it provides a location hundreds of miles from my actual location.

To Reproduce
Add weather code suggested by the Templating help document to the daily note template
Use the template/daily note command to create a note

Expected behavior
Would show my actual location rather than a location at the other end of the state

System

  • Device: Mac
  • OS: MacOS Sonoma
  • NotePlan Version: NotePlan beta Version 3.9.8 (1118)
  • Plugin Name & Version Templating v1.9.12

Additional context
Location services are working for my Mac, and other apps use the correct location. I have attempted to find any location permissions applicable to NotePlan, but cannot find any.

Plugin Console Log
To provide us with more clues about where the bug/error is occurring...

  1. Open the Plugin's Preferences by going to NotePlan's menu > Preferences > Plugins and clicking the settings "cog" icon next to the plugin in question. Scroll to the bottom and set the logging level to "DEBUG" and click "Save & Close"
  2. Now open the Plugin Console by going to Noteplan > Help > Plugin Console
  3. Run the plugin command you're reporting
  4. Copy the output from the Plugin Console and paste it below
  5. Delete any output that has personal information you don't want in there
  Executing function 'onSettingsUpdated'
  Executing function 'insertNoteTemplate'
  Executing function 'listDaysEvents'

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit den im Konsolenprotokoll genannten Einstiegspunkten des Templating-Plugins, insbesondere insertNoteTemplate und listDaysEvents, und reproduziere den Wettercode in einer Vorlage für tägliche Notizen. Verfolge, wie der Wetterstandort ermittelt wird; abgeschlossen ist die Aufgabe, wenn das generierte Wetter den tatsächlichen Standort des Benutzers unter macOS verwendet statt des hier gemeldeten weit entfernten Standorts.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.