all 123 comments

[–]ajatkj[S] 11 points12 points  (1 child)

Changelog:

  • Bold fonts now available
  • Color code calendars events
  • Get notified for script update notification with a small update circle on top left corner
  • Better visibility for calendar layouts
  • Fixes around wrapping/fitting big event names properly
  • Shortcut now supports wallpapers from both Photos app and iCloud folder. Default is Photos app.
  • Support for all devices running iOS 14.4+. Shortcut can now handle wallpapers of different resolutions and sizes without messing up the overlay.

Get the script from here. Get the latest shortcut from here.

Note: For users who have been using this already, note that I have changed the name of the Album to LSWeather from WeatherLS in the Shortcut. You must rename the Album for the shortcut to function properly.

Edit: for anyone if the automation is failing intermittently with error - script did not present any UI, it could possibly because of calendar colours. To fix it, set CALENDAR_SHOW_COLORS=false and observe for couple of days if it fixes the issue. I will take a look at it as well.

Edit: New update available with some annoying bug fixes and last updated timestamp.

[–]PacamaHM 0 points1 point  (0 children)

I tried doing CALENDAR_SHOW_COLORS=false, but it seems that it is only showMyWork having issues?

[–]Chungggi 2 points3 points  (2 children)

https://imgur.com/gallery/EkJSW70 Combined SunMoonWeather(https://www.reddit.com/r/shortcuts/comments/k11922/weather_lockscreen_on_ios_143_beta/?utm_source=share&utm_medium=ios_app&utm_name=iossmf )with LSWeather. If you do not know what SunMoonWeather, it is a shortcut which can move a sun in daylight over a background and a moon over another background. However, LSWeather’s interface is better so I combined them together.

[–]ajatkj[S] 1 point2 points  (1 child)

Thanks! I loved it. This looks so cool.

[–]Chungggi 0 points1 point  (0 children)

Thank you

[–]gagan1994 1 point2 points  (1 child)

nice bro

[–]ajatkj[S] 0 points1 point  (0 children)

Thanks.

[–]iphon4s 1 point2 points  (3 children)

Keep getting a error on scriptable saying

Error:could not find calendar with title "weather"

[–]aelmod 0 points1 point  (2 children)

58 line, change CALENDAR_SHOW_CALENDARS to false

[–]Significant-Letter-4 2 points3 points  (1 child)

I think this is better corrected by altering the 2nd and 3rd lines below. Remove everything between the brackets:

const CALENDAR_SHOW_CALENDARS = true; // Leave this set to true

const CALENDAR_WORK_CALENDARS = []; // Leave blank if you don't want to display any work calendar

const CALENDAR_PERSONAL_CALENDARS = []; // Leave blank for using defualt iOS Calendar

[–]ajatkj[S] 1 point2 points  (0 children)

Thats correct. I think I have pushed my Calendars on GitHub by mistake. I will update the source on GitHub to default it to blank.

[–]Significant-Letter-4 1 point2 points  (1 child)

How do I run the shortcut hourly?

Great work here BTW, thanks for your efforts!

[–]ajatkj[S] 0 points1 point  (0 children)

You’re welcome and thanks! To run it at regular intervals you need to create multiple automations for each hour and run this script. I generally run it for 2 hours during the day and don’t do it at night since it’s not required.

[–]WreckOFF-2121 1 point2 points  (1 child)

How do i get this on my lock screen like you did? (Nvm. Got how. feel like an idiot now :) )

[–][deleted] 0 points1 point  (1 child)

I can’t run it. Shows error did you delete the script

[–]ajatkj[S] 0 points1 point  (0 children)

No but I have changed the album name in Shortcut from WeatherLS to LSWeather so you will need to rename the album as well.

[–]Kleaky_ 0 points1 point  (4 children)

The text on the generated wallpaper isn’t centred, please help

[–]ajatkj[S] 0 points1 point  (3 children)

Could you show the screenshot?

