Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Location for Weather

未關閉
#493 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
javascript
領域
tooling

研究方向

從主控台記錄中提到的 Templating 外掛程式進入點開始,尤其是 insertNoteTemplate 和 listDaysEvents,並在每日筆記範本中重現天氣程式碼。追蹤天氣位置的取得方式;當產生的天氣使用使用者在 macOS 上的實際位置,而不是此處回報的遙遠位置時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

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'
主要語言
JavaScript
星號
204
分支
81
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NotePlan/plugins 的其他 Issue

查看 NotePlan/plugins 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。