-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: master
Are you sure you want to change the base?
Conversation
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
you have to install dotenv with pip but i dont kow how to properly put that in the readme |
support me plsMXR: 884weD1m5CQ7wywUXFjxL3TiXzt666CndFdKnhV1uaFifBJwiTvAhukJRGkZWsKatHeTpvfcKFkzUMkUSEEQzMmHSu8LBrv |
basically the script restarts every time it encounters an error.(not the best solution but it works) |
there is definitively a more elegant solution but i did this in one day and it works now |
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 |
or put the switch in airplane mode when you put it in standby |
you can now ignore the tinfoil app |
…aving the same code multiple times
…switch is in standby and clears the rpc
I don't have the need to modify this script anymore and will probably not work on it anymore. |
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.