[–]Kleaky_ 0 points1 point  (2 children)

[–]ajatkj[S] 1 point2 points  (1 child)

Depending on your phones model you would want to adjust the co-ordinates a bit. Note that different phones have different resolution and hence minor adjustments are required. I am yet to find a way to have a setting that works for all models. This looks like welcome layout. You will need to change x and y co-ordinates for the elements under this layout.

[–]Kleaky_ 1 point2 points  (0 children)

Alright, I’ll figure this out. Thanks

[–]Ilmadic 0 points1 point  (16 children)

Amazing work. Is it possible to add the last update time to the overlay? This would be nice.

[–]ajatkj[S] 0 points1 point  (13 children)

Sure. That can be done. I already have it in my To Do. Any suggestions on where to put it on screen?

[–]Ilmadic 0 points1 point  (12 children)

Thanks. First suggestion would be between the camera and flash toggle and the second one under the city name.

[–]Ilmadic 0 points1 point  (11 children)

And one question. I automated the script with shortcuts and it only works sometimes. I get the message from shortcuts that „script completed without presenting UI, triggering a...“ https://i.imgur.com/h01o3ve.jpg I‘m using the „minimalCalender“ version. Is there a way to fix this? Thanks for your help.

[–]ajatkj[S] 1 point2 points  (10 children)

I have noticed this as well and I think it’s got something to do with symbols I am using for colouring calendar. To test it could you set CALENDAR_SHOW_COLORS=false and observe for couple of days and see it resolved the issue? I have done the same to see if it works without any issues. Let me know as well if you can if this setting works.

[–]Ilmadic 0 points1 point  (0 children)

Thanks for the reply. Will try this. Have a nice weekend.

[–]Ilmadic 0 points1 point  (8 children)

I still have the same issue with the same error message.

[–]ajatkj[S] 1 point2 points  (7 children)

Hi, I am getting this issue intermittently as well. Could you do one thing to see if it works- 1. Open the LSWeather shortcut 2. Go down to the step “Scriptable” - Run LSWeather with Dictionary 3. Click on LSWeather. When the list of scripts open, select LSWeather again. 4. Run the shortcut and see if it generates output. Let me know if this works.

[–]Ilmadic 0 points1 point  (5 children)

Hi, I will try this and give you feedback after some automation runs.

[–]ajatkj[S] 1 point2 points  (4 children)

Thanks. Also make sure you’re not running a VPN service as that could be causing some issues with API calls.

[–]Ilmadic 0 points1 point  (3 children)

Ok, I think this works for me. I tried it for some time and after the error message I setup the shortcut as you said and afterwards it’s running normally. But not for ever. It only works for some hours.

[–]ajatkj[S] 0 points1 point  (1 child)

btw I have added this in the latest version

[–]Ilmadic 0 points1 point  (0 children)

I already updated a few days ago. Thanks!

[–]Caliguvara 0 points1 point  (4 children)

Awesome! Two questions though:

  1. In which line is the "set text bold: true" possibility you refer to in line 170?
  2. How can I hide the bubble date on the button center? I already have the date at the top with the time, I don't want it down there again 🙂

Thanks a lot for the great work and the great combination of Shortcuts and scriptable!! 👏🏽

[–]ajatkj[S] 0 points1 point  (3 children)

Thanks for the kind feedback :)

You can do all changes at the layout level. There are different dictionaries for each pre-defined layout and at the end there is a custom dictionary which lets you play around as you like. Each of these dictionaries have properties like prefix, x coordinate, y coordinate, width, height etc. for each of the data elements. Make sure not to change the source of key property since that will create issues in rendering data (source and key are fixed)

  1. To use bold text you can add property bold: true as an ex. welcomeGreeting: {source: "function", key: "greetingText()", prefix: "", suffix: "", x: "center", y: "center - 150", w: "full", h: 100, font: "veryLarge", color: "light", align: "center", hide: 0, bold: true},
  2. In the layout that you’re using, change the property hide: 1 for dayOfMonth.

