Coder Social home page Coder Social logo

folder name in cleanup.cgi about merkury1080p HOT 4 OPEN

guino avatar guino commented on July 28, 2024
folder name in cleanup.cgi

from merkury1080p.

Comments (4)

waldo486 avatar waldo486 commented on July 28, 2024 1

Ok I modified main.cgi with vi and rebooted and it works perfectly now ! Thanks very much :)
I will try to modify cleanup.cgi with you instructions
Have a good day !

from merkury1080p.

guino avatar guino commented on July 28, 2024

@waldo486 sounds like you'd have to adjust cleanup.cgi for your card structure (which I have never seen). You're welcome to post a zip of you SD card contents so I can review it (you can replace the video files with zero-size files or just provide a listing with ls -laR /mnt/mmc01 in telnet).

If upload.html is working then you should be able to get index.html to work -- both just require busybox and cgi-bin/*.cgi to work. One thing to notice is that to browse the file listings you have to use this URL format: http://user:password@ip:8080/ with the user and password from httpd.conf and the important part is to NOT put in index.html at the end of the URL (otherwise it won't work).

from merkury1080p.

waldo486 avatar waldo486 commented on July 28, 2024

Hi, thanks for the quick response !

BusyBox v1.20.2 (2021-05-26 09:42:13 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # ls -laR /mnt/mmc01/
/mnt/mmc01/:
-rwxr-xr-x    1 charles  root           161 Jan 27 21:30 upload.html
-rwxr-xr-x    1 charles  root           263 Jan 27 21:30 set
-rwxr-xr-x    1 charles  root            41 Feb  2 05:15 passwd
-rwxr-xr-x    1 charles  root           131 Jan 27 21:30 mqtt_pub
-rwxr-xr-x    1 charles  root          7956 Jan 27 21:30 jpeg-arm
-rwxr-xr-x    1 charles  root          1327 Jan 27 21:30 index.html
-rwxr-xr-x    1 charles  root            14 Feb  2 02:24 httpd.conf
-rwxr-xr-x    1 charles  root           131 Jan 27 21:30 dropbearmulti
-rwxr-xr-x    1 charles  root           621 Feb  2 05:17 custom.sh
-rwxr-xr-x    1 charles  root       1109128 Feb  2 05:10 busybox
drwxr-xr-x    2 charles  root         16384 Jan 27 21:30 cgi-bin
-rwxr-xr-x    1 charles  root       2783256 Feb  2 01:48 ppsapp
drwxr-xr-x    3 charles  root         16384 Feb  2 00:38 sdrec
-rwxr-xr-x    1 charles  root             5 Dec 31  2015 hack
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 bin
drwxr-xr-x    3 charles  root         16384 Dec 31  2015 etc
-rwxr-xr-x    1 charles  root            60 Feb  2 01:18 ppsFactoryTool.txt
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 lib
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 home
-rwxr-xr-x    1 charles  root           425 Feb  2 01:17 initrun.sh
-rwxr-xr-x    1 charles  root         10864 Feb  2 15:03 my_file
drwxr-xr-x    2 charles  root         16384 Feb  2 01:07 System Volume Information
drwxr-xr-x    3 1000     1000             0 Dec 31  2015 ..
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 .

/mnt/mmc01/cgi-bin:
-rwxr-xr-x    1 charles  root           458 Jan 27 21:30 video.cgi
-rwxr-xr-x    1 charles  root          1700 Jan 27 21:30 upload.cgi
-rwxr-xr-x    1 charles  root           216 Feb  2 02:26 snap.cgi
-rwxr-xr-x    1 charles  root           923 Feb  2 12:22 play.cgi
-rwxr-xr-x    1 charles  root           222 Feb  2 12:21 mjpeg.cgi
-rwxr-xr-x    1 charles  root           137 Jan 27 21:30 main.cgi
-rwxr-xr-x    1 charles  root           428 Jan 27 21:30 cleanup.cgi
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    2 charles  root         16384 Jan 27 21:30 .

/mnt/mmc01/sdrec:
drwxr-xr-x    3 charles  root         16384 Feb  2 04:53 T-101691610
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    3 charles  root         16384 Feb  2 00:38 .

/mnt/mmc01/sdrec/T-101691610:
drwxr-xr-x    4 charles  root         16384 Feb  2 13:13 mp4rec
drwxr-xr-x    3 charles  root         16384 Feb  2 00:38 ..
drwxr-xr-x    3 charles  root         16384 Feb  2 04:53 .

/mnt/mmc01/sdrec/T-101691610/mp4rec:
drwxr-xr-x    2 charles  root         16384 Feb  2 14:44 20220202-PM
drwxr-xr-x    2 charles  root         16384 Feb  2 10:54 20220202-AM
drwxr-xr-x    3 charles  root         16384 Feb  2 04:53 ..
drwxr-xr-x    4 charles  root         16384 Feb  2 13:13 .

/mnt/mmc01/sdrec/T-101691610/mp4rec/20220202-PM:
-rwxr-xr-x    1 charles  root       1360458 Feb  2 14:44 14H44M11S-03600EN-DP02.mp4
-rwxr-xr-x    1 charles  root       3888134 Feb  2 14:44 14H43M29S-03600EN-DP01.mp4
-rwxr-xr-x    1 charles  root       6278900 Feb  2 14:43 14H42M47S-03600EN-DP00.mp4
-rwxr-xr-x    1 charles  root       3402316 Feb  2 14:42 14H42M05S-03600EN-E801.mp4
-rwxr-xr-x    1 charles  root       5332169 Feb  2 14:42 14H41M23S-03600EN-E800.mp4
-rwxr-xr-x    1 charles  root       1639904 Feb  2 14:41 14H40M51S-03600EN-T601.mp4
-rwxr-xr-x    1 charles  root       4145549 Feb  2 14:40 14H40M08S-03600EN-T600.mp4
-rwxr-xr-x    1 charles  root       3786505 Feb  2 14:21 14H21M11S-03600EN-S601.mp4
-rwxr-xr-x    1 charles  root       4963704 Feb  2 14:21 14H20M29S-03600EN-S600.mp4
-rwxr-xr-x    1 charles  root       2147757 Feb  2 14:12 14H12M27S-03600EN-2A01.mp4
-rwxr-xr-x    1 charles  root       4636383 Feb  2 14:12 14H11M45S-03600EN-2A00.mp4
-rwxr-xr-x    1 charles  root       1765816 Feb  2 13:38 13H38M31S-03600EN-V902.mp4
-rwxr-xr-x    1 charles  root       4519812 Feb  2 13:38 13H37M49S-03600EN-V901.mp4
-rwxr-xr-x    1 charles  root       3889319 Feb  2 13:37 13H37M07S-03600EN-V900.mp4
-rwxr-xr-x    1 charles  root       2660485 Feb  2 13:15 13H15M07S-03600EN-DV02.mp4
-rwxr-xr-x    1 charles  root       4055387 Feb  2 13:15 13H14M25S-03600EN-DV01.mp4
-rwxr-xr-x    1 charles  root       5026999 Feb  2 13:14 13H13M43S-03600EN-DV00.mp4
-rwxr-xr-x    1 charles  root          2533 Feb  2 14:44 index.bin
drwxr-xr-x    4 charles  root         16384 Feb  2 13:13 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 14:44 .

/mnt/mmc01/sdrec/T-101691610/mp4rec/20220202-AM:
-rwxr-xr-x    1 charles  root          2668 Feb  2 12:26 index.bin
drwxr-xr-x    4 charles  root         16384 Feb  2 13:13 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 10:54 .

/mnt/mmc01/bin:
-rwxr-xr-x    1 charles  root         50108 Jun  7  2021 himm
-rwxr-xr-x    1 charles  root         65900 Jun 23  2021 wpa_cli
-rwxr-xr-x    1 charles  root        848420 Jun 23  2021 wpa_supplicant
-rwxr-xr-x    1 charles  root          2700 Jun 23  2021 netctrl
-rwxr-xr-x    1 charles  root        220740 Jun  7  2021 ak_lib_version
-rwxr-xr-x    1 charles  root         12344 Jun  7  2021 ccli
-rwxr-xr-x    1 charles  root           934 Jun  7  2021 services
-rwxr-xr-x    1 charles  root          3888 Jun  7  2021 lookup_proc
-rwxr-xr-x    1 charles  root         38904 Jun 23  2021 iwconfig
-rwxr-xr-x    1 charles  root          6800 Jun 23  2021 ppsconfig
-rwxr-xr-x    1 charles  root          6384 Jun  7  2021 cmd_router
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 .

/mnt/mmc01/etc:
-rwxr-xr-x    1 charles  root            42 Jun 23  2021 wpa_supplicant.conf
-rwxr-xr-x    1 charles  root           351 Jun 23  2021 ifplugd.action
-rwxr-xr-x    1 charles  root          1487 Jun 23  2021 udhcpc.script
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 jffs2
-rwxr-xr-x    1 charles  root          2917 Jun  7  2021 udhcpd.conf
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    3 charles  root         16384 Dec 31  2015 .

/mnt/mmc01/etc/jffs2:
-rwxr-xr-x    1 charles  root          4311 Jun  7  2021 venc.cfg
drwxr-xr-x    3 charles  root         16384 Dec 31  2015 ..
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 .

/mnt/mmc01/lib:
-rwxr-xr-x    1 charles  root         16688 Jun 23  2021 libnl-genl-3.so.200.26.0
-rwxr-xr-x    1 charles  root         16688 Jun 23  2021 libnl-genl-3.so.200
-rwxr-xr-x    1 charles  root        106604 Jun 23  2021 libnl-3.so.200.26.0
-rwxr-xr-x    1 charles  root        106604 Jun 23  2021 libnl-3.so.200
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 .

/mnt/mmc01/home:
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 app
-rwxr-xr-x    1 charles  root            27 Jun 24  2021 platform.env
-rwxr-xr-x    1 charles  root          4096 Jun  7  2021 ASC16
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 drv
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 init.d
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 sound
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 anyka
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 .

/mnt/mmc01/home/app:
-rwxr-xr-x    1 charles  root       2783256 Jun 24  2021 ppsapp
-rwxr-xr-x    1 charles  root        244348 Jun 24  2021 ppsdsry
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 .

/mnt/mmc01/home/drv:
-rwxr-xr-x    1 charles  root        512809 Jun 23  2021 ssv6x5x.ko
-rwxr-xr-x    1 charles  root          2655 Jun 23  2021 ssv6x5x-wifi.cfg
-rwxr-xr-x    1 charles  root        237251 Jun 23  2021 mac80211.ko
-rwxr-xr-x    1 charles  root         22239 Jun 23  2021 otg-hs.ko
-rwxr-xr-x    1 charles  root       1062036 Jun 23  2021 8188fu.ko
-rwxr-xr-x    1 charles  root          9115 Jun 23  2021 motor.ko
-rwxr-xr-x    1 charles  root         71322 Jun 23  2021 Strnio.ko
-rwxr-xr-x    1 charles  root        920137 Jun 23  2021 atbm602x_wifi_usb.ko
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 .

/mnt/mmc01/home/init.d:
-rwxr-xr-x    1 charles  root            29 Jun  7  2021 S25ppsdsry
-rwxr-xr-x    1 charles  root           237 Jun 23  2021 S60ppsapp
-rwxr-xr-x    1 charles  root            72 Jun  7  2021 S24udhcpd
-rwxr-xr-x    1 charles  root          1397 Jun  7  2021 S23hostapd_conf
-rwxr-xr-x    1 charles  root           305 Jun 23  2021 S27wpa_supplicant
-rwxr-xr-x    1 charles  root            38 Jun  7  2021 S20cmd_router
-rwxr-xr-x    1 charles  root          1013 Jun 23  2021 S01loadpps
-rwxr-xr-x    1 charles  root          1568 Jun 23  2021 S00config
-rwxr-xr-x    1 charles  root           211 Jun  7  2021 initS
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 00:37 .

/mnt/mmc01/home/sound:
-rwxr-xr-x    1 charles  root         24548 Jun 24  2021 dingdong.wav
-rwxr-xr-x    1 charles  root         27248 Jun 24  2021 login.wav
-rwxr-xr-x    1 charles  root         30960 Jun 24  2021 restart.wav
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 ..
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 .

/mnt/mmc01/home/anyka:
-rwxr-xr-x    1 charles  root          7657 Jun 24  2021 sensor_gc2053.ko
-rwxr-xr-x    1 charles  root         69764 Jun 23  2021 isp_gc2053_mipi_2lane-bell.conf
-rwxr-xr-x    1 charles  root         69764 Jun 23  2021 isp_gc2053_mipi_2lane.conf
-rwxr-xr-x    1 charles  root         69300 Jun 23  2021 isp_f23_mipi_1lane.conf
-rwxr-xr-x    1 charles  root          1915 Jun 24  2021 loadanyka3918
-rwxr-xr-x    1 charles  root         69660 Jun 23  2021 h3_isp_f37p_mipi_2lane.conf
-rwxr-xr-x    1 charles  root         69556 Jun 24  2021 isp_f37h_mipi_1lane.conf
-rwxr-xr-x    1 charles  root         69556 Jun 23  2021 isp_f37_mipi_1lane.conf
-rwxr-xr-x    1 charles  root          8622 Jun 23  2021 sensor_f22+f23+f28+f35+f37_mipi.ko
-rwxr-xr-x    1 charles  root         27147 Jun 23  2021 akcamera.ko
-rwxr-xr-x    1 charles  root          4789 Jun  7  2021 ak_info_dump.ko
drwxr-xr-x    7 charles  root         16384 Feb  2 00:37 ..
drwxr-xr-x    2 charles  root         16384 Dec 31  2015 .

/mnt/mmc01/System Volume Information:
-rwxr-xr-x    1 charles  root            76 Feb  2 01:07 IndexerVolumeGuid
-rwxr-xr-x    1 charles  root            12 Feb  2 01:07 WPSettings.dat
drwxr-xr-x    9 charles  root         16384 Feb  2 15:03 ..
drwxr-xr-x    2 charles  root         16384 Feb  2 01:07 .

index.html is still not working, I tried looking into the browser dev tools, it seams that the html is loaded but nothing in , may be the script part is not working with this device ? or one of the cgi files

from merkury1080p.

guino avatar guino commented on July 28, 2024

@waldo486 from your listing you have the main.cgi from BazzDoorBell repo and not the one from the Merkury720 repo -- they're slightly different to deal with the different busybox version (you seem to have the correct busybox file). You want to use this main.cgi file: https://raw.githubusercontent.com/guino/Merkury720/main/mmc/cgi-bin/main.cgi

For cleanup.cgi I would expect this one to work (it has your device's location configured):

#!/bin/sh
echo -e "Content-type: text/plain\r"
echo -e "\r"
DAYS=90
/mnt/mmc01/busybox find /mnt/mmc01/sdrec/T-101691610/mp4rec -type d -mtime +$DAYS -exec echo rm -rf {} \; -exec rm -rf {} \;

from merkury1080p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.