I can't find and edit the javascript file of a module (Home assistant)

Hi, I have the same problem as this github (https://github.com/Hypnos3/node-red-contrib-cast/issues/73
) and it says that to solve I have to modify the javascript file inside the module, only when I go to the node_modules folder I do not find the add-on and therefore not even the javascript file


HA

Since you didn't let us know what device/OS you are using, I will provide an answer that would apply if ou were tunning on a raspberry pi using Buster.
ssh into the device and enter
cd $HOME.node-red/node_modules/node-red-contrib-cast
and that will put in the folder with the nodes code,

yes you are right sorry, i am using a raspberry pi 3 B +, i installed through SD memory card home assistant (Link).
i ran the command on the shell through putty link but it tells me this error:
Cattura

Ahh you are using Home Assistant, that would have been an important peice of information to have provided.

Not being a Home Assistant user (nor are many others here) you would be best served asking on the Home Assistant forum.

Good Luck!

That node was last updated 2 years ago and is no longer maintained.
There is another node-red-contrib-castv2. No idea if it offers the same functions.

However, the issue you say you have is marked as closed, presumably included in v0.2.17.

If it were not a Home Assistant installation, that should be
cd $HOME/.node-red/node_modules/node-red-contrib-cast

and there is no way to change it?

this javascript must be somewhere else how does it work?

because my problem is to create an exception when I get this error:


@zenofmud @zenofmud
thanks for all

You're right, the JavaScript is elsewhere. It is inside of the container (a virtual machine) & typically not accessible because you are using node red from within home assistant.

If Node red were installed outside of home assistant. Then you could access the files.

If you really want to try, you could log into the container and it will be within that directory listed in the GitHub issue.

Alternatively, don't use the home assistant node-red Add-in - instead - install node red locally.

I could also install pure node red without home assistant the problem is that after I don't know how to integrate this iteration (link)

you can use the alexa nodes

e.g. Search results for 'alexa skills' - Node-RED Forum

I am afraid I have no idea how a Home Assistant machine is set up.
To find the file on my Raspberry Pi i would run sudo find / -name cast-to-client.js.
But maybe HA has stuff hidden in containers like with Docker.