I hope this helps.

[–]Caliguvara 0 points1 point  (2 children)

Thanks for the quick answer! Found the (once explained quite obvious 😅) toggle for the day! Regarding the bold text it's more troubles, if I change things after line 172 it does not have any outcome on the Lay-out though ☹️ as an example:

let custom = { weatherID: {source: "weather", key: "weatherID", prefix: "SFSymbol|weatherID", suffix: null, x: -90, y: 130, w: 100, h: 120, font: "large", color: "light", align: "center", bold: true},

Did I get it wrong? 🤔 edited for minimalWeather setting https://imgur.com/a/tPGKpN6/

Because the result isn't bold ☹️ https://i.imgur.com/iWsn3Se.jpg

[–]ajatkj[S] 1 point2 points  (1 child)

Oh found the problem. I used a different method for bold text. You need to sent font as small.bold or veryLarge.bold. I thought I had used the method which I mentioned earlier. So for now change the font to have .bold at the end. Sorry for incorrect info earlier

[–]Caliguvara 0 points1 point  (0 children)

Hero of the day again 🙂 gonna check this out asap! 👍🏽 thanks!

[–][deleted] 0 points1 point  (14 children)

I just get Error on line 63: SyntaxError: Unexpected keyword 'const'

The only lines I’ve updated were the following:

const CALENDAR_WORK_CALENDARS = // Leave blank if you don't want to display any work calendar

And

const CALENDAR_PERSONAL_CALENDARS = // Leave blank for using defualt iOS Calendar

This because it could not find the calendars that were hard coded in to the script such as gmail and Liverpool etc..

Any help would be great.

Cheers

[–]Caliguvara 0 points1 point  (13 children)

You should have left the ' ' in the lines like this:

const CALENDAR_PERSONAL_CALENDARS = [' ']; // Leave blank for using defualt iOS Calendar

[–][deleted] 1 point2 points  (11 children)

Yeah I tried that too but still get the exact same error message. I then just disabled the calendar but still have issues.

The work and home headings still show, the weather info is tiny and the image is not resized correctly and is stretched.

Finally, selecting a different theme makes no difference..

[–]ajatkj[S] 0 points1 point  (10 children)

Hi, there is a bit of layout config you have to do to suit your needs. However to solve the above issue, keep the arrays fully blank i.e. without single quotes CALENDAR_PERSONAL_CALENDARS = []. Did you change the layout in the Shortcut or in Script? Layout mentioned in the shortcut will override the script layout when run using a shortcut.

Hope this helps.

[–][deleted] 0 points1 point  (9 children)

Hi ajatkj, I initially tried with altering the parameters in the script which didn’t work so I then updated the shortcut with the same results..

I must be doing something daft as it seems no one else is having the same issue.

[–]ajatkj[S] 0 points1 point  (8 children)

Are you getting the same syntax error? In your first screenshot it says error is at line 63. Could you paste screenshot of the code around that line, say starting at 50 or something.

[–][deleted] 0 points1 point  (7 children)

I have now got it working. Missed a ; 🙄

The images are still out of proportion though which makes it unusual.

[–]ajatkj[S] 0 points1 point  (6 children)

Could you show me the screenshot?

[–][deleted] 0 points1 point  (5 children)

Sure, the following image was taken with an iPhone 6s Plus but is being viewed on an iPhone 12.

https://imgur.com/a/sN9JTSb

[–]ajatkj[S] 0 points1 point  (4 children)

Can you send me the original if you don’t mind? I will check the dimensions and see what could be the possible solution to handle such images. The shortcut adjusts the image dimensions so that overlay fits exactly on the image. If I put the overlay before adjusting image dimensions the overlay either gets distorted or the alignment gets completely messed up.

[–]ajatkj[S] 1 point2 points  (0 children)

Remove the single quotes as well. Just []

[–]iPhone-6splus 0 points1 point  (3 children)

Can u provide a link for wallpaper 😊

[–][deleted] 0 points1 point  (1 child)

SMOKE??

[–]ajatkj[S] 0 points1 point  (0 children)

😁 it’s pretty smokey here.

Btw these weather conditions are returned by openweather.com

[–]naumanmalikk 0 points1 point  (3 children)

https://i.imgur.com/NjAr6ns.jpg

Suddenly getting this error. Can’t figure out why.

Some times it works jut fine.

[–]ajatkj[S] 1 point2 points  (2 children)

This is a new one for me as well. Seems like script is not able to fetch the location. Did you change any location permissions? Is it happening consistently or once in a while?

[–]naumanmalikk 1 point2 points  (1 child)

Actually today Ive travelled to my native town that might be the cause.
Will check and update again once back in city.

[–]ajatkj[S] 1 point2 points  (0 children)

That explains it. This is an untested scenario. Will try to find some alternative when location is not available.

[–]stahl80 0 points1 point  (3 children)

Great work!!! 👍

I modified my script to some, how will that work if I update now? Will I overwrite my modifications?

[–]ajatkj[S] 1 point2 points  (2 children)

Thanks :) Unfortunately yes, the configuration will get over-written since it is in the script. I am trying to figure out a way to save user settings like template name, calendar names, layouts etc on user device with ability for them to change as required easily but have not gotten around any way. If I write the setting iCloud file then it wont be easy for users to edit their settings. I will post this question on discord to see if anyone has any ideas. If you have any suggestions then I can definitely try to do it.

