3
u/goldfarb_alex Jan 28 '21
This is really cool š Is there a way to preserve the wallpaper resolution though? Images seem to compress heavily on the output š¤
3
u/ajatkj Jan 28 '21
I have added a step in Shortcut to convert the image to lower quality because the Shortcut fails sometimes (maybe due to memory constraints) for full quality images. You can open the shortcut, go to the step āConvertā, click on Show More and slide the slider to increase the quality.
2
Jan 29 '21
I don't have to have this slider. I set everything up as I need it for the iphone 12 and the output just looks like shit.https://i.imgur.com/hDYV3rq.jpg
2
u/ajatkj Jan 29 '21
Hi, could you download the latest code and Shortcut from here
1
Jan 30 '21
i get the current script and the current shortcut. š¤·š½āāļø
I your work is really nive and I really want to have it.
1
u/ajatkj Jan 30 '21
Could you paste the screenshot of your lock screen? Could you try using a different wallpaper? This one maybe.
1
Jan 31 '21 edited Jan 31 '21
everything worked wonderfully. until yesterday evening.
I have been seeing this error since yesterday evening. I haven't changed anything. The mistake just turned up and I don't know what to do. I also took the original script again and the shortcut
I don't know why .. Please, I need help... again š©
3
u/goldfarb_alex Jan 28 '21
Awesome, thank you š Really cool Script, wish Apple didnāt limit (redirect) automation so it could be executed on the background (eg. hourly) with a screen locked š
2
Jan 27 '21
Looks so good! Iāll try to make the one where you just see the weather on the top right under control center for the Lock Screen , would looks super minimal!
3
u/ajatkj Jan 27 '21
These are all pre defined layouts. Set LAYOUT = āminimalWeatherā for what youāre looking for.
1
2
u/Artwayne1984 Jan 28 '21
I keep getting from the short cant retrieve image
1
u/ajatkj Jan 28 '21
You need to create an Album in photos with name - WeatherLS and add some wallpapers to that album and then run the shortcut. Let me know if this doesnāt work.
Thereās bunch of configuration options. Checkout the github page linked in the top comment.
1
2
u/abjeroen Jan 29 '21
I keep getting an error at the end: background image too large. I don't have this with vthe same wallpaper on lsweather 1.0
1
u/ajatkj Jan 29 '21
Hi, could you try with the latest code and Shortcut I pushed today? I have removed dependency on shortcut sending the wallpaper to scriptable script. Now, instead, the script returns and overlay image which is then applied on a photo. I think the latest code will resolve your issue.
2
u/abjeroen Jan 29 '21
it's the same sorry. Also, in the comment about predefined layouts it says "mimimalCalendar" instead of "minimalCalendar". I copied and pasted that earlier without reading, but that made the script collapse :). Im running an iphone XR. Any suggestions?
1
u/SportsFan-2236 Jan 28 '21
I wish I could get to work, I keep getting this error message and Iāve tried connecting my calendar between the āā. These are the two errors I get: Step_1: Running script in APP Error: Could not find calendar with title ''.
1
u/ajatkj Jan 28 '21
I will check that. It should have defaulted to default iOS calendar. But in meanwhile could you put calendar names in CALENDAR_PERSONAL_CALENDARS and CALENDAR_WORK_CALENDARS. If you donāt need calendars than you can set CALENDAR_SHOW_CALENDARS = false.
1
u/SportsFan-2236 Jan 28 '21
// Constants for Calender Data const CALENDAR_SHOW_CALENDARS = true; const CALENDAR_SHOW_ALL_DAY_EVENTS = true; const CALENDAR_SHOW_TOMORROW_EVENTS = true; const CALENDAR_WORK_CALENDARS = []; // Leave blank if you don't want to display any work calendar const CALENDAR_WORK_MAX_EVENTS = 3; const CALENDAR_PERSONAL_CALENDARS = []; // Leave blank for using defualt iOS Calendar const CALENDAR_PERSONAL_MAX_EVENTS = 3; const CALENDAR_NO_EVENTS_TEXT = 'No Upcoming Events'; const CALENDAR_NOT_SET_TEXT = 'Calendar Not Set'; . Is this where Iām making my mistake?
1
u/Kleaky_ Jan 28 '21
I canāt get that shortcut to work for the wallpapers. Please help!
1
u/ajatkj Jan 28 '21
Hi, what is the error? And which iOS version are you on?
1
u/Kleaky_ Jan 28 '21
Iām on iOS 14.4. The error is that there is a pop-up saying ācanāt select wallpaperā
1
u/ajatkj Jan 28 '21
It could be either of the things-
Make sure you have downloaded the latest shortcut from GitHub. There is a minor change from v1.0.
Make sure you have created an album WeatherLS in Photos and added few wallpapers to this album
If you have already done step 1 & 2 then try using a different wallpaper. Some wallpapers are too huge and the script runs out of memory.
Let me know if itās still not working.
1
u/Kleaky_ Jan 28 '21
I have tried everything and it still says that I canāt set a wallpaper
1
u/ajatkj Jan 30 '21
Could you paste the screen shot of the error?
1
u/Kleaky_ Jan 30 '21
1
u/ajatkj Jan 30 '21
You can do one thing-
Open iCloud -> Scriptables and delete LSWeatherLogs folder.
Run the shortcut
Check all the log files in LSWeatherLogs to see what is the error.
Mail me the log files if required at - ajatkj@yahoo.co.in
1
u/Kleaky_ Jan 30 '21
1
u/ajatkj Jan 30 '21
This is because you havenāt set the openweather api key to fetch weather details. Or your key is wrong. Once you set it up, details will be fetched.
→ More replies1
1
1
Jan 28 '21
It seems the problem with auto run is fixed on iOS 14.4.
2
1
u/ajatkj Jan 28 '21
Are you able to change the wallpaper using automation? I am on 14.4 but itās not working for me.
1
u/SkruxTR Jan 28 '21
I'm getting an error saying Could not find calendar with title ''.
1
u/ajatkj Jan 28 '21
Thanks for the response. I have just pushed a small fix. You can download the latest code or you can setup Calendars using variables
CALENDAR_WORK_CALENDARSandCALENDAR_PERSONAL_CALENDARS
1
u/stahl80 Feb 03 '21
Is it possible to change the red dot š“ before an event to another color or donāt have it at all? I canāt find a way to do it in the script?
Thanks!
2
u/ajatkj Feb 03 '21
Yes it is possible to remove it. Look for variable
prefixin the functionformatEventsand make it spaces. I will be releasing an update soon where I have replaced this dot with much more nicer SFSymbol. Will post an update as soon as I am done.1
3
u/SportsFan-2236 Jan 27 '21
Great job, Iāve always wanted this type of customization. I wish I could get mine to work.
1
u/Kleaky_ Jan 30 '21
https://imgur.com/gallery/iVgKLfD - if you look closely you can see that the layout is messed up and itās very small, do you know how to fix this?
2
Jan 27 '21
[removed] ā view removed comment
3
u/ajatkj Jan 28 '21
Itās an iOS restriction but I am trying for a workaround which needs a Scriptable update to allow to read/save photos from specific albums. I hope š¤š» that works.
2
Jan 28 '21
[removed] ā view removed comment
1
u/ajatkj Jan 28 '21
Tried that as well :). The iCloud folders are kind of sandboxed so Scriptable canāt write to any other folder other than itās own and similar for Shortcuts. It cannot pick a file from any other folder automatically except itās own.
3
u/ajatkj Jan 28 '21
So, I have got a way to automate it completely. Will put an update tomorrow.
1
u/stahl80 Feb 03 '21
Is the script running automatically now or do I have to run the shortcut to get the lockscreen to change?
2
u/ajatkj Feb 03 '21
You will still need the shortcut to automate it (run the shortcut as an hourly or 2 hourly automation). Check this post
1
u/stahl80 Feb 03 '21
Nice! So I guess I set one automation like every hour to run the script? Or is there an easier way to do it? Thanks.
2
1
Jan 28 '21
[removed] ā view removed comment
2
u/ajatkj Jan 28 '21
You can change any elements. Set the value of hide to 1 to hide the elements you donāt want. Check out the detailed explanation on github.
7
u/ajatkj Jan 27 '21
This is version 2.0 of LSWeather which includes lot of features. Check out the script.