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

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
ded38fr
Posts: 5
Joined: Sunday 15 March 2015 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

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

Post 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,
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post by gizmocuz »

that is when you use http sensors/hardware, and the site uses coockies, we need this file
Quality outlives Quantity!
ded38fr
Posts: 5
Joined: Sunday 15 March 2015 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

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

Post by ded38fr »

OK, thanks :D
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest