Samba Update where is the filepath now?

So there has been an update to the Samba Addon but I am now lost.
I have been writing a json file to /config/www/community/skyware to use in the config with REST.

Suddenly I can no longer wtite to this file path, I can write to /homeassistant/skyware, but where is that file I cannot find it in the samba folder as there is no homeassistant folder. Where is my file being written to, I search and can’t find it? (I don’t know why changes are made like this, it just breaks everything?) feeling fed up

Samba share
Current version: 12.1.0

2 Likes

I cannot see a homeassistant folder in the share it doesn’t exist.
I can still write a file to the actual /share/ folder though

1 Like

This explains what’s going on and should help you…
Public Addon Config | Home Assistant Developer Docs (home-assistant.io)

It Should be in your /config( which btw now also is “renamed” (in UI)

I wish it was.
The file in www folder just stopped writing at 4:16 pm, depite the fact that i have done no updates for 24hrs . Please just someone tell me how to write a file to the same place as before. /config/www/community/myfolder/myfile.json

Well you wrote you can write to /homeassistant/skyware …
thats not WWW

try (homeassistant/local/skyware

from the article: Public Addon Config | Home Assistant Developer Docs

Which means /homeassistant should == /config

so /homeassistant/www is == /config/www

i guess it depends on from where and how he “connect/writes”

The folder in Samba-share is “reverted” to /config … however in file editor, /where you use to be in /config, is now also “renamed” to /homeassistant
… stay tuned :slight_smile:

\homeassistant.ip\homeassistant\test.txt …wont work

\homeassistant.ip\configt\test.txt … will work

Samba , File-Editor and SSH-Terminal(s) have been updated
And seems to work as “intended/requested” , however i have no idea how/where your REST connects

But as you said you can write to /homeassistant/whatever, then this is what you should use /homeassistant

REST is not Samba

If I write the file to /homeassistant/myfolder/file
I should be able to go to my windows share and find it, but it does not exist.
I have tried searching for it in the SMB link and it does not exist.
If I can’t find it I can’t reference it in the config.yaml and that is the issue.

if i go here

\\homeassistant\config\www\community\skyware.airdata.json

I can see my original file, but I can’t write to it with NodeRed I can only write to /homeassistant/config
and I cant find that file

Try to be “Specific”
Write from where ? through what ?

in your Windows you have /config so that where you go, unless you write to i.e /media

PS: This is Specific, You see from where i write(NP++ in Windows == samba), to where i write
15.11.2023_20.21.10_REC

I will try again I amwriting a file in Node red from the same rasp Pi that HA is installed on. I used to write it to here

 /config/www/community/skyware

“failed to write to file: Error: ENOTDIR: not a directory, open ’ /config/www/community/skyware/airdata.json’”

And have you tried with ’ IP( or your homeassistant.name) …/homeassistant/www(or local)/community/skyware/airdata.json’”

or just change /config to… /homeassistant …in your “url- pathl” …

IS Your NodeRed an add-on(In HA), or a standanlone server/container ?

OK so I tried that and it writes a file … somewhere, but I can’t find it.
\homeassistant\192.168.1.130.config\skyware\airdata2,json
\homeassistant.192.168.1.130\config\skyware\airdata2,json
I did a search and it isnot there

It is an add on in HA

my god …sorry, but try to “understand” “url”

WHY homeassistant and a \IP

BACKSLASH is not an url, it’s used in windows to access through samba

Sorry but that is what you wrote (\homeassistant.ip\configt\test.txt , which I thought was odd but I tried as you suggested.
Back to something more sensible these write a file somewhere
/homeassistant/config/skyware/airdata2,json
/homeassistant/config/www/community/skyware/airdata2,json , but they are nowhere to be found

Just change /config … to …/homeassistant

PS: NOT /homeassistant/homeassistant/config …forget about /config
AND not /homeassistant/homeassistant …either

/homeassistant/www/community/skyware/airdata2,json
writes but again it is not there