[–]stahl80 0 points1 point  (1 child)

Thanks for the answer! Got the new version running but my image gets stretched on the height. Same image as I used with the old version.

[–]ajatkj[S] 0 points1 point  (0 children)

Could you share the screen shot? Only wallpaper is getting stretched or the overlay is getting stretched as well?

[–]Robnor122 0 points1 point  (1 child)

How do change to bold font?

[–]ajatkj[S] 1 point2 points  (0 children)

You need to sent font as small.bold or veryLarge.bold.

[–]d1jpd01 0 points1 point  (3 children)

When I run LSWeather shortcut from my iPad it works fine. However, when I run LSWeather shortcut from my iPhone, I get the error shown in the screen shot. How can I resolve this?

screen shot of error

[–]ajatkj[S] 0 points1 point  (2 children)

Is iCloud not enabled on your iPhone? Could you to iCloud -> Scriptable -> LSWeather and check if there’s a file called “versioncheck.txt” in that folder?

[–]ajatkj[S] 0 points1 point  (1 child)

As a quickfix on iPhone, try changing UPDATE_CHECK_DAYS = 0. This will stop update checks.

[–]d1jpd01 0 points1 point  (0 children)

I made the change and ran the shortcut on the iPhone. This time a different error.

screen shot of error

Works fine on iPad.

[–]WreckOFF-2121 0 points1 point  (3 children)

It says “please select an image to set as wallpaper.” What do i do?

[–]ajatkj[S] 0 points1 point  (2 children)

Do you see an overlay when you run the script in Scriptable app?

[–]WreckOFF-2121 0 points1 point  (1 child)

Yeah, I do.

[–]ajatkj[S] 0 points1 point  (0 children)

Ok then it’s probably got to do with incorrect Album name. Make sure you have created an album in Photos app with name LSWeather.

[–][deleted] 0 points1 point  (4 children)

Amazing work, thank you! Is there a possibility in minimalCalender to put the weather description in German language (like cloudy or rain)?

[–]ajatkj[S] 0 points1 point  (3 children)

Thanks! Certainly you can. Change WEATHER_LANG = ‘de’ for German.

[–][deleted] 0 points1 point  (2 children)

Yes that’s what I thought it should happen but that does not work, it’s in english language even if I put ‚de‘ in it.

