RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    WebtroPie

    Scheduled Pinned Locked Moved Projects and Themes
    retropieweb interfacewebtropie
    157 Posts 27 Posters 62.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kixut @darknior
      last edited by

      @darknior hi, I will get on that problem next, sorry I've been quiet this last week and I only saw the github issues a few days ago.

      I've a few commits that I haven't pushed yet (carousel vertical-wheel for SpaceOddity theme, a speedup, ... I can't remember what else) so I will push them with the github fixes. It was a good idea to move the issues to github I think and was about to suggest it.

      @madmodder123 thanks :)

      darkniorD 1 Reply Last reply Reply Quote 1
      • darkniorD
        darknior @kixut
        last edited by

        @kixut said in WebtroPie WIP:

        a speedup

        What do you speed up ?
        The big thing slower than on PI, is the HOME MENU, it take more time to jump from a system to an other one.

        Life is game, just play it !

        K 1 Reply Last reply Reply Quote 0
        • K
          kixut @darknior
          last edited by kixut

          @darknior if some system lists have several thousand games or so it can take a few seconds to parse, check sizes, paths, media etc and encode the result, so I added a few lines of php code to store the result and if the cache is newer than the gamelists to just send back the cached result from last time to the client instead, it will probably still take a second as it is still a large file to transfer over the network but worth it I think, I've made it an option so it can be compared on or off but I've a feeling it will always be more efficient on.

          I've just got in so haven't looked yet but was thinking about the saving problem, I have a little code which prevents updates from clients not on the 192.168 network, I put it there so that if someone served their site to the outside world they wouldn't want to give write access to the world, .... are you editing from 192.168.?.? on your local network ?

          darkniorD 1 Reply Last reply Reply Quote 0
          • darkniorD
            darknior @kixut
            last edited by

            @kixut said in WebtroPie WIP:

            cache is newer than the gamelists to just send back the cached result from last time

            Excellent idea :)
            To be fastest you can also use the BROWSER CACHE :)
            I use it some time a go and it is instant :)

            are you editing from 192.168.?.? on your local network

            Yes i'm am, not problem with that. And all other informations saving fine, only description is not saved :(

            updates from clients not on the 192.168 network,

            Why not, it can be cool to work with friends too, can we remove this option in settings too ?

            Life is game, just play it !

            K 1 Reply Last reply Reply Quote 0
            • K
              kixut @darknior
              last edited by kixut

              @darknior see my reply on GitHub. Yes, I will add that as an option, good idea. ta

              Edit: The problem with browser cache is that I want it to expire when the gamelist changes, I could give the php script an expiry date but if the gamelist changes before then the user would see old data. Having said that, it gives me an idea, initially I load the configuration file from the server, I could include in this the file dates of the gamelists this gets sent to the client, then, if I request each game list with that as a parameter then it should cache correctly client side without the need to cache server side. I'll have a go for next time.

              1 Reply Last reply Reply Quote 1
              • darkniorD
                darknior
                last edited by

                • It's ok for Description saving.
                • I know why the home menu is slow, i think it's because you stand to COUNT GAMES, and show GAME COUNT with an translation ANIMATION, before moving to the next system. And it take time ... Maybe is it possible to stand a little to start the animation to let us fastest move to the next system?

                Life is game, just play it !

                1 Reply Last reply Reply Quote 0
                • L
                  LinuxArcadeGuy
                  last edited by LinuxArcadeGuy

                  @darknior just to let you know... after installing and initializing the apache web server it goes to the success page when you load http://retropienamehere so in var/www/html you need to wipe the index.html and add this:

                  <!DOCTYPE HTML>
                  <html lang="en-US">
                  <head>
                  <meta charset="UTF-8">
                  <meta http-equiv="refresh" content="0; url=./http://127.0.0.1/app/">
                  <script type="text/javascript">
                  window.location.href = "./app"
                  </script>
                  <title>Page Redirection</title>
                  </head>
                  <body>
                  If you are not redirected automatically, <a href='./app'>click here</a>.
                  </body>
                  </html>

                  this will automatically redirect you to the symbolic link of "/home/pi/WebtroPie/app"

                  you may want to have a script auto generate this...

                  Thanks for a great add-on!

                  K 1 Reply Last reply Reply Quote 1
                  • K
                    kixut @LinuxArcadeGuy
                    last edited by

                    @linuxarcadeguy hey thanks good idea, I have added a REDIRECT_WEBROOT.sh script to install your file.

                    I'm planning to spend a little time setting up the wiki so I will include an explanation of this there.

                    1 Reply Last reply Reply Quote 1
                    • darkniorD
                      darknior
                      last edited by

                      Yes thanks it works fine for me too :)

                      Life is game, just play it !

                      1 Reply Last reply Reply Quote 1
                      • L
                        LinuxArcadeGuy
                        last edited by

                        also.... launch isnt working for me... not that its real handy, just wanted to see it work... :)

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          kixut @LinuxArcadeGuy
                          last edited by kixut

                          @linuxarcadeguy thanks for the feedback, I've fixed the launch issue now, please note that you may have to run INSTALL.sh again.

                          While I mention it the INSTALL.sh has considerably changed and you are given the choice of running the app either under apache or stand alone using php web server (no changes are made to apache/php), more information regarding this is shown during the install.

                          The INSTALL.sh changes also fixes a big issue with the app not having the correct permissions leading to many problems.

                          thanks

                          1 Reply Last reply Reply Quote 1
                          • L
                            LinuxArcadeGuy
                            last edited by LinuxArcadeGuy

                            this needs a pin to top for people to easily find install instructions, pin with demo video pls..

                            git clone https://github.com/gazpan/WebtroPie
                            cd WebtroPie
                            sudo ./INSTALL.sh
                            optionally
                            sudo ./ENABLE_LAUNCH.sh

                            please also note chmod must be performed on install.sh and enable_launch.sh

                            redirect doesnt work, you have to replace index.html in var/www/html with the redirect file index.html

                            1 Reply Last reply Reply Quote 0
                            • L
                              LinuxArcadeGuy
                              last edited by

                              also... new installation doesnt work... maybe work up exact installation instructions of how its supposed to be installed, since you have many manual steps versus an automated scripting process

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                kixut @LinuxArcadeGuy
                                last edited by

                                @linuxarcadeguy hi, weirdly I didn't see this because I've been updating the Wiki

                                Only those first 3 lines are needed now since the install now prompts for apache vs stand alone.

                                Could you tell me how it is failing to work, how far it gets and what you can see.

                                Maybe the wiki could answer the problem but I really like to make sure the install step is good as it can be.

                                thanks

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jwcbronski
                                  last edited by

                                  @kixut I really like WebtroPie but unfortunately images and videos are not displayed on the details screen. My images and videos are in the

                                  /home/pi/.emulationstation/downloaded_images/

                                  folder. When I copy the video-url it looks like that:

                                  http://192.168.2.107/app/svr/home_.emulationstation/downloaded_images/amiga/Amiga Karate-video.mp4?1508266606

                                  Is there a way to fix that?

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    kixut @jwcbronski
                                    last edited by

                                    @jwcbronski thanks... sorry about the bug, can you update and refresh you browser please?

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jwcbronski
                                      last edited by

                                      @kixut Thanks a lot. Now it works.
                                      Another question: Is it possible to automatically add an -image or -video suffix to the filenames when uploading media in WebtroPie?

                                      K 1 Reply Last reply Reply Quote 0
                                      • E
                                        EctoOne
                                        last edited by EctoOne

                                        Since i'm planning on reinstalling my Pi (again) when i get a bigger USB stick, i just installed a bunch of extras to try out.
                                        And i also took a look at this, even though I probably have not that much use for it.
                                        There are some things I would like to see.

                                        • Have an Option to run the STANDALONE.sh from the RetroPie Menu within ES
                                        • If that option was available, it should probably kill ES beforehand to avoid conflicts
                                        • If ES was killed in that process, it should be possible to either restart ES or reboot the system from WebtroPie
                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kixut @jwcbronski
                                          last edited by kixut

                                          @jwcbronski at the moment no but this would be simple to add, there's two options I think

                                          • add a field in the upload config menu for 'suffix' which is appended to the upload filename
                                          • have an upload format mask which could contain: prefix, suffix, and variables $(romName} or ${imageFilename}
                                            • which has the advantage of giving the choice of whether to use the rom name as default or to keep the original filename and to have optional suffix and/or prefix
                                            • but the disadvantage that it's more complicated and wouldn't make sense without the user reads about it.

                                          I think maybe just a suffix field, what do you think ?

                                          @EctoOne thanks for trying it out, yes, it probably needs a few more useful features all to come in time :).

                                          • I was planning on looking at how to make this an installable ES package near to a version release so I'll look at how to do you request above about then
                                            --
                                            I'm sure I could write a dirty script to change the menu but I vaguely remember seeing a config file that is used to generate the menu so that when retropie is updated the menu change wouldn't get overwritten - but maybe this was for systems, I will research
                                            --
                                          • yes, for either way of running it I'm planning on adding the usual warning "ES is running - your changes may be overwritten" popup on first page load of the app and an optional "stop ES" button
                                            --
                                            The non stand alone (apache) install could be used by users who may need to stop ES or may just be looking and not editing and may wish to keep ES running while browsing.
                                            --
                                            But yes, if you choose to run standalone then then killing ES would avoid the issue but given that I have to add the above warnings anyway I'm wondering if it would always be the case that running standalone would always mean that the user wants ES to be stopped ?
                                          • yes, perhaps a current status + start / stop ES option in a new menu somewhere too.

                                          Note: If you run standalone and have recently updated please re-run the install, (it needs a new index file to include a couple of new js scripts)

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jwcbronski
                                            last edited by

                                            @kixut I always use the romname plus the suffix. So the easy suffix solution would work for me.

                                            darkniorD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.