IanB Posted April 14, 2019 Share Posted April 14, 2019 I decided to explore the possibility of writing my own Android application for Unraid. This was more of an opportunity for me to explore some areas of Android that I hadn't played around with, along with building a new app from scratch. Development was pretty quick/rapid and was able to throw together something that I personally liked. It's now mostly functional, but the key areas missing are not really programming challenges, but more challenges with continuing to try and reverse engineer the API to extract the necessary information from an Unraid server (since there isn't any official supported API). Where is the best place to ask for help? Just ask the individual / specific questions in the forums? I've also not decided if i'd actually release the app for others - I guess it will depend on any interest there is in it. I'd probably want to seek permission though to make sure the Unraid team area happy with it first. Some of the types of questions I hate: What is the correct way to extract the "csrf_token" for the server? And how often should I refresh it? Is there a way to update/obtain share sizes individually? I've been playing around with the "/webGui/scripts/share_size" script exectued via "/update.htm" followed by grabbing the generated "/state/x" file - but it doesn't seem to be correct? In case people are interested in seeing some screenshots, here's a few (slightly out of date)... 1 Quote Link to comment
L0rdRaiden Posted April 14, 2019 Share Posted April 14, 2019 Awesome, I hope you get direct help from the dev team I hope as well you release the app for the whole community. Quote Link to comment
Squid Posted April 14, 2019 Share Posted April 14, 2019 2 hours ago, IanB said: What is the correct way to extract the "csrf_token" for the server? And how often should I refresh it? From /var/local/emhttp/var.ini. It's changed on every reboot of the server. Quote Link to comment
IanB Posted April 14, 2019 Author Share Posted April 14, 2019 1 hour ago, Squid said: From /var/local/emhttp/var.ini. It's changed on every reboot of the server. Thanks @Squid! I totally missed that, accessible via "/state/var.ini". Quote Link to comment
IanB Posted April 15, 2019 Author Share Posted April 15, 2019 @Squid Don't suppose you know an easy way to obtain the `Uptime` from the server? I had hoped to also find it in the same var.ini file, but doesn't seem to be present... Quote Link to comment
IanB Posted April 16, 2019 Author Share Posted April 16, 2019 12 hours ago, Squid said: Only by running uptime Sorry @Squid, not sure I follow. I'm basically trying to programmatically determine the same details presented here by the Web interface: Thanks in advance Quote Link to comment
itimpi Posted April 16, 2019 Share Posted April 16, 2019 24 minutes ago, IanB said: Sorry @Squid, not sure I follow. I'm basically trying to programmatically determine the same details presented here by the Web interface: Thanks in advance That is a subset of the information returned by the CLI level 'uptime' command. Perhaps you had not realised that 'uptime' is a standard command? Quote Link to comment
IanB Posted August 4, 2019 Author Share Posted August 4, 2019 (edited) Does anyone know if Unraid do any request limiting for clients? I've been making good progress with my application but finding that when it initially loads, it can be pretty slow. Debugging it shows that there is an unexpected delay when making a number of requests to the server. If I delay (myself) between the requests, the response are very fast... Sequential ========== [IABI]: getting /state/var.ini... [IABI]: finished getting /state/var.ini... 2918 [IABI]: getting /Dashboard... [IABI]: finished getting /Dashboard... 65720 - 2.332s Sequential (Reverse Order) ============================== [IABI]: getting /Dashboard... [IABI]: finished getting /Dashboard... 65720 [IABI]: getting /state/var.ini... [IABI]: finished getting /state/var.ini... 2918 - 2.228s Sequential (Delay between requests) =================================== [IABI]: getting /Dashboard... [IABI]: finished getting /Dashboard... 65720 - 0.267s [IABI]: getting /state/var.ini... [IABI]: finished getting /state/var.ini... 2918 - 0.143s Individual ========== [IABI]: getting /state/var.ini... [IABI]: finished getting /state/var.ini... 2918 - 0.165s ... [IABI]: getting /Dashboard... [IABI]: finished getting /Dashboard... 65720 - 0.306s Any help would be appreciated Edited August 4, 2019 by IanB Quote Link to comment
IanB Posted February 7, 2020 Author Share Posted February 7, 2020 Sorry, I haven’t had time in a while. Due to no official API, the Unraid updates have broken what I previously had working. Hopefully I’ll have time soon but my job keeps me busy 😅 Quote Link to comment
IanB Posted February 25, 2020 Author Share Posted February 25, 2020 I've been able to actually update the app and have it mostly working. There is still some issues I need to iron out, as well as potentially some UX nits that I would clean up first if I was to launch this. Is there anyone at Unraid that I can (or should?) talk too regarding this app? I'm still in two minds what to do with it (it was a hobby project), but it could provide some value to users. I would be happy to share details of the app, a video or even an APK for feedback/thoughts from the team. @Squid Sorry for the ping, but do you know who would be best to contact and how? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.