GoldenGnu 8 Posted January 23, 2021 (edited) I made a web version of the rotation tracker: https://aw.nikr.net If anyone have any feedback I would love to hear it. Edited January 23, 2021 by GoldenGnu (see edit history) 6 Quote Share this post Link to post Share on other sites
Haswell 294 Posted January 24, 2021 Very nice, although it still requires manual updating. Perhaps it can be developed into a web app for people to use on their own, with the option to switch over to backend data if they are feeling lazy? Quote Spoiler Share this post Link to post Share on other sites
TekNicTerror 5 Posted January 24, 2021 Some instructions/directions would be nice on how to operate it and on what stuff does (like what the skull and star does) would be nice. Quote Share this post Link to post Share on other sites
GoldenGnu 8 Posted January 28, 2021 Yerh, It still require manual update. It's just another way to display the data. The skulls and star are just a way to mark missions. I use the skull for hard mission and the star for my favorite missions. You can not change the missions yourself. I will try my best to keep it updated. Since the source is on GitHub, everyone is free to host their own version. It does require PHP, as some way to write to the server files is required to update the data. Everything else is done client side with JavaScript. 1 Quote Share this post Link to post Share on other sites
TeyKey1 119 Posted January 28, 2021 @GoldenGnu Had a look at your code, as I'm currently building a discord bot based on your tracker data. I've seen you're using json data https://aw.nikr.net/data.json. Though I already coded the ini parsing I'll probably just fetch the json one. Easier to work with in node and also contains the offset. One very minor thing I noticed is that the date/time on which the missions got updated is a 12h format and there is no period indicator (am/pm), so it's hard to tell when it got updated exactly. Quote Spoiler Share this post Link to post Share on other sites
GoldenGnu 8 Posted January 28, 2021 @TeyKey1 Now use 24 hour clock in all formats. Also added download links to all the formats. Also, it's still just updated manually, at my convenience, for the time being. I'm hoping to recruit some people to help with the updates. Quote Share this post Link to post Share on other sites
Haswell 294 Posted January 29, 2021 Just noticed there's no option to adjust local offset for the timer. The reason there's an offset function for my tracker is because not everybody's computers are synced up perfectly, so everybody's timers will be a little different than others by default. This lead to big problems when it comes to reading the rotations in real time, since the server timer is synced up (mostly) to all the clients but the local times will all be different. The offset function let people sync the tracker timer up with the server timer. If the site is to become an accessible live feed, users will need to be able to adjust their timer offsets locally. Otherwise it will simply function as a map schedule, which is still a very nice thing. Quote Spoiler Share this post Link to post Share on other sites
TekNicTerror 5 Posted January 30, 2021 his timer seems to be closer to the map switches than your's is Has, at least for me Quote Share this post Link to post Share on other sites
Haswell 294 Posted January 30, 2021 20 minutes ago, TekNicTerror said: his timer seems to be closer to the map switches than your's is Has, at least for me If he's more diligent at staying on top of the refresh times than I am, all the merrier. Just so everybody knows, my motivation for playing the game has dropped to near zero since 0.33. Slaving away at the game to instantly record the rotations as they refresh every day, at times that change every week, is not a priority for me. I have far better things to do IRL than dealing with the game. Quote Spoiler Share this post Link to post Share on other sites
nullptrdereference 8 Posted January 31, 2021 @GoldenGnu Can you, please, make some kind of public API, so I could easily retrieve current active maps? Quote Share this post Link to post Share on other sites
GoldenGnu 8 Posted February 1, 2021 @Haswell Thank you for your suggestions, I have made an issue for your offset suggestion: Let user modify offset Also, I totally agree, updating by hand is just terrible. Hopefully we can share the burden, so you won't have to do it all the days. @nullptrdereference The data is available in js/json/ini by clicking the sky icon in the bottom. Again, it's just updated by hand by me, at my convenience. No progress with automating the updating have been made. Quote Share this post Link to post Share on other sites
GoldenGnu 8 Posted February 3, 2021 (edited) @nullptrdereference @TeyKey1 If you want to use the API, I would suggest you use the ETag to check if the data have changed, that way you can hit it a lot more without coursing any significant load for me. ATM. I don't have any rules for how often you can hit it, but, I'm thinking somewhere around once a minute with ETag check would be okay for now Edited February 3, 2021 by GoldenGnu (see edit history) Quote Share this post Link to post Share on other sites
nullptrdereference 8 Posted February 3, 2021 @GoldenGnu TBH I did not understand what's the ETag, but my bot should not hit you more than once in hour. Quote Share this post Link to post Share on other sites
GoldenGnu 8 Posted February 3, 2021 @nullptrdereference It's really simple:https://www.google.com/search?client=firefox-b-d&q=ETag In short, the server send the Etag header on each request. You then set that value of the ETag in the "If-None-Match" request header. If the content didn't change, you get a 304 HTTP code and no content. If it did change you get 200 and the content. It's really really simple to implement, don't worry. 1 Quote Share this post Link to post Share on other sites
nullptrdereference 8 Posted February 3, 2021 @GoldenGnuOh, cool, will implement that at next bot update ;) Quote Share this post Link to post Share on other sites
TeyKey1 119 Posted February 3, 2021 @GoldenGnu Thanks for the heads up. Just implemented it on the bot. I'm polling the json every 10 minutes. Quote Spoiler Share this post Link to post Share on other sites
GoldenGnu 8 Posted February 3, 2021 Ofc. you decide how often you pull the data, but, each visitor to the website is updating from JSON about 60 times an hour (with ETag), so as long as you pull less than you're just a regular visitor. Also, all the API files are just a static files, making them cheep to serve. Quote Share this post Link to post Share on other sites