Coder Social home page Coder Social logo

Comments (14)

reef-actor avatar reef-actor commented on June 15, 2024 1

I see a motion event in the log, if you are using MQTT it may be related to issue #47 ?

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024 1

@X3fxKupaA6jaHX83Whnn3xcYWnUCYhmjr2e2A8T currently I have added that script to crontab and checking how it works roleoroleo/yi-hack-MStar#149 (comment)
maybe it's a good idea to implement as standard watchdog script @alienatedsec ?

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024

I'm not 100% sure but it looks like after changing hostname in config to blank (previous I've set custom one) in order to generate automatically and it looks like camera stops disconnecting from WiFi.. ;)

from yi-hack-v5.

alienatedsec avatar alienatedsec commented on June 15, 2024

I'm not 100% sure but it looks like after changing hostname in config to blank (previous I've set custom one) in order to generate automatically and it looks like camera stops disconnecting from WiFi.. ;)

@k3s4
Changing it to blank would generate another hostname based on the MAC address? Is that correct? Or have you made it blank somewhere else and not WebGUI?

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024

@alienatedsec blank in WebGUI - only changing in WebGUI.

from yi-hack-v5.

alienatedsec avatar alienatedsec commented on June 15, 2024

@k3s4 Has it changed the Hostname? to something around yi-7bc3

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024

@k3s4 Has it changed the Hostname? to something around yi-7bc3

yes

from yi-hack-v5.

alienatedsec avatar alienatedsec commented on June 15, 2024

I will look into this; however, on another note, I just checked if leaving the old Busybox will change the camera's responses. The original Busybox is at v1.20.2, and despite not supporting many functions and applets that are also buggy, I managed to run the hack.

BusyBox v1.20.2 (2016-01-25 13:29:17 CST) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        add-shell, addgroup, adduser, arp, arping, ash, awk, bootchartd, cat,
        chmod, chown, chpasswd, cp, cryptpw, cttyhack, cut, date, dd, delgroup,
        deluser, depmod, df, du, echo, egrep, fdisk, fgrep, find,
        flash_eraseall, flashcp, free, fsync, getty, grep, halt, hd, hexdump,
        hush, ifconfig, init, insmod, iostat, kill, killall, killall5, linuxrc,
        ln, login, logname, ls, lsmod, lsof, lsusb, lzcat, lzma, md5sum, mesg,
        mkdir, mknod, mkpasswd, modinfo, modprobe, more, mount, mpstat, mv,
        netstat, passwd, ping, poweroff, ps, pwd, reboot, remove-shell, rm,
        rmdir, rmmod, route, sed, sh, sleep, su, sulogin, sync, sysctl, tail,
        tar, top, tr, udhcpc, umount, unlzma, usleep, vi, vlock, xargs

It was a dead-end to be fair

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024

still the same issue..

from yi-hack-v5.

alienatedsec avatar alienatedsec commented on June 15, 2024

Please check #70 as could be related

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024

@alienatedsec - I don't think its related as my camera don't respond to ping requested etc it's completely offline until reboot - for now I have added reboot command to crontab everyday for kind of workaround..

Thinking about some script for checking wifi connection and then try reconnect..

from yi-hack-v5.

Rh9no avatar Rh9no commented on June 15, 2024

Thinking about some script for checking wifi connection and then try reconnect

This could be useful, did you get a chance to write a script to do this?
I have a daily reboot on all cameras but my outdoor camera is crashing every hour if the stream is being viewed.

from yi-hack-v5.

sienikam avatar sienikam commented on June 15, 2024

Looks like script works fine (after little modification)

[Thu Jun 17 21:55:03 CEST 2021] Wifi OK
[Thu Jun 17 22:00:04 CEST 2021] Wifi OK
[Thu Jun 17 22:05:01 CEST 2021] CONNECTION KO. Reboot
[Thu Jun 17 01:10:00 CEST 2021] CONNECTION KO. Reboot
[Thu Jun 17 22:10:04 CEST 2021] Wifi OK
[Thu Jun 17 22:15:04 CEST 2021] Wifi OK
now=$(date +"%Y_%m_%d")
LOGFILE=/tmp/sd/watchdog/logs/wd_log_$now.log

if ping -c4 -q 192.168.1.1 > /dev/null ; then
  echo '['$(date)'] Wifi OK' >> $LOGFILE
else
  echo '['$(date)'] CONNECTION KO. Reboot' >> $LOGFILE
  sync
  sync
  sync
  killall httpd
  sleep 1
  reboot -f
fi

I have removed interface down/up lines as this was not working (for whatever reason) and camera reconnect to wifi only after reboot.

from yi-hack-v5.

alienatedsec avatar alienatedsec commented on June 15, 2024

if the issue persists, please update to 0.3.7 as I managed to fix many issues with crontab and other scripts
Closing as old and potentially no longer related to the latest version.

from yi-hack-v5.

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.