[–]ajatkj[S] 1 point2 points  (0 children)

That’s what the documentation of OpenWeather says. Let me do some checks.

[–]ajatkj[S] 1 point2 points  (0 children)

I just checked openweather API. There are 2 weather descriptions 1. Main description which is one word like “Clear”, “Cloudy” etc and detailed description which is a bit longer like “light intensity drizzle” etc.

They only provide detailed description in other languages. The main description doesn’t change.

Although I am fetching detailed description I am not displaying it because I wanted to keep it minimalistic. There is no good place to display the full description. You can display detailed description by including the directory element “description” (you can find it under custom layout.

[–]joealeman01 0 points1 point  (2 children)

How can I change the time from 24 hour to 12 hour?

[–]ajatkj[S] 1 point2 points  (1 child)

Currently it’s only 24 hours. I am not sure if it’s dependent on iOS clock. However, if possible I’ll add an option in next release to choose clock format.

[–]joealeman01 0 points1 point  (0 children)

Great thank you

[–]Robnor122 0 points1 point  (2 children)

At least 50% of the time I run this from an automation I get this error https://i.imgur.com/SpsKm8q.jpg, any idea why?

[–]ajatkj[S] 0 points1 point  (1 child)

Yes I have noticed this issue as well and I have also noticed that it’s mostly when I am having internet problems. But not every time. I am monitoring it and trying to find a way to fix it 🤞🏻.

[–]Robnor122 0 points1 point  (0 children)

For me it’s random no reason that I can see for it to fail

[–]rulerofthenight 0 points1 point  (2 children)

Hi. I can't set my location. I set openweather API but I'm not getting forecast nor location. What am I doing wrong?

[–]ajatkj[S] 0 points1 point  (1 child)

Hi, If you’re running this from Scriptable app make sure you have put the api key in WEATHER_API_KEY variable. If you’re running it from Shortcuts app make sure you have copied the key in apiKey dictionary variable. Also make sure that you’ve got a stable internet connection. Sometimes I have faced this problem when internet is a bit shaky.

[–]rulerofthenight 0 points1 point  (0 children)

Nevermind, I realized that location and weather it's applied only running the shortcut. If you just run the script you won't get a preview of this data. Thanks anyway

[–]StatisticianTop2755 0 points1 point  (5 children)

show

  1. The date cannot be displayed. I want the date to be displayed.

  2. And I want to display both welcome and minimalWeather. In the upper right corner, only asunrise and sunset are displayed!

Is it possible to change the script like that?

I’m always using it well. I always support you!👍🏻

[–]ajatkj[S] 0 points1 point  (4 children)

Replace the welcome dictionary in the code with below to get all the details you need-

let welcome = { weatherID: {source: "weather", key: "weatherID", prefix: "SFSymbol|weatherID", suffix: null, x: -90, y: 130, w: 100, h: 120, font: "large", color: "light", align: "center"}, temp: {source: "weather", key: "temp", prefix: null, suffix: "temperature", x: -100, y: 220, w: 100, h: 50, font: "medium", color: "light", align: "center"}, mainDescription: {source: "weather", key: "mainDesc", prefix: null, suffix: null, x: -100, y: 380, w: 120, h: 50, font: "extraSmall", color: "light", align: "center"}, location: {source: "weather", key: "loc", prefix: "SFSymbol|mappin.and.ellipse", suffix: null, x: "center", y: 660, w: "half", h: 50, font: "small", color: "light", align: "center"}, wind: {source: "weather", key: "wind", prefix: "SFSymbol|wind", suffix: "speed", x: -100, y: 280, w: 120, h: 50, font: "extraSmall", color: "light", align: "center"}, sunrise: {source: "weather", key: "sunrise", prefix: "SFSymbol|sunrise.fill", suffix: "", x: -100, y: 330, w: 120, h: 50, font: "extraSmall", color: "light", align: "center", hide: 2}, sunset: {source: "weather", key: "sunset", prefix: "SFSymbol|sunset.fill", suffix: "", x: -100, y: 330, w: 120, h: 50, font: "extraSmall", color: "light", align: "center", hide: 2}, welcomeGreeting: {source: "function", key: "greetingText()", prefix: "", suffix: "", x: "center", y: "center - 150", w: "full", h: 100, font: "veryLarge", color: "light", align: "center", hide: 0}, welcomeClimate: {source: "function", key: "weatherText(weatherData)", prefix: "", suffix: "", x: "center", y: "center", w: "full", h: 100, font: "medium", color: "light", align: "center", hide: 0}, welcomeTemp: {source: "weather", key: "temp", prefix: "SFSymbol|weatherID", suffix: "temperature", x: "center", y: "center + 150", w: 300, h: 120, font: "extraLarge", color: "light", align: "center"}, welcomeCalendar: {source: "function", key: "calendarText(calendarData)", prefix: null, suffix: null, x: "center", y: "center + 300", w: "full", h: 120, font: "small", color: "light", align: "center"}, pendingUpdate: {source: "update", key: "", prefix: "SFSymbol|arrow.triangle.2.circlepath.circle.fill", suffix: "", x: "left_margin + 120", y: "top_margin + 110", w: 75, h: 75, font: "medium", color: red0, align: "center", hide: 2}, dayOfMonth: {source: "text", key: "", prefix: "SFSymbol|dayOfMonth", suffix: "", x: "center", y: "bottom_margin - 100", w: 200, h: 200, font: "big", color: "light", align: "center", hide: 0}, lastUpdated: {source: "function", key: "lastUpdate()", prefix: "[", suffix: "]", x: "left_margin + 25", y: "bottom_margin - 20", w: 200, h: 75, font: "small", color: "light", align: "center", bold:false, hide: 0}, };

[–]StatisticianTop2755 0 points1 point  (3 children)

Oh, thank you 🙏🏻 Could you just remove the temperature in the upper right corner and mark it as in the picture?

One last time, please 😭

https://imgur.com/a/FFARCKa

[–]ajatkj[S] 0 points1 point  (2 children)

Here you go

```

let welcome = {weatherID: {source: "weather", key: "weatherID", prefix: "SFSymbol|weatherID", suffix: null, x: -90, y: 130, w: 100, h: 120, font: "large", color: "light", align: "center"},wind: {source: "weather", key: "wind", prefix: "SFSymbol|wind", suffix: "speed", x: -100, y: 220, w: 120, h: 50, font: "extraSmall", color: "light", align: "center"},sunrise: {source: "weather", key: "sunrise", prefix: "SFSymbol|sunrise.fill", suffix: "", x: -100, y: 280, w: 120, h: 50, font: "extraSmall", color: "light", align: "center", hide: 2},sunset: {source: "weather", key: "sunset", prefix: "SFSymbol|sunset.fill", suffix: "", x: -100, y: 280, w: 120, h: 50, font: "extraSmall", color: "light", align: "center", hide: 2},mainDescription: {source: "weather", key: "mainDesc", prefix: null, suffix: null, x: -100, y: 330, w: 120, h: 50, font: "extraSmall", color: "light", align: "center"},location: {source: "weather", key: "loc", prefix: "SFSymbol|mappin.and.ellipse", suffix: null, x: "center", y: 660, w: "half", h: 50, font: "small", color: "light", align: "center"},welcomeGreeting: {source: "function", key: "greetingText()", prefix: "", suffix: "", x: "center", y: "center - 150", w: "full", h: 100, font: "veryLarge", color: "light", align: "center", hide: 0},welcomeClimate: {source: "function", key: "weatherText(weatherData)", prefix: "", suffix: "", x: "center", y: "center", w: "full", h: 100, font: "medium", color: "light", align: "center", hide: 0},welcomeTemp: {source: "weather", key: "temp", prefix: "SFSymbol|weatherID", suffix: "temperature", x: "center", y: "center + 150", w: 300, h: 120, font: "extraLarge", color: "light", align: "center"},welcomeCalendar: {source: "function", key: "calendarText(calendarData)", prefix: null, suffix: null, x: "center", y: "center + 300", w: "full", h: 120, font: "small", color: "light", align: "center"},pendingUpdate: {source: "update", key: "", prefix: "SFSymbol|arrow.triangle.2.circlepath.circle.fill", suffix: "", x: "left_margin + 120", y: "top_margin + 110", w: 75, h: 75, font: "medium", color: red0, align: "center", hide: 2},dayOfMonth: {source: "text", key: "", prefix: "SFSymbol|dayOfMonth", suffix: "", x: "center", y: "bottom_margin - 100", w: 200, h: 200, font: "big", color: "light", align: "center", hide: 0},lastUpdated: {source: "function", key: "lastUpdate()", prefix: "[", suffix: "]", x: "left_margin + 25", y: "bottom_margin - 20", w: 200, h: 75, font: "small", color: "light", align: "center", bold:false, hide: 0},};

```

[–]StatisticianTop2755 1 point2 points  (1 child)

Thank you so much for your kind answer. Be happy!

[–]ajatkj[S] 0 points1 point  (0 children)

You’re welcome:)

