diff --git a/Containerfile b/Containerfile index 9841970..d5eb5e7 100644 --- a/Containerfile +++ b/Containerfile @@ -7,3 +7,5 @@ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . + +ENTRYPOINT python initialize.py diff --git a/__pycache__/login.cpython-314.pyc b/__pycache__/login.cpython-314.pyc new file mode 100644 index 0000000..9218da8 Binary files /dev/null and b/__pycache__/login.cpython-314.pyc differ diff --git a/checkavailable.py b/checkavailable.py new file mode 100644 index 0000000..f382428 --- /dev/null +++ b/checkavailable.py @@ -0,0 +1,5 @@ +from plugins import rmass +from core import buildOperation + +outputs = buildOperation(rmass.operations.checkavailable) + diff --git a/core/apirequest/__pycache__/execute.cpython-314.pyc b/core/apirequest/__pycache__/execute.cpython-314.pyc index 8a23855..0765061 100644 Binary files a/core/apirequest/__pycache__/execute.cpython-314.pyc and b/core/apirequest/__pycache__/execute.cpython-314.pyc differ diff --git a/core/apirequest/__pycache__/request.cpython-314.pyc b/core/apirequest/__pycache__/request.cpython-314.pyc index 3ab67a8..d4b42c7 100644 Binary files a/core/apirequest/__pycache__/request.cpython-314.pyc and b/core/apirequest/__pycache__/request.cpython-314.pyc differ diff --git a/core/apirequest/execute.py b/core/apirequest/execute.py index b451791..5bf6d96 100644 --- a/core/apirequest/execute.py +++ b/core/apirequest/execute.py @@ -4,8 +4,8 @@ from .request import buildRequest session = requests.Session() -def executeRequest(definition, outputs): - request = buildRequest(definition, outputs) +def executeRequest(action, outputs): + request, outputs = buildRequest(action, outputs) response = session.request( method=request["method"], @@ -23,4 +23,4 @@ def executeRequest(definition, outputs): # sessioncookies[cookie_name] = response[cookie_key], - return response + return response, outputs diff --git a/core/apirequest/request.py b/core/apirequest/request.py index ea1dc62..11648a6 100644 --- a/core/apirequest/request.py +++ b/core/apirequest/request.py @@ -25,4 +25,4 @@ def buildRequest(definition, outputs): request["headers"] = headers - return request + return request, outputs diff --git a/core/execution/__pycache__/createthread.cpython-314.pyc b/core/execution/__pycache__/createthread.cpython-314.pyc index daf6968..fd89942 100644 Binary files a/core/execution/__pycache__/createthread.cpython-314.pyc and b/core/execution/__pycache__/createthread.cpython-314.pyc differ diff --git a/core/execution/__pycache__/executioncontract.cpython-314.pyc b/core/execution/__pycache__/executioncontract.cpython-314.pyc index 9d069d3..db7835e 100644 Binary files a/core/execution/__pycache__/executioncontract.cpython-314.pyc and b/core/execution/__pycache__/executioncontract.cpython-314.pyc differ diff --git a/core/execution/action/__pycache__/action.cpython-314.pyc b/core/execution/action/__pycache__/action.cpython-314.pyc index 826ebdc..fe04f20 100644 Binary files a/core/execution/action/__pycache__/action.cpython-314.pyc and b/core/execution/action/__pycache__/action.cpython-314.pyc differ diff --git a/core/execution/action/action.py b/core/execution/action/action.py index 20016d5..c732f12 100644 --- a/core/execution/action/action.py +++ b/core/execution/action/action.py @@ -2,24 +2,17 @@ from core.apirequest import executeRequest from core.runtime.savedata import loadSave, buildSave from core.runtime.outputs import buildOutput from core.runtime.logs import buildLog +from core.runtime.runtimecontract import buildRuntimeAttr def buildAction (action, outputs): if hasattr(action, "loaddata"): outputs = loadSave(outputs, action) - response = executeRequest(action, outputs) + response, outputs = executeRequest(action, outputs) - if hasattr(action, "outputs"): - outputs = buildOutput(response, action, outputs) + #print("DEBUG:", outputs) - if hasattr(action, "savedata"): - save_file = buildSave(outputs, action) - - if hasattr(action, "prints"): - logs = buildLog(action, outputs) - - if action.showstatus is True and response.status_code == 200: - print(f"{action.name} successful") + outputs, response = buildRuntimeAttr(action, outputs, response) return outputs, response diff --git a/core/execution/createthread.py b/core/execution/createthread.py index 3d0609d..3c11efa 100644 --- a/core/execution/createthread.py +++ b/core/execution/createthread.py @@ -1,6 +1,6 @@ import threading -from lifecycleregistry import registerLifecycle -from lifecyclemanager import manageLifecycle +from .lifecyclemanager import registerLifecycle +from .lifecyclemanager import manageLifecycle threadlist = [] threadnum = 0 @@ -27,4 +27,4 @@ def buildThread(module, lifecycles): print(threadlist) print(lifecycles) - return threadnum, threadname, lifecycles, threadlist + return thread, lifecycles diff --git a/core/execution/executioncontract.py b/core/execution/executioncontract.py index abb8f6e..0ef7706 100644 --- a/core/execution/executioncontract.py +++ b/core/execution/executioncontract.py @@ -1,11 +1,16 @@ from core.execution.action import buildAction from core.execution.operation import buildOperation +from core.runtime import manageFailure def executeContract(module): + #try: if module.kind == "operation": outputs = buildOperation(module) elif module.kind == "action": outputs = buildAction(module) + #except Exception as error: + #outputs = manageFailure(error, module) + return outputs diff --git a/core/execution/lifecyclemanager/__pycache__/lifecyclemanager.cpython-314.pyc b/core/execution/lifecyclemanager/__pycache__/lifecyclemanager.cpython-314.pyc index 01b696c..59fdab3 100644 Binary files a/core/execution/lifecyclemanager/__pycache__/lifecyclemanager.cpython-314.pyc and b/core/execution/lifecyclemanager/__pycache__/lifecyclemanager.cpython-314.pyc differ diff --git a/core/execution/lifecyclemanager/lifecyclemanager.py b/core/execution/lifecyclemanager/lifecyclemanager.py index d956d9e..7ccd14d 100644 --- a/core/execution/lifecyclemanager/lifecyclemanager.py +++ b/core/execution/lifecyclemanager/lifecyclemanager.py @@ -1,8 +1,11 @@ import time +import os from core.execution.operation import buildOperation from core.execution.action import buildAction -from core import executeContract +from core.execution.executioncontract import executeContract + +sleeptime = int(os.environ.get("REFRESH_INTERVAL", 180)) def manageLifecycle(module, lifecycles): #lifecycles, state): #print(lifecycles[module.name]["mode"]) @@ -15,7 +18,7 @@ def manageLifecycle(module, lifecycles): #lifecycles, state): #print(lifecycles) - time.sleep(module.sleeptime) + time.sleep(sleeptime) elif lifecycles[module.name]["mode"] == "oneshot": print(lifecycles) diff --git a/core/execution/operation/__pycache__/__init__.cpython-314.pyc b/core/execution/operation/__pycache__/__init__.cpython-314.pyc index c487459..8c81fac 100644 Binary files a/core/execution/operation/__pycache__/__init__.cpython-314.pyc and b/core/execution/operation/__pycache__/__init__.cpython-314.pyc differ diff --git a/core/execution/operation/__pycache__/operation.cpython-314.pyc b/core/execution/operation/__pycache__/operation.cpython-314.pyc index 3fd4a50..f08d160 100644 Binary files a/core/execution/operation/__pycache__/operation.cpython-314.pyc and b/core/execution/operation/__pycache__/operation.cpython-314.pyc differ diff --git a/core/execution/operation/__pycache__/skipstep.cpython-314.pyc b/core/execution/operation/__pycache__/skipstep.cpython-314.pyc index e5f87e3..f071db5 100644 Binary files a/core/execution/operation/__pycache__/skipstep.cpython-314.pyc and b/core/execution/operation/__pycache__/skipstep.cpython-314.pyc differ diff --git a/core/execution/operation/operation.py b/core/execution/operation/operation.py index 864a03e..5537234 100644 --- a/core/execution/operation/operation.py +++ b/core/execution/operation/operation.py @@ -9,33 +9,19 @@ from .skipstep import skipStep def buildOperation(definition): actions = definition.actions - -# responses = [] + #print("DEBUG", actions) + responses = [] outputs = {} for action in actions: - try: - if hasattr(definition, "skipstep"): - if skipStep(definition, action, outputs): - continue + #try: + if hasattr(definition, "skipstep"): + if skipStep(definition, action, outputs): + continue - outputs, response = buildAction(action, outputs) -# responses.append(response) - - except Exception as error: - outputs = manageFailure(error, action, outputs) - -# if hasattr(action, "cookies"): -# for cookiename, cookie, in cookies: - -# session.cookies.set( -# cookiename, -# outputs[cookie], -# domain=domainname -# ) - -# print( -# {outputs[cookie]}, -# domain, -# cookiename, -# ) + outputs, response = buildAction(action, outputs) + responses.append(response) + + #except Exception as error: + #outputs = manageFailure(error, action, outputs) + return outputs diff --git a/core/execution/operation/skipstep.py b/core/execution/operation/skipstep.py index 571da5a..ce205d2 100644 --- a/core/execution/operation/skipstep.py +++ b/core/execution/operation/skipstep.py @@ -2,13 +2,19 @@ def skipStep(definition, action, outputs): try: if action in definition.skipstep: condition = definition.skipstep[action] - + + #if outputs.get([condition["output"]]) is None: + #return False + #current_value = 1 + #else: current_value = outputs[condition["output"]] + #current_value = 1 if condition["operator"] == ">=": if current_value >= condition["value"]: print(f"Skipping {action.name}") return True - except TypeError, KeyError: + except KeyError: + #outputs = manageFailure(error) return False diff --git a/core/runtime/__pycache__/logs.cpython-314.pyc b/core/runtime/__pycache__/logs.cpython-314.pyc index 64fda39..82e7e07 100644 Binary files a/core/runtime/__pycache__/logs.cpython-314.pyc and b/core/runtime/__pycache__/logs.cpython-314.pyc differ diff --git a/core/runtime/__pycache__/managefailure.cpython-314.pyc b/core/runtime/__pycache__/managefailure.cpython-314.pyc index b65f5eb..a12bc84 100644 Binary files a/core/runtime/__pycache__/managefailure.cpython-314.pyc and b/core/runtime/__pycache__/managefailure.cpython-314.pyc differ diff --git a/core/runtime/__pycache__/outputs.cpython-314.pyc b/core/runtime/__pycache__/outputs.cpython-314.pyc index fead9c2..df59b73 100644 Binary files a/core/runtime/__pycache__/outputs.cpython-314.pyc and b/core/runtime/__pycache__/outputs.cpython-314.pyc differ diff --git a/core/runtime/__pycache__/runtimecontract.cpython-314.pyc b/core/runtime/__pycache__/runtimecontract.cpython-314.pyc new file mode 100644 index 0000000..b3c6ef1 Binary files /dev/null and b/core/runtime/__pycache__/runtimecontract.cpython-314.pyc differ diff --git a/core/runtime/__pycache__/savedata.cpython-314.pyc b/core/runtime/__pycache__/savedata.cpython-314.pyc index 7c5945a..07ae161 100644 Binary files a/core/runtime/__pycache__/savedata.cpython-314.pyc and b/core/runtime/__pycache__/savedata.cpython-314.pyc differ diff --git a/core/runtime/logs.py b/core/runtime/logs.py index aca56c0..a7b2539 100644 --- a/core/runtime/logs.py +++ b/core/runtime/logs.py @@ -1,11 +1,17 @@ -def buildLog (action, outputs): -# try: - for print_name, print_key in action.prints.items(): - print( - f"{print_name}:", - f"{outputs[print_key]}", - ) +import logging - # except KeyError: - #outputs[print_key] = "N/A" - # return +def buildLog (action, outputs): + #if response.status_code == 200: + #print(f"{action.name} successful") + try: + for print_name, print_key in action.prints.items(): + print( + f"{print_name}:", + f"{outputs[print_key]}", + ) + + + #else: + #print(f"{action.name} failed") + except: KeyError, TypeError + return diff --git a/core/runtime/managefailure.py b/core/runtime/managefailure.py index ff94b43..3b7d082 100644 --- a/core/runtime/managefailure.py +++ b/core/runtime/managefailure.py @@ -7,13 +7,22 @@ def manageFailure(error, action, outputs): errors = action.recoverPolicy error_type = type(error) - print(f"{type(error).__name__} detected during {action.name}. Applying recovery policy.") + #print(f"{type(error).__name__} detected during {action.name}. Applying recovery policy.") if error_type in errors: repairs = errors[error_type] - + for repair in repairs: - outputs, response = buildAction(repair, outputs) + if repair == False: + return False - return outputs + elif repair is None: + return + + else: + print(f"{type(error).__name__} detected during {action.name}. Applying recovery policy.") + + outputs, response = buildAction(repair, outputs) + + return outputs print(f"{error}") diff --git a/core/runtime/outputs.py b/core/runtime/outputs.py index a64740a..ac21762 100644 --- a/core/runtime/outputs.py +++ b/core/runtime/outputs.py @@ -17,5 +17,3 @@ def buildOutput(response, action, outputs): return outputs - - diff --git a/core/runtime/runtimecontract.py b/core/runtime/runtimecontract.py new file mode 100644 index 0000000..cc2ef8d --- /dev/null +++ b/core/runtime/runtimecontract.py @@ -0,0 +1,30 @@ +from core.runtime import buildOutput, buildSave, buildLog + +def buildRuntimeAttr(action, outputs, response): + #print("BEFORE buildOutput:", type(outputs)) + if hasattr(action, "outputs"): + outputs = buildOutput(response, action, outputs) + + #print("AFTER buildOutput:", type(outputs)) + #print("DEBUG buildSave") + #print("outputs type:", type(outputs)) + #print("action type:", type(action)) + #print("outputs keys:", list(outputs) if isinstance(outputs, dict) else "NOT A DICT") + + if hasattr(action, "savedata"): + buildSave(outputs, action) + + if hasattr(action, "prints"): + buildLog(action, outputs) + + #if hasattr(action, "conversion"): + #conversions = action.conversion.items() + #for key in action.conversion.items(): + #print(f"{action.conversion.items[key]}") + #convertedoutput = conversions[key] + #outputs[conversions[key]] = convertedoutput + + if action.showstatus is True and response.status_code == 200: + print(f"{action.name} successful") + + return outputs, response diff --git a/core/runtime/savedata.py b/core/runtime/savedata.py index 44998b6..269f92d 100644 --- a/core/runtime/savedata.py +++ b/core/runtime/savedata.py @@ -9,9 +9,9 @@ def buildSave(outputs, action): with open(f"{action.savepath}", "w") as save_file: json.dump(save_data, save_file) - print(f"{save_name} saved by {action.name}") - - return save_file + #print(f"{save_name} saved by {action.name}") + print(f"Data saved by {action.name} to {action.savepath}") + return outputs def loadSave(outputs, action): with open(f"{action.savepath}", "r") as save_file: @@ -19,6 +19,7 @@ def loadSave(outputs, action): for load_name in action.loaddata: outputs[load_name] = load_data[load_name] - print(f"{load_name} loaded by {action.name}") + #print(f"{load_name} loaded by {action.name}") + print(f"Data loaded by {action.name} from {action.savepath}") return outputs diff --git a/core/server/__pycache__/createdispatch.cpython-314.pyc b/core/server/__pycache__/createdispatch.cpython-314.pyc index b93cbea..ee082d6 100644 Binary files a/core/server/__pycache__/createdispatch.cpython-314.pyc and b/core/server/__pycache__/createdispatch.cpython-314.pyc differ diff --git a/core/server/__pycache__/createresponse.cpython-314.pyc b/core/server/__pycache__/createresponse.cpython-314.pyc new file mode 100644 index 0000000..5cfecc1 Binary files /dev/null and b/core/server/__pycache__/createresponse.cpython-314.pyc differ diff --git a/core/server/__pycache__/dispatcher.cpython-314.pyc b/core/server/__pycache__/dispatcher.cpython-314.pyc index 874dafc..ea1011c 100644 Binary files a/core/server/__pycache__/dispatcher.cpython-314.pyc and b/core/server/__pycache__/dispatcher.cpython-314.pyc differ diff --git a/core/server/__pycache__/dispatchstate.cpython-314.pyc b/core/server/__pycache__/dispatchstate.cpython-314.pyc index 70708a9..d2f6b32 100644 Binary files a/core/server/__pycache__/dispatchstate.cpython-314.pyc and b/core/server/__pycache__/dispatchstate.cpython-314.pyc differ diff --git a/core/server/__pycache__/server.cpython-314.pyc b/core/server/__pycache__/server.cpython-314.pyc index 1060bc3..664b11c 100644 Binary files a/core/server/__pycache__/server.cpython-314.pyc and b/core/server/__pycache__/server.cpython-314.pyc differ diff --git a/core/server/createdispatch.py b/core/server/createdispatch.py index a4cc7ea..5a882c8 100644 --- a/core/server/createdispatch.py +++ b/core/server/createdispatch.py @@ -1,5 +1,5 @@ import importlib -from lifecyclemanager import manageLifecycle +from core.execution.lifecyclemanager import manageLifecycle from .dispatchstate import buildState def buildDispatch(request): diff --git a/core/server/createresponse.py b/core/server/createresponse.py new file mode 100644 index 0000000..c080cdc --- /dev/null +++ b/core/server/createresponse.py @@ -0,0 +1,14 @@ +import json + +def buildResponse(module, thread, mode): + + response = { + "status": "success", + "message": f"{module.name} dispatched", + "thread": f"{thread}", + "mode": f"{mode}", + } + + #responsedata = json.dumps(response).encode("utf-8") + + return response diff --git a/core/server/dispatcher.py b/core/server/dispatcher.py index e742605..927cc99 100644 --- a/core/server/dispatcher.py +++ b/core/server/dispatcher.py @@ -1,6 +1,7 @@ from .createdispatch import buildDispatch from .dispatchstate import buildState from core.execution.createthread import buildThread +from .createresponse import buildResponse import threading @@ -14,9 +15,6 @@ def dispatchRequest(request, lifecycles): return lifecycles else: - threadnum, threadname, lifecycles, threadlist = buildThread(module, lifecycles) + thread, lifecycles = buildThread(module, lifecycles) - #print("Active Threads") - #print(threadlist) - - return threadnum, threadname, lifecycles, threadlist + return thread, lifecycles, module, mode diff --git a/core/server/dispatchstate.py b/core/server/dispatchstate.py index 4977710..96d45d0 100644 --- a/core/server/dispatchstate.py +++ b/core/server/dispatchstate.py @@ -1,6 +1,6 @@ import requests -from core import registerLifecycle +from core.execution.lifecyclemanager import registerLifecycle def filterMode(mode): if mode in ("continuous", "oneshot", "stop"): diff --git a/core/server/server.py b/core/server/server.py index 700cc55..d7ce386 100644 --- a/core/server/server.py +++ b/core/server/server.py @@ -1,19 +1,25 @@ import socket import json +import os +import logging + +from .dispatcher import dispatchRequest +from .createresponse import buildResponse + +port = int(os.environ.get("SERVER_PORT", 19001)) def startServer(): - from .dispatcher import dispatchRequest - server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - server.bind(("127.0.0.1", 19002)) + server.bind(("0.0.0.0", port)) lifecycles = {} server.listen() - + logging.info(f"Server listening on port {port}") while True: connection, address = server.accept() + logging.info("Accepting connections") while True: data = connection.recv(4096) @@ -23,7 +29,13 @@ def startServer(): # if not data: # break - dispatch = dispatchRequest(request, lifecycles) + thread, lifecycles, module, mode = dispatchRequest(request, lifecycles) + + response = buildResponse(module, thread, mode) + + connection.sendall( + json.dumps(response).encode("utf-8"), + ) connection.close() diff --git a/initialize.py b/initialize.py index cb33b6a..5336a91 100644 --- a/initialize.py +++ b/initialize.py @@ -1,3 +1,5 @@ from core.server.server import startServer +import login +#login startServer() diff --git a/plugins/rmass/actions/__pycache__/checkavailable.cpython-314.pyc b/plugins/rmass/actions/__pycache__/checkavailable.cpython-314.pyc index b9b9da0..222438b 100644 Binary files a/plugins/rmass/actions/__pycache__/checkavailable.cpython-314.pyc and b/plugins/rmass/actions/__pycache__/checkavailable.cpython-314.pyc differ diff --git a/plugins/rmass/actions/__pycache__/login.cpython-314.pyc b/plugins/rmass/actions/__pycache__/login.cpython-314.pyc index 5b290d2..eb938fd 100644 Binary files a/plugins/rmass/actions/__pycache__/login.cpython-314.pyc and b/plugins/rmass/actions/__pycache__/login.cpython-314.pyc differ diff --git a/plugins/rmass/actions/__pycache__/refresh_tokens.cpython-314.pyc b/plugins/rmass/actions/__pycache__/refresh_tokens.cpython-314.pyc index c04658f..0825c4e 100644 Binary files a/plugins/rmass/actions/__pycache__/refresh_tokens.cpython-314.pyc and b/plugins/rmass/actions/__pycache__/refresh_tokens.cpython-314.pyc differ diff --git a/plugins/rmass/actions/__pycache__/setavailable.cpython-314.pyc b/plugins/rmass/actions/__pycache__/setavailable.cpython-314.pyc index 4868c6c..23490ea 100644 Binary files a/plugins/rmass/actions/__pycache__/setavailable.cpython-314.pyc and b/plugins/rmass/actions/__pycache__/setavailable.cpython-314.pyc differ diff --git a/plugins/rmass/actions/checkavailable.py b/plugins/rmass/actions/checkavailable.py index 2b6e47f..4646511 100644 --- a/plugins/rmass/actions/checkavailable.py +++ b/plugins/rmass/actions/checkavailable.py @@ -13,6 +13,10 @@ outputs = { "validTo": "validTo", } +conversion = { + "hrs": "validTo // 60", +} + headers = { "Authorization": { "output": "access_token", diff --git a/plugins/rmass/actions/login.py b/plugins/rmass/actions/login.py index b27da35..025ca3e 100644 --- a/plugins/rmass/actions/login.py +++ b/plugins/rmass/actions/login.py @@ -44,4 +44,4 @@ savedata = [ "refresh_token", ] -savepath = "/home/david/tokens.json" +savepath = os.environ["TOKEN_STORE"] diff --git a/plugins/rmass/actions/refresh_tokens.py b/plugins/rmass/actions/refresh_tokens.py index fca4ce6..8158305 100644 --- a/plugins/rmass/actions/refresh_tokens.py +++ b/plugins/rmass/actions/refresh_tokens.py @@ -1,7 +1,10 @@ from . import getcsrf, login +import os name = "Token refresh" +kind = "action" + showstatus = True method = "GET" @@ -15,7 +18,7 @@ headers = { }, } -domainname="rentmasseur.com" +#domainname="rentmasseur.com" cookies = { "accessToken": { @@ -36,7 +39,8 @@ savedata = [ "refresh_token", ] -savepath = "/home/david/tokens.json" +#savepath = "/rmmanager/tokens.json" +savepath = os.environ["TOKEN_STORE"] outputs = { "access_token": "accessToken", diff --git a/plugins/rmass/actions/setavailable.py b/plugins/rmass/actions/setavailable.py index a081abe..94a3f33 100644 --- a/plugins/rmass/actions/setavailable.py +++ b/plugins/rmass/actions/setavailable.py @@ -45,3 +45,8 @@ outputs = { prints = { "Available until": "available_until" } + +recoverPolicy = { + KeyError:[False], + TypeError: [], +} diff --git a/plugins/rmass/operations/__pycache__/login.cpython-314.pyc b/plugins/rmass/operations/__pycache__/login.cpython-314.pyc index e3130a9..d543ed8 100644 Binary files a/plugins/rmass/operations/__pycache__/login.cpython-314.pyc and b/plugins/rmass/operations/__pycache__/login.cpython-314.pyc differ diff --git a/plugins/rmass/operations/__pycache__/setavailable.cpython-314.pyc b/plugins/rmass/operations/__pycache__/setavailable.cpython-314.pyc index f6c08b2..28a66e3 100644 Binary files a/plugins/rmass/operations/__pycache__/setavailable.cpython-314.pyc and b/plugins/rmass/operations/__pycache__/setavailable.cpython-314.pyc differ diff --git a/plugins/rmass/operations/setavailable.py b/plugins/rmass/operations/setavailable.py index 3d23329..511d059 100644 --- a/plugins/rmass/operations/setavailable.py +++ b/plugins/rmass/operations/setavailable.py @@ -10,7 +10,7 @@ actions = [ setavailable, ] -sleeptime = 10 +#sleeptime = 10 skipstep = { setavailable: { @@ -21,3 +21,5 @@ skipstep = { } role = "activate" + +sleeptime = 180 diff --git a/tokens.json b/tokens.json new file mode 100644 index 0000000..4d2c043 --- /dev/null +++ b/tokens.json @@ -0,0 +1 @@ +{"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3OTE2NzQzMzAsIm5iZiI6MTc5MTY3NDE1MCwic3ViIjoiMjM4MzAyIiwidXNlcm5hbWUiOiJYeHhvdGlxIiwidXNlclR5cGUiOjEsInN0YWdlTmFtZSI6Ilh4eG90aXEiLCJhcHByb3ZlZCI6MSwibG9jYXRpb25JZCI6NDcyLCJzZWFyY2hDaXR5IjoiYXRsYW50YSIsImNvdW50cnlTaG9ydCI6IlVTIiwic2Vzc2lvbkNvdW50cnlDb250aW5lbnQiOiJOQSIsImlzRnJvemVuIjowLCJsb2NhdGlvbkxhYmVsIjoiQXRsYW50YSwgR0EiLCJpc3MiOiJodHRwczovL3JlbnRtYXNzZXVyLmNvbSIsImlhdCI6MTc5MTY3NDIxMH0.HcqR4crgZkqdaSKpY3EiC8aejvlgQppKZbV_El8MeCPzoRSHssJcDtj5dmDXjP3VhjseIbgPvCqDxKC2jb3Qdg", "refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3OTQyNjYyMTAsIm5iZiI6MTc5MTY3NDE1MCwianRpIjoiZTJRY3FUYnNBSjRpZWNSQ0JEWUdXY2pvYkxDREkrS05mRUwzQUU1OEk3az0iLCJpc3MiOiJodHRwczovL3JlbnRtYXNzZXVyLmNvbSIsImlhdCI6MTc5MTY3NDIxMCwic3ViIjoiMjM4MzAyIn0.ExbPr-h99AVPpB0RTZs_3h15rY1clue95tGb0Cq0qrqkhaWloB8G6v7vmCFqJcpVyW1YHLrw45zOjPv9uZ25oA"} \ No newline at end of file