Location for Weather
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 204
- Forks
- 82
- Avg merge
- 22h 27m
- Merged PRs (30d)
- 3
Description
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...
- Open the Plugin's Preferences by going to
NotePlan's menu > Preferences > Pluginsand 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" - Now open the Plugin Console by going to
Noteplan > Help > Plugin Console - Run the plugin command you're reporting
- Copy the output from the Plugin Console and paste it below
- Delete any output that has personal information you don't want in there
Executing function 'onSettingsUpdated'
Executing function 'insertNoteTemplate'
Executing function 'listDaysEvents'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Templating plugin entry points named in the console log, especially insertNoteTemplate and listDaysEvents, and reproduce the weather code in a daily note template. Trace how the weather location is obtained; done means the generated weather uses the user's actual location on macOS rather than the distant location reported here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100