Download .png file to Vera via SSH - Read Only File System

Hi

Just wondering if anyone knows how I can download (curl) or copy a image file (.png) to /www/cmh/skins/default/img/devices/device_states ? Without using something like WinSCP (limited access to a windows machine0

I’m looking to replace an device icon in the Ui. Every time I try it, I get a message telling me it can’t do it, as it’s a ‘Read-only file system’

root@MiOS_ 50102351:/mios/www/cmh/skins/default/img/other# curl -O http://192.168.102.227:8081/security.png
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

Warning: Failed to create the file security.png: Read-only file system
curl: (23) Failed writing body (0 != 362)

Or via a copy when I first downloaded it to the root home folder…

root@MiOS_50102351:/# cp /security.png /www/cmh/skins/default/img/devices/device_states

cp: can't create '/www/cmh/skins/default/img/devices/device_states/security.png': Read-only file system

From what I can tell, having tried writing to each one, these are all ‘read-only’

 /www/cmh/skins/default/img/devices/device_states
 /www/cmh/skins/default/img/devices/
 /www/cmh/skins/default/img/

Where as I could write to here…

 /www/cmh/skins/default/`

HI,

You can now only put icons in this location /www/cmh/skins/default/icons/.

On UI7 in the json you have to reference them as:
…/…/…/icons/icon.png

Cheers Rene

1 Like

Perfect, thanks @reneboer

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules