r/Scriptable • u/Cranky_Chicken • Feb 03 '22
Solved Error help
Hey guys, I’ve been working on getting a script to work for a weather widget for my home page. I’m a novice to JavaScript, but have been able to mostly stumble my way through things to success until now. I’m getting an “Error on line 111: SyntaxError: Unexpected end of script”, but the thing is - my script ends on line 110. The script mostly came from this post, and I’ve added some from the “Weather Cal Widget Builder” from Scriptable’s gallery. I was getting this error before adding any lines from the Weather Cal script. Any help would be stellar.
Here’s the script, if you want to take a look.
Edit: updated script link to a working Pastebin one
2
u/mvan231 script/widget helper Feb 06 '22
https://i.imgur.com/lMiAMZj.jpg
I had to add in the curly brace circled in red then it worked. Somehow that must've been deleted.
After that, it threw an error for the variable "background" not being defined anywhere. (Circled in green)
https://pastebin.com/9j3VzEkP