Page 1 of 1

What is the file domocookie.txt and is it possible to remove

Posted: Friday 10 July 2015 11:08
by ded38fr
Hello,

Since last domoticz versions, I see a file domocookie.txt.

What is this file for?
I've put it in a tmpfs, like domoticz.db, to reduce read/writes on SD card.

After reboot, I have a script which restore domoticz.db from last backup, but this file disapear after reboot.

Is it a problem if the file is removed? Is it recreated if needed, or should I backup it, to restore on reboot?



Thanks for your help,

Re: What is the file domocookie.txt and is it possible to re

Posted: Friday 10 July 2015 12:17
by gizmocuz
that is when you use http sensors/hardware, and the site uses coockies, we need this file

Re: What is the file domocookie.txt and is it possible to re

Posted: Friday 10 July 2015 14:54
by ded38fr
OK, thanks :D

Re: What is the file domocookie.txt and is it possible to remove

Posted: Sunday 17 April 2016 22:47
by georgesattali
Hello,
same kind of problem ...
Is there a way to reduce recordings on the SD Card ?
I made domocookie.txt readonly, is that ok ?
I suppose of course, I would have to make it rw back if I use other web sites, but for now ...
Thanks

PS - must say, I have got some geekish pride of :

Code: Select all

pi@raspberrypi ~/domoticz $ sudo find / -mmin -10  -ls | grep -v /var  | grep -v /proc
   269    4 drwxrwxrwt   2 root     root         4096 Apr 17 22:23 /tmp
281474976796498   24 drwxrwxrwx   2 root     root        24576 Apr 17 22:23 /mnt/pc
56013520365515303   76 -rw-rw-rw-   1 root     root        75071 Apr 17 22:23 /mnt/pc/domo.log
  3476    4 -r--r--r--   1 pi       pi            739 Apr 17 22:27 /home/pi/domoticz/domocookie.txt
     3    0 crw--w----   1 pi       tty               Apr 17 22:29 /dev/pts/0
  1107    0 crw-rw-rw-   1 root     root              Apr 17 22:28 /dev/ptmx
/mnt/pc being a cifs dir on my Windows PC.