r/Scriptable • • Mar 28 '23

Help Can you not have 2 scriptable widgets? Code and more info in the in the comments

Post image
5 Upvotes

25 comments sorted by

View all comments

3

u/SugglyMuggly Mar 29 '23 edited Mar 29 '23

Oooh what does this do? Could you share installation etc please?

Edit: ok so it seems to pull upcoming shows and movies from Sonarr and Radarr. I can see from the logs in Scriptable that it’s talking to my server (Sonarr only) and pulling through episode synopsis. It doesn’t output anything into the widget though.

1

u/__Loot__ Mar 29 '23

The reason it does not work for you is the api key. You need your own. And using the same ports and forwarding the ports on your pc. How to look at the logs in scriptable?

1

u/SugglyMuggly Mar 29 '23

I’ve changed the ports to my own. Also entered my API but unsure if it’s in the right place.

https://i.imgur.com/1qMPPAd.jpg

1

u/__Loot__ Mar 29 '23

I have not gotten to the part of limiting the results on the json object. So your hiting the default switch statment i think.

1

u/__Loot__ Mar 29 '23

Also I have not the the radar part yet so it will not work with radarr. The reason i use 2 sonarrs one for film and one for animation

1

u/__Loot__ Mar 29 '23

After i get it working im going to code it to handle any amount that memory lets me. And cycle though 5 at a time.

1

u/__Loot__ Mar 29 '23

If you get rid of the switch and call it once createWidget you should see it in action

1

u/__Loot__ Mar 29 '23

Im going to try to alternate between the two every so often if I cant find an answer.

1

u/SugglyMuggly Mar 29 '23

That’s well beyond my abilities but appreciate the explanation 👍 I’d love to see it finished

2

u/__Loot__ Mar 29 '23

If you give me your discord or email ill send you the fished code. Probably put it on git hub

1

u/__Loot__ Mar 29 '23

I even tried making 2 scripts with different variables and the same happens