I didn't find the commented piece but on this part:
set weather to fetch JSON from "http://api.openweathermap.org/data/2.5/weather?lat=" & item 1 of clocation_coords & "&lon=" & item 2 of clocation_coords & "&units=metric&appid=32c4256d09a4c52b38aecddba7a078f6"
Right click the applications - show package - resources - and copy out their app icons.
I do this if I can't pull an artwork from iTunes
As for Todoist, I've gone a longer route through IFTTT and Dropbox. Probably not something to include in the overall preset as there are quite a few manual settings each user would need to do. But it might help anyone personally. As it doesn't just have to be Todoist.
Working on a fix for Calendar, will have it posted shortly. Weather widget is a new version using the Dark Sky API and LocateMe since JSON/Location Helper don't work on Mojave. The Python module "requests" is also required for this new weather widget to work, and that's the part you don't seem to have installed. Install with pip install requests and it should work
I'm running into an issue with what I'm assuming is caused by the weather widget (I am using the latest 2.526 goldenchaos on 2.530 BTT -- which might be the reason).
What happens is after a period of time (usually when the computer goes to sleep and I log back on), the entire touchbar is black to the left of the search button. The same happens when holding down option. Disabling the weather script for both restores everything back to normal.
This is what happens when the weather script canât get any weather data (such as when there is no network connection). Iâll see how to add better error handling to the script so that doesnât happen. Restarting BTT will fix it if youâve restored network access.
The weather script was working fine until this afternoon where I started getting the following error:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/Users/chompas/Library/Python/2.7/lib/python/site-packages/requests/models.py", line 896, in json
return complexjson.loads(self.text, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Unfortunately it's a limitation of the Dark Sky API. I only get 1000 requests per day, so I have been working on lowering the number of requests the preset uses. Unfortunately, the weather widget appears in multiple locations, and it wouldn't look good to selectively hide the weather widget. It also wouldn't fix the underlying issue of only having 1000 requests, womp.
I would love to use a service that doesn't have a limit, but there doesn't seem to be one that's reliable. I'm open to suggestions, and in the meantime I'll work on further reducing the number of API calls it uses.
Hello...I'm getting the same traceback error using the weather widget (am on Mojave). I did the pip install requests but it did not seem to fix anything. Is there anything I should double check?
I don't know if this was explained somewhere else, but how do you upgrade the preset without wiping out changes you've made to the existing one? For instance, I disable certain items like Spotify and will modify the iCal portion for my specific calendars, etc, etc.
Right now I've just been selecting to wipe everything out but that means having to redo the settings. Choosing to import triggers only will double everything up.
Unfortunately, there is no easy way to do a delta update my recommendation is to modify it as little as you can get away with to make upgrades easier, because you'll have to copy your changes over. I'm constantly trying to reduce configuration steps, and the calendar is the worst offender at the moment.
Regarding the weather widget...I suspect there's something wrong with my config as it never seems to work for me. I understand there's a limit to how many calls that can be made, but unless it's being reached soon after each daily "reset" I suspect I have a problem on my end. Is there something I can run on my end to make sure I've got things set up correctly?
I'm also finding that the vol up/down using the two finger gesture is very slow. It didn't used to act this way but that was back on HS. I'm running Mojave now so don't know if that's a factor. Is there some way to adjust how "fast" the vol gesture works?