How usernameyann/sunflower-land-widget-for-ios works
Project type and purpose
• This is a small client-side iOS widget implemented in Scriptable (JavaScript).
• Its purpose is to fetch a user’s Sunflower Land farm data from the game’s public API, render the status of crops, trees, and animals on the iPhone home screen, and optionally schedule local notifications when items become ready.
File structure
• Top-level:
• LICENSE
• README.md
• SFL-widget.js (core widget logic)
• SFL-widget+Notif.js (widget + notification scheduling)
• No “backend” code here—this is purely a front-end widget script that runs inside the Scriptable app.
• Configuration is minimal: the user sets a FARM_ID constant on line 8 of the script.
• No build scripts or deployment artifacts—installation is manual via Scriptable.
Detailed callouts
• FARM_ID injection point in the script.
• How user settings (in iOS Settings → Notifications → Scriptable) impact the notification flow.