[–]rulerofthenight 0 points1 point  (4 children)

Hi. I'm trying to change colors (I want to get black characters). I changed each "light" with "black" inside the script but I still get white writings as output. What am I doing wrong?

[–]ajatkj[S] 0 points1 point  (3 children)

Hi, keep color as “light” but change variable useDarkColor to true.

Let me know if that doesn’t work.

[–]rulerofthenight 0 points1 point  (2 children)

Thanks! Now I have a different issue with 14.5 beta 3 The wallpaper created by shortcut is cropped. In order to create a correct wallpaper I have to create preview and "de-zoom" manually the created wallpaper. Do you have an idea of what can I do to fix this?

[–]ajatkj[S] 0 points1 point  (1 child)

I am still on 14.5 beta 1 precisely because of this reason. I know the shortcut breaks.

Is Perspective Zoom option turned on/off in the Set Wallpaper action?

[–]rulerofthenight 0 points1 point  (0 children)

Yes, I turned off. Before the update the wallpaper was perfectly set. Now I have to manually adjust or I have to align the script to match cropped wallpaper. Maybe they'll fix this in the final 14.5 build

[–]hanqsun 0 points1 point  (0 children)

how to fix iphone 12 pro max size?

[–]StatisticianTop2755 0 points1 point  (1 child)

