Closed josecarre closed 1 year ago
@josecarre I was gonna say your cron was set to fire once per month, but see you worked this out! Please try test the latest snapshot from master here https://github.com/roleoroleo/sonoff-hack/actions/runs/3370860439
If you are using motion detection, it has a fix to reduce the load caused by the thumbnailer. That may resolve your hangs.
It also has the previous MQTT fixes and now has MQTT auto-discovery in Home Assistant along with some other fixes that have been added since the snapshot you are using.
Thanks! sure, i'll test the new release, any procedure to avoid smashing config? it would be nice to have on the UI an upgrade button to do it from local with file... or any way via remote, because my camera is in a place where is not easy to take out our to get the SD card hehe, its on the ceiling of the garage, i risk my life on every reboot 🤣 . If the new release is coming out in some days i'd wait
Update: I see this now, is from today? is that one including what you mentioned?
I think yes, becaiuse its being cooked right now by actions :)
btw, regarding the cron... I think is still not right on my side, I configured it through UI... result:
[root@GK]# crontab -l
0 8 * * * /sbin/reboot
* * * * * /mnt/mmc/sonoff-hack/script/thumb.sh cron
0 * * * * sleep 20; /mnt/mmc/sonoff-hack/script/clean_records.sh 25
[root@GK]# uptime
09:51:57 up 23:42, 1 users, load average: 2.31, 3.20, 3.56
why is not being rebooted everyday at 8am?
maybe i shouldnt have deleted the initial msg sorry, cannot get it back, but even now is not working and i thought it should be right
Updated... and some hours later the load is much better than usual, thanks :)
@josecarre
Update: I see this now, is from today? is that one including what you mentioned?
Yes 0.1.4 release is from today and includes all the fixes I mentioned.
btw, regarding the cron... I think is still not right on my side, I configured it through UI... result:
Your cron job looks correct now. With the new release you can now enable syslog through the web UI after that you should see messages from cron in /var/log/messages
. maybe that might provide a hint ;)
FYI cron fires jobs in UTC time, not your local timezone.
it would be nice to have on the UI an upgrade button to do it from local with file.
That would certainly be possible, but not sure we want to make it too easy for people to upload random workflow snapshots as they wont always be in a stable state!
it would be nice to have on the UI an upgrade button to do it from local with file.
That would certainly be possible, but not sure we want to make it too easy for people to upload random workflow snapshots as they wont always be in a stable state!
You're right. Maybe on a hidden ?page=
page, but yeah I agree that maybe it doesnt add much value, and just risk xD
@josecarre
Update: I see this now, is from today? is that one including what you mentioned?
Yes 0.1.4 release is from today and includes all the fixes I mentioned.
btw, regarding the cron... I think is still not right on my side, I configured it through UI... result:
Your cron job looks correct now. With the new release you can now enable syslog through the web UI after that you should see messages from cron in
/var/log/messages
. maybe that might provide a hint ;)
Cannot find the usual messages file... any other place where logs are written in?
[root@sonoff-camera-garage]# tail /var/log/messages
tail: can't open '/var/log/messages': No such file or directory
tail: no files
[root@sonoff-camera-garage]# ls /var/
DEV_UDP_TEMPORARY db dhcp.info locks s3cloud spool upload
NetFlag dhcp-dev.id_wlan dhcp.pid pid_wpa_s sdcard state
Yshutter dhcp.id_wlan ethmacaddress run sockets tmpNetWiFi
[root@sonoff-camera-garage]#
Ok, just saw this :D
Cannot find the usual messages file... any other place where logs are written in?
I missed something when rebasing patches, logging not working just yet. But you can copy the boot.sh from below PR and it will work https://github.com/roleoroleo/sonoff-hack/pull/118
Maybe on a hidden
?page=
page,
Its not that hard to update via ssh though, this is how I upgrade usually.
/mnt/mmc/.fw_upgrade
/mnt/mmc/sonoff-hack/etc
(exlcuding defaults.tar.tz) into that treeIt seems that cron is now working fine :), thanks
Regarding ssh patching thanks for the procedure, that will be enoiught for me when needed, no more life risking in the ladder 😆
it would be nice to have on the UI an upgrade button to do it from local with file.
That would certainly be possible, but not sure we want to make it too easy for people to upload random workflow snapshots as they wont always be in a stable state!
If you check the source, there is a trick... https://github.com/roleoroleo/sonoff-hack/blob/master/src/www/httpd/cgi-bin/fw_upgrade.sh
Can be removed, found that my cron was not right :D