infinityofspace / jellyfin_alexa_skill

Selfhosted Alexa media player skill for Jellyfin
GNU General Public License v3.0
74 stars 11 forks source link

How to fill skill.conf and what to do with that #121

Open adocampo opened 5 months ago

adocampo commented 5 months ago

I've been following the steps in Installation, but it could be better documented.

I've created the Amazon Skill as per screenshots, and the AWS security profile, and obtained the client_id, client_secret and refresh_token, but I 'm doubting what are or where can I obtain the following fields found in skill.conf which are required.

# required: The public address of your jellyfin server.
jellyfin_endpoint = 79.117.9.181
# required: The public address of the skill web service.
skill_endpoint =79.117.9.181

My public jellyfin IP address is that right now, but it's DHCP, so it wil change in the future, could I use a fqdn, or it's just needed for the configuration process? Which is the public address for the skill web service? It's the IP address where jellyfin_alexa_skill docker container is being run? In my case, both jellyfin server and this alexa_jellyfin_skill docker are on the same server. Should I use the public IP in both cases?

# required: The type of the ssl cert fot the skill endpoint.
# If you use the self_signed option you have to upload the certificate additionally in the skill settings on the website.
# Can be one of the values: wildcard, trusted, self_signed
skill_endpoint_ssl_cert_type =wildcard

I have a let's encrypt wildcard domain for *.domain.com, and my jellyfin server is on https://jellyfin.domain.com, should I use wildcard on there?

[smapi]
# required: The client id you received from the security profile for the SMAPI access step.
client_id = amzn1.application-oa2-client.XXXXXX
# required: The client secret you received from the security profile for the SMAPI access step.
client_secret = amzn1.oa2-cs.v1.YYY
# required: The refresh token you received from the ask cli program.
refresh_token = Atzr|IwEBIDGP88Uz29rMFr2kzkoBT7aj6YuLUipPB4yPbrgTiD31EFMmvAFOZ5-XS_7D9Pba2PIWE8Ea2OlEP1J2YcM1Kjlc1qODdPhZVOs_t-GbxhG_DcFQRGwdJ3wJi9z15ganauqGbW-zQYHNkhiT2PzN0gxDdSA9IQO82GEnUsBN7pClklXCCnG1O6TMy4XZZsVpVbzcTNGM1J49EmZl8DLq9pNh8NKirmY4rMDyz4BRyO4mR-z75RYGEt85yiM4eEk-ChlJb-1C4QNl8rP5Dp4SP-pV9dmU7aJuzO-xCRRCPTDrVKWQRrniep880FNaEEuF2X7cIFduLEfuvsWagobZcWdESdb0rvyUsxafb7-iipfSCykyGzum7-37Rj7uRZqGcR6KTmW6xsseQlIWtTupPzRSAdNMqDD7latUjCVMjZ3d8lmRnAyGOMqa0N_54Q8m9K854_3pxcYmmmcwnUWqD7YA4tQt4PVdh_LTg-HF7uy14H6i78gex59GKl6ZbZsIsrkScv15G_Aiz2UQuS3v6iFgPZZNHGFzwsllT0PhRIPgrcd33N58OsCIVClttmBmWlMC9W9mTbo41OHiZD19g5zSR-mYS2q6VcJF5TjlAbeY55nBDMFcckEtHosnpgA

I guess this is the most straight forward, the client_id and client_secret are taken from image And refresh_token from the ask command's ouput.

#[en-US]
# override Alexa invocation name for English locales
# all lower-case: invocation name to use (default: jellyfin player)
invocation_name = jelly fin
# description of invocation name to be used in visual feedback to user (default: Jellyfin Player)
display_name = Jellyfin

this is not required, but I guess I need to uncomment to make it work.

doubts

image