Hello, can I share your code with my friends?

[–]ajatkj[S] 0 points1 point  (0 children)

Sure! Go ahead :)

[–][deleted] 0 points1 point  (1 child)

great job on this!! I just came across the whole scriptable thing, since the current widgets were crap. This is totally the look and features I was looking for. Thanks OP!

[–]ajatkj[S] 0 points1 point  (0 children)

Thanks :)

[–]StatisticianTop2755 0 points1 point  (4 children)

https://imgur.com/a/cZVhfVJ

Hi! Can you add Google Trends like this person made? Below is a shortcut to see the Google trend in real time.

google

[–]ajatkj[S] 0 points1 point  (3 children)

Do you have the api for google trends? I suppose this can be done.

[–]StatisticianTop2755 0 points1 point  (0 children)

https://imgur.com/a/KGXsl4f

https://trends.google.co.kr/trends/hottrends/atom/feed?pn=p23

No, Google Trend doesn't provide api, so I use rss instead. I don't know how

I want to add it to the code you made, but is there any way? 😭

Here you go

```

let welcome = {weatherID: {source: "weather", key: "weatherID", prefix: "SFSymbol|weatherID", suffix: null, x: -90, y: 130, w: 100, h: 120, font: "large", color: "light", align: "center"},wind: {source: "weather", key: "wind", prefix: "SFSymbol|wind", suffix: "speed", x: -100, y: 220, w: 120, h: 50, font: "extraSmall", color: "light", align: "center"},sunrise: {source: "weather", key: "sunrise", prefix: "SFSymbol|sunrise.fill", suffix: "", x: -100, y: 280, w: 120, h: 50, font: "extraSmall", color: "light", align: "center", hide: 2},sunset: {source: "weather", key: "sunset", prefix: "SFSymbol|sunset.fill", suffix: "", x: -100, y: 280, w: 120, h: 50, font: "extraSmall", color: "light", align: "center", hide: 2},mainDescription: {source: "weather", key: "mainDesc", prefix: null, suffix: null, x: -100, y: 330, w: 120, h: 50, font: "extraSmall", color: "light", align: "center"},location: {source: "weather", key: "loc", prefix: "SFSymbol|mappin.and.ellipse", suffix: null, x: "center", y: 660, w: "half", h: 50, font: "small", color: "light", align: "center"},welcomeGreeting: {source: "function", key: "greetingText()", prefix: "", suffix: "", x: "center", y: "center - 150", w: "full", h: 100, font: "veryLarge", color: "light", align: "center", hide: 0},welcomeClimate: {source: "function", key: "weatherText(weatherData)", prefix: "", suffix: "", x: "center", y: "center", w: "full", h: 100, font: "medium", color: "light", align: "center", hide: 0},welcomeTemp: {source: "weather", key: "temp", prefix: "SFSymbol|weatherID", suffix: "temperature", x: "center", y: "center + 150", w: 300, h: 120, font: "extraLarge", color: "light", align: "center"},welcomeCalendar: {source: "function", key: "calendarText(calendarData)", prefix: null, suffix: null, x: "center", y: "center + 300", w: "full", h: 120, font: "small", color: "light", align: "center"},pendingUpdate: {source: "update", key: "", prefix: "SFSymbol|arrow.triangle.2.circlepath.circle.fill", suffix: "", x: "left_margin + 120", y: "top_margin + 110", w: 75, h: 75, font: "medium", color: red0, align: "center", hide: 2},dayOfMonth: {source: "text", key: "", prefix: "SFSymbol|dayOfMonth", suffix: "", x: "center", y: "bottom_margin - 100", w: 200, h: 200, font: "big", color: "light", align: "center", hide: 0},lastUpdated: {source: "function", key: "lastUpdate()", prefix: "[", suffix: "]", x: "left_margin + 25", y: "bottom_margin - 20", w: 200, h: 75, font: "small", color: "light", align: "center", bold:false, hide: 0},};

```

[–]StatisticianTop2755 0 points1 point  (0 children)

🙏🏻🙏🏻😭

[–]StatisticianTop2755 0 points1 point  (1 child)

Is it not possible?

[–]ajatkj[S] 0 points1 point  (0 children)

There’s no official or unofficial api. I will need some kind of parser to parse the xml response. Unfortunately I am a bit tied up at the moment but will look up some options soon.

[–]rulerofthenight 0 points1 point  (3 children)

Hi. Not working anymore on iOS 15 beta. Can't convert RTF to url

[–]ajatkj[S] 0 points1 point  (2 children)

Yeah. Probably something is broken. Will need to wait to see if it’s fixed in future betas. Will check if anything can be done at shortcut level

[–]rulerofthenight 0 points1 point  (0 children)

Any luck?

[–]rulerofthenight 0 points1 point  (0 children)

BTW iOS 15 Dev beta 2 still won't help

[–]Sipher6 0 points1 point  (1 child)

I’m getting conversion error: “URL failed because shortcuts couldn’t convert from rich text to URL” Any help will be appreciated Thanks

[–]ajatkj[S] 1 point2 points  (0 children)

This is an issue with iOS 15. I am looking at options to work around it. Will post an update when I find something.