Feature Request: Public APIs for Third-Party Integrations and Mobile Apps

,

Nice dashboard!

2 Likes

Nice one @jgjimenezs

2 Likes

Greetings, brothers, I’m refactoring API calls in my code, reducing lines of code, and reusing functions. I’ll soon update the GitHub repo and upload the cleaner source code.

I’ve worked in the software center, core software, and smarthost, changing app functions.

2 Likes

I am updating the NS8 Core updates in Software Core in my app, but when processing the core1 instance, it tells me it does not exist. I tested it with traefik1 and it updated without any problem. What does the core1 question refer to or is it not updated with update-module?

{ā€œcodeā€:200,ā€œdataā€:{ā€œerrorā€:"Traceback (most recent call last):\n File "/var/lib/nethserver/cluster/actions/update-module/50update", line 40, in \u003cmodule\u003e\n ping_errors = agent.tasks.runp_brief([{"agent_id": f"module/{mid}", "action": "list-actions"} for mid in instances],\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/agent/pypkg/agent/tasks/run.py", line 61, in runp_brief\n results = asyncio.run(_runp(tasks, **kwargs))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run\n return runner.run(main)\n ^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run\n return self._loop.run_until_complete(task)\n

@giacomo

Done @giacomo the cores are for the nodes, and the rest are modules. Solved, applying it to my app’s source code.

2 Likes

Happy weekend! Uploading the source code to GitHub. I still need to fine-tune some processes for installing and uninstalling a module on a node, and the progress of the task. I’m a little slow due to my father’s health, but I’m active on the app. Thanks to everyone for your support.

I’ll compile an apk for you all to try.

1 Like

I have performed some installation tests from an API client and some without problems and I have uninstalled it from the web and reinstalled to see how to implement the installation progress from the app but it has given me an error, is there a way to clean that installation that was left as a ghost and see why it gives me an error when reinstalling Dokuwiki?


dokuwiki error

I’m using from the cluster api

ā€œactionā€: ā€œadd-moduleā€,
ā€œdataā€: {ā€œimageā€: ā€œ$source:$versionā€, ā€œnodeā€: nodeId},

Greetings, already perfecting the message during the installation and uninstallation of an app, now evaluate the exit_code to handle errors

1 Like

Brothers, I have adapted the installation and uninstallation message. It is necessary to implement the maintenance of a list of nodes where an app can be installed and nodes where it should be uninstalled. If there are 2 nodes and I install on one, a menu should be displayed indicating the node available to install that app, as well as when uninstalling it.

Try the apk and tell me how it goes.

1 Like

These changes will come already applied in the code, not in the published APK.

1 Like

Good morning, my brothers and sisters, God bless you always. Today I’ll start the TLS certificates module and the audit, but @giacomo @mrmarkuz I’d like to know the endpoint for tracking the audits. I’m searching on GitHub, but I’m slow.

thanks.

Is it normal to be able to install more than one module on a node? I just implemented the ability to uninstall if more than one module is installed on the same node.

1 Like

When I want to upload a certificate, I upload the key first, and then the certificate should only allow .key and .cert files.

.cert
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

.key

-----BEGIN PRIVATE KEY----- or -----BEGIN RSA PRIVATE KEY-----
-----END PRIVATE KEY----- or -----END RSA PRIVATE KEY-----

I have updated the APK in this revision so you can try uninstalling the apps.

1 Like

its very normal to have more than one app on a node, different reasons… but being able to uninstall is great.

1 Like

It’s saved in timescaledb, see GitHub - NethServer/ns8-samba: NS8 Samba configuration

1 Like

yes, but the same one?

I found it strange to be able to install the same app again, webtop1 and webtop2, for example, on the same node.

Yes, in NS8 it’s possible to install more instances of the same app on one node.
It’s only possible if the app doesn’t open a dedicated port. For example mail needs port 25 so only 1 instance on 1 node is allowed.

1 Like

but I don’t have samba installed

Sorry, there are samba audits and cluster-admin audits, see API server | NS8 dev manual

1 Like