hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
304 stars 63 forks source link

You were all wrong with this, in my case the solution was quite simple! #1329

Closed Solar320 closed 2 hours ago

Solar320 commented 3 hours ago

https://github.com/hoylabs/OpenDTU-OnBattery/discussions/1249

"Exception: it seems 'yarn' is not installed/available on your system:"

Since I am only want to change some things in the code for myself I don't want to learn all about every detail in VSC or all the different programming languages. I said this many times but all I hear is, " you do not do this before" or you have to compile something else.

But no one can explain an simple installation process to use yarn and which dependencies it has, also the yarn installer appearently do not test if node.js is also installed?!?

At this time I do not know many about what yarn or node.js and this is still the same :)

The problem is that this "yarn not installed warning" does not appear because "yarn" was not installed in my system but because node.js was not installed!

Why no one can tell me this? Because you don't think about this possibility and I do not know that I also need node.js

I now Installed again Yarn "yarn-1.22.22.msi" then I Installed Node-v20.18.0-x64.msi Without any other changes I now can compile my own version of Open DTU on Battery with VSC again.

https://github.com/yarnpkg/yarn/releases https://nodejs.org/en


Old Thread: I have the same problem, I want to compile my own version and do not even know what to H yarn is !?!? ( I only compile and I am no programmer, I only change something into the Plattform IO Override eg. the use of [env:opendtufusionv2] or -DBOARD_HAS_PSRAM=1 and so on. ) ................................

The Answer was something like this :

"spcqike Sep 13, 2024

Das Problem: Viele User (wie du) wollen die Firmware compilieren ohne vorher die Webapp zu bauen. Das ist im Wiki beschrieben.

Ohne aktueller und gültiger Webapp kann es sein, dass man entweder eine Firmware bekommt, die nicht korrekt läuft, oder auch gar keine.

Daher das pre-script, welches die webapp automatisch compiliert, wenn nötig. Dafür braucht es zwingend die Abhängigkeiten (die es auch ohne Skript braucht, nur eben muss man es sonst manuell ausführen)

wenn du keine eigenen Anpassungen vornehmen musst oder willst, brauchst du eigentlich keine Firmware selbst kompilieren. Wenn du es doch willst, musst du die webapp bauen."

schlimmchen commented 2 hours ago

You were all wrong with this

🚨 Watch your language.

But no one can explain an simple installation process

RTFM!

I now Installed again Yarn "yarn-1.22.22.msi"

You are not supposed to do that. Again: RTFM