logo elektroda
logo elektroda
X
logo elektroda

[Solved] Reading of current power from photovoltaics via ESP - Incorrect HTTPClient code

klon111 1992 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19262896
    klon111
    Level 11  
    It wants to read the current power as given by the photovoltaic with the ESP
    This code does not work. I get the answers
    !important;} .notice_content {j ; }} .web-hosting-90-off-image { ---Reading from solar---- server

    For web pages it is ok.
    Code: C / C++
    Log in, to see the code
  • ADVERTISEMENT
  • #2 19264140
    powerT
    Level 9  
    Get more specific... what and how it is connected to begin with
  • ADVERTISEMENT
  • #3 19264163
    klon111
    Level 11  
    I connect to the LAN via WiFi
    The server on Sofar is working fine and the data is flowing out
    But trying to read from it to not install voltage measurement via ADC.
  • ADVERTISEMENT
  • #4 19311938
    Marian143
    Level 11  
    klon111 wrote:
    Wants to read the current power as given by the photovoltaic via ESP
    This code doesn't work. And it gets responses
    !important;} .notice_content {j ; }} .web-hosting-90-off-image { ---Reading from solar---- server

    For web pages it is ok.
    Code: C / C++
    Log in, to see the code


    Hi - I will also be trying to get this on the ESP soon. - The question is: did you manage to download the data?
  • #5 19313943
    klon111
    Level 11  
    I have done the reading on the Raspberry OSMC
    The finished script will turn on the water heating when the power is above 2300w turns off at 1800w.
    You can also control from the server or from a file where I set the time to switch on, or switch the pins on.

    But I have a problem how to run the script automatically by OSMC during a power failure .

    Code: Bash
    Log in, to see the code
    .
  • ADVERTISEMENT
  • #6 19318004
    FrankAB
    Level 20  
    klon111 wrote:
    ....But I have a problem how to run the script automatically via OSMC during a power outage...
    .
    In normal Raspbian you add the starter to /etc/rcx.d,
    or to /etc/rc.local
  • #7 19328306
    klon111
    Level 11  
    Thanks to FrankAB for the hints

    I have another problem with writing to the server with Bash
    curl "https://hkjhk.dgggfgdfgp.com/solar.php?moc=wrwrwrwerwerwer" #save to server and it's ok

    curl "https://hkjhk.dgggfgdfgp.com/solar.php?moc=$xxxx" #and here is the problem .
  • #8 19332771
    klon111
    Level 11  
    I have a question on how to read in micropython .
    This function in the Arduino on the ESp32 reads data from the solar.

    Code: C / C++
    Log in, to see the code
    halo attempt to write on the

Topic summary

The discussion revolves around issues faced while attempting to read current power data from a photovoltaic system using an ESP microcontroller. The user reports that their HTTPClient code fails to retrieve the expected data from the server, which is operational. Subsequent responses inquire about the connection setup and whether data retrieval was successful. The user shares experiences with a Raspberry Pi setup for controlling water heating based on power readings and seeks advice on automating script execution during power failures. Additional queries involve reading data using MicroPython and issues with writing to a server using Bash scripts.
Summary generated by the language model.
ADVERTISEMENT