Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the python script #9

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

LeNooby09
Copy link

script shouldn't crash anymore if and invalid packet gets received(switch in standby) or the title has empty attributes

if the connection to the switch fails or is lost, the script will try to reconnect every minute.
if the other connections fail(to discord and else) the script will reconnect every second.
the IP and the APPLICATION_ID are read from the .env file.

if the connection to the switch fails or is lost, the script will try to reconnect every minute
if the other connections fail(to discord and else) the script will reconnect every second
the IP and the APPLICATION_ID are read from the .env file
@LeNooby09 LeNooby09 changed the title Updated the script Updated the python script Oct 26, 2023
@LeNooby09
Copy link
Author

you have to install dotenv with pip but i dont kow how to properly put that in the readme

@LeNooby09
Copy link
Author

support me pls
MXR: 884weD1m5CQ7wywUXFjxL3TiXzt666CndFdKnhV1uaFifBJwiTvAhukJRGkZWsKatHeTpvfcKFkzUMkUSEEQzMmHSu8LBrv

@LeNooby09
Copy link
Author

basically the script restarts every time it encounters an error.(not the best solution but it works)
and i couldn't get a fix for the standby glitch(that's when the switch is running a game, goes to sleep, and then you start a different game) where the title comes back without an attribute or the magic attribute is empty(None). i made it now that when the title is empty(no attr.) the script restarts to rerun the code that defines the title.

@LeNooby09
Copy link
Author

there is definitively a more elegant solution but i did this in one day and it works now

@LeNooby09
Copy link
Author

there still is an error that when the switch is in standby on discord the rpc does not clear.

solution: stop the switch client when you want to put the switch to sleep or close the game

@LeNooby09
Copy link
Author

or put the switch in airplane mode when you put it in standby

@LeNooby09
Copy link
Author

you can now ignore the tinfoil app

@LeNooby09
Copy link
Author

I don't have the need to modify this script anymore and will probably not work on it anymore.

@LeNooby09 LeNooby09 closed this Aug 7, 2024
@LeNooby09 LeNooby09 reopened this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant