-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
44 lines (31 loc) · 1.29 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import remarkableTools
import themefinder
import menu
ip = ""
program = True
username = "root" # Replace with your SSH username
password = "7Qu5AbYMdl" # Replace with your SSH password
while (program):
#remarkableTools.backupOriginalPhotos(ip,username,password)
choice = menu.main_menu(["Connect", "Backup Photos", "Pick Theme","Exit"] )
print(f"You've got {choice} through to the main program")
if choice == "Connect":
if ip == "":
ip = remarkableTools.remarkableIpFind(username,password)
connect = menu.main_menu(["Connected"])
remarkableTools.ssh_test(ip,username,password)
elif choice == "Backup Photos":
if ip == "":
ip = remarkableTools.remarkableIpFind(username,password)
remarkableTools.backupOriginalPhotos(ip,username,password)
elif choice == "Pick Theme":
if ip == "":
ip = remarkableTools.remarkableIpFind(username,password)
connect = menu.main_menu(["Connected"])
theme = themefinder.themePicker()
apply = menu.main_menu(["Accept", "Decline"] )
if apply == "Accept":
themefinder.applyTheme(ip,username,password,theme)
menu.main_menu(["Theme Applied"])
elif choice == "Exit":
program = False