From a3518ec0bb657d45ab683c5764ea4f9d24254fef Mon Sep 17 00:00:00 2001 From: jaydee Date: Fri, 9 Jan 2026 14:07:31 +0100 Subject: [PATCH 1/3] build --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4e60254..3038e38 100755 --- a/main.py +++ b/main.py @@ -249,7 +249,7 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None): # input(json.dumps(stacks, indent=2)) commands = [ 'authentik', 'bitwarden', 'bookstack', 'dockermon', 'duplicati', 'fail2ban', 'gitea', 'gitlab', 'grafana', 'grocy', - 'hashicorp', 'home-assistant', 'homebox','homepage', 'immich', 'influxdb', 'jupyter', 'kestra', 'mailu3', + 'hashicorp', 'home-assistant', 'homebox','homepage', 'immich', 'influxdb', 'jupyter', 'kestra', 'kopia', 'mailu3', 'mealie', 'mediacenter', 'mosquitto', 'motioneye', 'n8n', 'nebula', 'nextcloud', 'nginx', 'node-red', 'octoprint', 'ollama', 'onlyoffice', 'paperless-ngx', 'pihole', 'portainer-ce', 'rancher', 'registry', 'regsync', 'semaphore', 'unifibrowser', 'uptime-kuma', 'watchtower', 'wazuh', 'webhub', 'wordpress', From ae387a794c6b982ae932ade488ac70a13aa86f44 Mon Sep 17 00:00:00 2001 From: jaydee Date: Fri, 9 Jan 2026 17:34:31 +0100 Subject: [PATCH 2/3] build --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3038e38..09f2e3b 100755 --- a/main.py +++ b/main.py @@ -252,7 +252,7 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None): 'hashicorp', 'home-assistant', 'homebox','homepage', 'immich', 'influxdb', 'jupyter', 'kestra', 'kopia', 'mailu3', 'mealie', 'mediacenter', 'mosquitto', 'motioneye', 'n8n', 'nebula', 'nextcloud', 'nginx', 'node-red', 'octoprint', 'ollama', 'onlyoffice', 'paperless-ngx', 'pihole', 'portainer-ce', 'rancher', 'registry', - 'regsync', 'semaphore', 'unifibrowser', 'uptime-kuma', 'watchtower', 'wazuh', 'webhub', 'wordpress', + 'regsync', 'searxng','semaphore', 'unifibrowser', 'uptime-kuma', 'watchtower', 'wazuh', 'webhub', 'wordpress', 'wud', 'zabbix-server'] try: print(por.all_data['stacks'][defaults_in[f"PORTAINER_ENDPOINT_ID".upper()]]['by_name'].keys()) From 2dc800f7f97eacef23b596bbf040663d2a4ce6cc Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 12 Jan 2026 23:30:30 +0100 Subject: [PATCH 3/3] build --- main.py | 6 +----- portainer/api.py | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 09f2e3b..a9a3761 100755 --- a/main.py +++ b/main.py @@ -682,8 +682,4 @@ if __name__ == "__main__": sys.exit() if args.action == "refresh_status": - if args.stack == "all": - print("Stopping all stacks...") - stcks = por.get_stacks(endpoint_id=args.endpoint_id) - else: - por.refresh_status(args.stack_id) + por.refresh_status(args) \ No newline at end of file diff --git a/portainer/api.py b/portainer/api.py index 8864401..10dc7ea 100644 --- a/portainer/api.py +++ b/portainer/api.py @@ -141,6 +141,13 @@ class PortainerApi: self.get_endpoints() self.get_stacks() + def refresh_status(self, args): + for s in self.all_data['stacks']['m-s']['by_id']: + path = f'/stacks/{s}/images_status?refresh=true' + + print(path) + res = self._api_get(path, timeout=args.timeout) + def _is_number(self, s): """Check if the input string is a number.""" try: