- 👋 I'm a polyglot developer
- 📫 How to reach me: LinkedIn
inderdhir / datweatherdoe Goto Github PK
View Code? Open in Web Editor NEWSimple menu bar weather app for macOS
License: Apache License 2.0
Simple menu bar weather app for macOS
License: Apache License 2.0
Location is off on the Mac being used. In order to get data, zip code or latitude/longitude must be used. While the latter works fine. the former option, zip code, returns an error: Zip Code Error. I have tried uninstalling and reinstalling via Homebrew but the issue persists.
Minor issue, but when DatWeatherDoe is running and it's 0 degrees (Celsius, haven't observed Fahrenheit ... yet), it's displayed as minus zero degrees C ( -0°C )
I'm using the latest available version of DatWeatherDoe, via brew.
Here's a screenshot, to illustrate:
Love DatWeatherDoe, it's useful to me!
Location services are on, and DatWeatherDoe has access to them.
After upgrading to an Apple Silicon Macbook pro, DatWeatherDoe displayed "Location Error" when I selected location and "Network Error" when I typed in the zip code correctly (XXXXX,USA). However, lat/long still works fine for the weather.
I would love a way to display both so that I can communicate the weather to my co-workers who live in different countries.
Hello,
Trying to set up location for this manually. Got the API key in the plist file. Config box says zip code, iso 3166 country code
.
Wikipedia has this document: Current ISO 3166 country codes and I am guessing the column "Alpha-2 code" is the right one because the example is us
.
I live in Canada (ca
), which has postal codes instead of zip codes.
Here is an example: Whitehorse which contains the postal code for example Y1A 0A1
so tried Y1A 0A1,ca
Something annoying with postal codes is there will be some kind of validation on the format wrt capital letters and/or space. A1A 1A1
is the most correct format. I tried a couple different permutations but was unable to get this to work.`
Also tried city name, country code
as that's how the website works.
by way of troubleshooting, 90210,us
does work.
Any thoughts?
Hi!
First of all, thanks for making this amazing app! I was having issues recently retrieving the weather, so I tried downloading the latest version, but I'm getting a segfault trying to run it.
Process: DatWeatherDoe [5544]
Path: /Applications/DatWeatherDoe.app/Contents/MacOS/DatWeatherDoe
Identifier: com.inderdhir.DatWeatherDoe
Version: 2.0.0 (14)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: DatWeatherDoe [5544]
User ID: 1882834436
Date/Time: 2021-05-27 10:32:15.936 -0400
OS Version: Mac OS X 10.15.7 (19H1030)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: D6BD9760-E745-9184-E65C-AE31020B1406
Time Awake Since Boot: 1900 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [5544]
VM Regions Near 0:
-->
__TEXT 000000010dc3f000-000000010dc5b000 [ 112K] r-x/r-x SM=COW /Applications/DatWeatherDoe.app/Contents/MacOS/DatWeatherDoe
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 000000000000000000 0 + 0
1 com.inderdhir.DatWeatherDoe 0x000000010dc4ab61 0x10dc3f000 + 47969
2 libswiftCore.dylib 0x00007fff6d043e47 swift_getSingletonMetadata + 935
3 com.inderdhir.DatWeatherDoe 0x000000010dc49e8d 0x10dc3f000 + 44685
4 libswiftCore.dylib 0x00007fff6d05b9a0 swift::Demangle::TypeDecoder<(anonymous namespace)::DecodedMetadataBuilder>::decodeMangledType(swift::Demangle::Node*) + 2784
5 libswiftCore.dylib 0x00007fff6d058edb swift_getTypeByMangledNodeImpl(swift::MetadataRequest, swift::Demangle::Demangler&, swift::Demangle::Node*, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsigned int)>, std::__1::function<swift::TargetWitnessTable<swift::InProcess> const* (swift::TargetMetadata<swift::InProcess> const*, unsigned int)>) + 411
6 libswiftCore.dylib 0x00007fff6d058ce2 swift::swift_getTypeByMangledNode(swift::MetadataRequest, swift::Demangle::Demangler&, swift::Demangle::Node*, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsigned int)>, std::__1::function<swift::TargetWitnessTable<swift::InProcess> const* (swift::TargetMetadata<swift::InProcess> const*, unsigned int)>) + 482
7 libswiftCore.dylib 0x00007fff6d0571dd getObjCClassByMangledName(char const*, objc_class**) + 381
Let me know if there is any other information that can help diagnose.
Entering an incorrect postal code makes the app invisible in the menu bar, after which it seems there is no way to access the settings to change the postal code. I tried finding it in the plist or other files but couldn't locate where the postal code is stored. Uninstalling the app with an uninstaller like TrashMe and then reinstalling it also didn't solve the issue.
In the end I found out there is a tiny invisible bar in the menu bar that you can click on to reconfigure the app. Perhaps it would be good to have "N/A" or some default icon displayed in the menu bar when data cannot be retrieved, so at least the settings are easily accessible and it's clear the app has launched and not crashed?
I'm getting Network Error
with the version 4.1.1 in the menu bar. I installed it via brew for the previous version and it worked then today it upgraded and it stopped working, showing this error.
Had to go to previous version and it works just fine.
Also the 4.1.1 is missing the OPENWEATHERMAP_APP_ID
value in the file Info.plist
Installed the App through Homebrew Cask.
When trying to start, macOs Catalina blocks the software and detects it as harmful.
Is it possible to show the weather conditions with text as well as the temperature and symbol? For example "Party cloudy", "drizzle", "foggy" etc. Similar to this extension: https://extensions.gnome.org/extension/613/weather/
A thermometer icon is not displayed in the menu bar after the app is upgraded to version 3.2, as shown below:
Version 3.1.1 | Version 3.2 |
---|---|
![]() |
![]() |
The menu bar displays a thermometer icon for the temperature information below the location pin icon.
MacBook Air M2
macOS 12.6.1
Setting up the app for the first time should automatically detect location if location services are enabled
Location error
was presented, even though location services were allowed when prompted on first open
brew install --cask datweatherdoe
/Applications
macOS 12.5.1 Monterey
Apple M1 Pro chip
Based on @anonymousaga's tip in #79:
The app is now functioning, as stated in the workaround, but you mentioned in #79 re-opening if it cropped up again, so I wanted you to know that it is recurring for at least one other person.
OpenWeather has hourly precipitation, temperature, and 8-day forecast—can the app display them?
Since shortcuts are only active once you click on the menubar and there is no text input that would require non-modifier keys, requiring ⇧⌘ prefix seems excessive
Is it possible to just use single-key shortcuts? So R would refresh without any modifiers
I'd love to see a full weather forecast in the menu (see #38) but I figure it might be easier for now to add a menu item that when clicked opens https://openweathermap.org/city/...
in the browser.
If I quit the app and open it, or if I reboot the computer, using location fails with "Location error". However, if I set it to lat-long, put in my lat-long, then switch it back to the location, it will work on location (properly, and it will update the weather if I move out of that location) until I next quit the app or reboot.
Anyway, I still love the app! It is very helpful.
Thank you for the new update. being able to hide the unit of the temperature is definitely helpful to save space on the already cramped menu bar.
However, there is one issue that hasn’t been fixed in this new update. unlike all other macOS new apps if you make changes in the configuration window changes don’t apply unless you press done and close the configure window. moreover, the configuration window won’t go away when you click on the free space on the desktop and you must click on the done button to close the window. it’s very annoying and gives me the feeling that it’s an outdated app that hasn’t been updated since OSX Yosemite.
plus, the short weather description should be after the temperature not the other way around, and there is no need for a comma.
also, can you add the version number configuration window?
thank you again,
P.S. I'm not sure what the separate the value with does?
P.S.2 Why the version 4.00 is not available on brew?
各位大佬,辛苦了,怎么才能在不开代理的情况下正常使用,目前不开代理就会显示网络错误。
I noticed that if I configure DatWeatherDoe with my zipcode e.g. 10021,us
then it successfully retreives the conditions for the menubar, but choosing See Full Weather results in a browser URL of https://openweathermap.org/city/0 which is invalid.
I don't really see anything in the openweather API to map zip codes to city IDs or names, so maybe in lieu of that, adding a config field for manually inputting cityId
and then using that here would be a workaround?
Is there a way we can just have the temperature round to the nearest whole number instead of using a decimal place?
It'd be great to see more information in the drop down such as:
When Weather source
is set to "Postal code", the menu option Show complete weather
opens https://openweathermap.org/city/0 in the browser (= London, GB) regardless of the actual postal code set in DatWeatherDoe.
OpenWeatherMap site is opened with the location configured in DatWeatherDoe.
Configure
menu itemWeather source
to "Postal code"Postal code
to "50769,de"Show complete weather
menu itemmacOS 13.1
DatWeatherDoe 3.2
used this app because it showed the temperature in F° and C° simultaneity on the menu bar. disappointed to see the option disappeared on the version 4 and forced me to switch back to version 3. please add it back.
Just discovered this app and am loving it!
That said, could you add the option to display the wind speed in mph as well as m/s? I suppose it could either be a different dropdown (like Fahrenheit) or make that an Imperial/Metric dropdown? Not sure.
Does the app check the min version of OS before installing? This version of app stated min version of macOS is 11.
openweathermap provides weather advisories. it would be nice if the menubar icon could flash or change color while an advisory is in effect (until the user views the advisory). or maybe display a notification. the macos weather widget also displays advisories, and supposedly can display notifications, but i've never been able to get them to work.
macOS Ventura 13.0 (I think this happens on 12.6 also)
If WiFi is disabled, DatWeatherDoe says "Location Error" and can't get the weather/location. As soon as WiFi is turned on, it works. Is that expected behavior?
Just updated MacOS as well as all of my brew formulae. Can post logs or additional info if needed.
I would like to contribute and translate this nice application to French. Can you make the necessary (generic) fr.lproj available and I will gladly help
On macOS 11.6.2 (Big Sur), using DWD 3.0.1, the menu bar icon just says "Network Error." I tried trashing the app and removing all preferences. Disabling firewall temporarily doesn't solve the issue. Even manually entering the ZIP code with country code (e.g. 7****,us) doesn't work. DWD 2.2.0 works perfectly.
Quitting and reopening the app removes the coordinates from the [latitude], [longitude] field in Configure. The coordinates do not persist in the UI. It is inconvenient that the user has to re-enter the coordinates whenever they want to change another setting, such as Refresh Interval, Show Weather Icon, or Show Humidity.
The [latitude], (longitude] field retains the coordinates the user has entered and is not blank when they restart the app.
MacBook Air M2
macOS 12.6.1
Every time I refresh by pressing R or clicking on the Refresh button, it displays the message "Canceled" in place of the temperature for 1-2 seconds, then it shows the new temperature. Can you please fix it?
P.S. Please add the version number to the configure page.
P.S.2 The configure page won't close until you press "Done." It's not a big deal, but it's annoying.
It's mentioned in the readme, but there's no example plist file.
I used brew cask install datweatherdoe
and I see the app in my bar. how do I configure my api key? I don't see any plist files anywhere.
As of V 3.2.1 you can no longer use any other Zipcode, I.E., only accepts American Zipcodes now, as before i was able to use an Aus/Jpn Zipcode. Hopefully this gets fixed! As, the 'location' feature is also faulty, it's not correctly showing my location (I won't say where for privacy reasons, but it's nowhere close to me) about 1,200km away from my actual location.
the new info is too dim; i have to use zoom to make it out. when viewing on a large monitor, this may be ok, but if you're on a 13" retina macbook at full resolution, it's very hard to make out. i normally use dark mode with increased contrast, but also tested with/without increased contrast and reduced transparency in light and dark.
Is there a way to display more than one location?
Sometimes the icon disappears and it only shows the temperature. Refreshing or re-configuring with a different location, etc. never get it to display again. Occasionally restarting will get it to show again, but not always. Changed desktop appearance from dark to light to make sure it wasn't a case of black image on black background, but not the case. So it might be a data issue from the api, though pulling up the page on openweathermap.org looks normal. Maybe there should also be a link to the api output, to better help debug.
Forgive the noob question. But if I used brew to install where would I find the Config.xcconfig file exactly?
Developer Setup
Get your personal API key for openweathermap [here](http://openweathermap.org/appid) Add the following in "Config.xcconfig":
OPENWEATHERMAP_APP_ID = YOUR_KEY
I'm running MacOS 10.14 and cannot run the latest version because it requires 10.15. You should mention this to avoid confusion and questions from users
First I allowed the app the used of location services and made it determined the location for the forecast from that. Then I found a bit better weather station so I changed the location to manually inputting latitude and longitude.
Now even with the location set to latitude and longitude manually I often see the system icon saying that the app is using location services even though it has no reason to do so.
I had to remove the location services permission from the app to fix this.
Using 3.1.1 on Ventura.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.