Wim for two inverters

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #20534
      Francesco
      Participant

        Hi Renzo,
        I appreciate very much your work!! Very impressive to me. I thank you for this efforts! My SolarLog has gone after a lightining so I built your logger and it works well (sometimes recordings on SD cards is blocking, I investigate…).
        I have two inverters so I’m going to modify your firmware to gather data from inverters one and two.
        I developed a small React application (now only on PC, I’m new on this enviroment) to show the data-graph. My question is: how is possible to address the REST server from webApp without put in the code a fixed ip?
        Maybe I’m asking trivial question – I’m not a professional programmer!

      • #20535
        Renzo Mischianti
        Keymaster

          Hi Francesco,
          I think the fastest and simple solution is to modify the current version of the web interface, you can find It on GitHub.

          For the IP remember that when installing It on the device you can use the relative path, so if you use, in your code, an address like /pippo the result becomes HTTP://indirizzo/pippo.

          In the code I shared you can find a settings.json file, inside there is a static IP used when I develop the web interface from a PC, but when I generate the package to install on the device I don’t copy the settings.json file, It will be generated by the Arduino firmware without the IP, so all the path will be relative.

          Bye Renzo

        • #20536
          Francesco
          Participant

            Great! I didn’t know the WebApp sources were public! At least I learned how to build a SPA with REACT and g2Plot graph (but I don’t know REDUX)! Now I’ll have to study your code … it will not be easy!
            Thank you a lot again!

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.
        Exit mobile version