NAS app - help needed

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
Post Reply
User avatar
m_pashka
Posts: 3
Joined: 12 May 2021, 16:47

NAS app - help needed

Post by m_pashka »

Hello

I'm creating my first TerraMaster application. I have arm64 based F4-210 and I decided to start from creating Entware application. My plan was to create entware app first and then to build other apps on top of entware (e.g. tor, dnsmasq, for transparent resources access from LAN, e.t.c.). I used script provided by MaitreKuc memberlist.php?mode=viewprofile&u=2087 in sibling forum message - [TUTO] Install Entware (opkg) viewtopic.php?f=37&t=829.

So I've created it. Installed. But I don't see application icon on TOS desktop. List of installed applications on TOS desktop stopped working. Now I have two apps installed - docker and entware and TOS -> applications -> installed shows nothing. I checked appropriate http request TOS sends to get list of installed applications and it looks strange - I see empty string instead of entware, almost all fields are empty:
Request: http://_nas_ip_:8181/tos/index.php?app/get_installed_app
Response:

Code: Select all

{"code":true,"use_time":0.26152706146240234,"data":{"":{"exec":0,"install":1,"type":"app","category":1,"category_name":"Utilities","name":"Entware#app title"},"docker":{"url":"http:\/\/dl.terra-master.com\/cn\/RTK7.0CJ\/docker_TOS_APP_17.05.6_aarch64.tpk","md5":"c9147e5aec19e62a9fdfde117569a433","time":"2021-05-06 18:14:44","size":"20.36M","version":"17.05.6","id":"docker","name":"Docker","auth":"Docker,Inc.","desc":"Docker enables true independence between applications and infrastructure and developers and IT ops to unlock their potential and creates a model for better collaboration and innovation.","type":"app","category":"Business","install":1,"hideTitle":0,"group":"recommand","exec":1,"width":900,"height":580,"path":"\/module\/index.php?mod=4.Application\/23.docker.php&t=0","icon":"http:\/\/app.terra-master.com\/images\/icons35\/docker.png","thumbs":["http:\/\/dl.terra-master.com\/thumbnail\/docker\/1.png","http:\/\/dl.terra-master.com\/thumbnail\/docker\/2.png","http:\/\/dl.terra-master.com\/thumbnail\/docker\/3.png"],"release_note":"[17.05.5]<br>- X86<br>- Fixd:Unable to download the image file on the front end of version 4.2.11.<br>[17.05.6]<br>-ARM<br>- Fixd:Cannot download the image file on the page.<br>","content":"core.appNormal();","status":2,"category_name":"Бизнес"}},"info":"Operation successful!"}
But my app still can be started in separate browser window (not from TOS desktop) using URL from my config.ini: http://_nas_ip_:8181/module/?mod=4.Application/1060.entware.php&t=0

Here are sources of my app: https://github.com/mpashka/terranas/tre ... ps/entware (terranas/apps/pack.sh script can be used to create app).

My app for arm64: https://drive.google.com/file/d/1QDPxkU ... sp=sharing

Can anybody help me with fixing these issues?

PS: Also there was an issue installing it - installation stopped at 50%. I've found that in order for app to be installed properly it must have appropriate lang section in APP_ID.lang file (see TerraMaster_APP_packaging_guide_en_1.04.pdf). And I had ru-ru locale on my TOS desktop which is not present in packaging guide.
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: NAS app - help needed

Post by TMSupport »

Please refer to this link to get more information https://www.terra-master.com/us/developer/
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
TMroy
TerraMaster Team
Posts: 2578
Joined: 10 Mar 2020, 14:04
China

Re: NAS app - help needed

Post by TMroy »

We are going to provide a demo in a short time which will help developer better understand how to build a app for TOS.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Post Reply