HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
786 stars 75 forks source link

Question: telnet only? #105

Closed ghost closed 3 years ago

ghost commented 3 years ago

If I wanted to use "Remote install using remote_install.sh” to enable telnet and nothing else, would I simply copy config.inc.TEMPLATE to config.inc and then run remote_install.sh ?

Thanks!

HclX commented 3 years ago

Yes, it should work, although I never tried it.

ghost commented 3 years ago

Doesn’t seem enable telnet. I can hear it clicking, no voices, and then it comes back online. I can ping it but no telnet.

No log files or anything unusual on the SD card. ( I tried it with and without the SD card. )

Thanks.

INFO:root:Serving firmware file './firmware.bin' as 'http://192.168.0.105:11808/firmware.bin', md5=7a76fd71beccdc140e232ee38fa09e81 INFO:root:Checking device, mac=2CAA8E91B1CE 192.168.0.108 - - [31/Mar/2021 20:48:37] "HEAD /firmware.bin HTTP/1.1" 200 - 192.168.0.108 - - [31/Mar/2021 20:48:37] "GET /firmware.bin HTTP/1.1" 200 -

On Mar 31, 2021, at 6:55 PM, HclX @.***> wrote:

Yes, it should work, although I never tried it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811580766, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYCWTT66UOSUUOIHKU3TGPHA5ANCNFSM42FLB3FQ.

HclX commented 3 years ago

Are you doing this on v3 camera? For v3 if you are using master branch you need to do v3_init.sh first

On Wed, Mar 31, 2021, 21:00 cburns4563 @.***> wrote:

Doesn’t seem enable telnet. I can hear it clicking, no voices, and then it comes back online. I can ping it but no telnet.

No log files or anything unusual on the SD card. ( I tried it with and without the SD card. )

Thanks.

INFO:root:Serving firmware file './firmware.bin' as ' http://192.168.0.105:11808/firmware.bin', md5=7a76fd71beccdc140e232ee38fa09e81 INFO:root:Checking device, mac=2CAA8E91B1CE 192.168.0.108 - - [31/Mar/2021 20:48:37] "HEAD /firmware.bin HTTP/1.1" 200

192.168.0.108 - - [31/Mar/2021 20:48:37] "GET /firmware.bin HTTP/1.1" 200 -

On Mar 31, 2021, at 6:55 PM, HclX @.***> wrote:

Yes, it should work, although I never tried it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811580766>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABBXSYCWTT66UOSUUOIHKU3TGPHA5ANCNFSM42FLB3FQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811620360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNWDYXQAQQLTGHF5TMDOLTGPVULANCNFSM42FLB3FQ .

ghost commented 3 years ago

No, it’s a V2.

The first thing remote_install.sh does is :

cp ./FIRMWARE_660R.bin ./firmware.bin

I don’t appear to have FIRMWARE_660R.bin and I don’t see it anywhere in the WyzeHacks release. Am I supposed to grab this from somewhere else?

Thanks. I’ll continue poking around.

On Apr 1, 2021, at 12:16 AM, HclX @.***> wrote:

Are you doing this on v3 camera? For v3 if you are using master branch you need to do v3_init.sh first

On Wed, Mar 31, 2021, 21:00 cburns4563 @.***> wrote:

Doesn’t seem enable telnet. I can hear it clicking, no voices, and then it comes back online. I can ping it but no telnet.

No log files or anything unusual on the SD card. ( I tried it with and without the SD card. )

Thanks.

INFO:root:Serving firmware file './firmware.bin' as ' http://192.168.0.105:11808/firmware.bin', md5=7a76fd71beccdc140e232ee38fa09e81 INFO:root:Checking device, mac=2CAA8E91B1CE 192.168.0.108 - - [31/Mar/2021 20:48:37] "HEAD /firmware.bin HTTP/1.1" 200

192.168.0.108 - - [31/Mar/2021 20:48:37] "GET /firmware.bin HTTP/1.1" 200 -

On Mar 31, 2021, at 6:55 PM, HclX @.***> wrote:

Yes, it should work, although I never tried it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811580766>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABBXSYCWTT66UOSUUOIHKU3TGPHA5ANCNFSM42FLB3FQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811620360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNWDYXQAQQLTGHF5TMDOLTGPVULANCNFSM42FLB3FQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811701242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYAVDKJ6YISI5OTC4S3TGQMVXANCNFSM42FLB3FQ.

ghost commented 3 years ago

Ok, got it ( telnet ) to work on a V2 camera. What I was doing wrong was I poking around in the ‘installer’ directory and not in the ‘releases' directory.

Once I discovered the releases directory, I unzipped the most recent one and ran remote_install.sh and it worked perfectly.

I may try a V3 later today.

Thanks for your help.

On Apr 1, 2021, at 12:16 AM, HclX @.***> wrote:

Are you doing this on v3 camera? For v3 if you are using master branch you need to do v3_init.sh first

On Wed, Mar 31, 2021, 21:00 cburns4563 @.***> wrote:

Doesn’t seem enable telnet. I can hear it clicking, no voices, and then it comes back online. I can ping it but no telnet.

No log files or anything unusual on the SD card. ( I tried it with and without the SD card. )

Thanks.

INFO:root:Serving firmware file './firmware.bin' as ' http://192.168.0.105:11808/firmware.bin', md5=7a76fd71beccdc140e232ee38fa09e81 INFO:root:Checking device, mac=2CAA8E91B1CE 192.168.0.108 - - [31/Mar/2021 20:48:37] "HEAD /firmware.bin HTTP/1.1" 200

192.168.0.108 - - [31/Mar/2021 20:48:37] "GET /firmware.bin HTTP/1.1" 200 -

On Mar 31, 2021, at 6:55 PM, HclX @.***> wrote:

Yes, it should work, although I never tried it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811580766>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABBXSYCWTT66UOSUUOIHKU3TGPHA5ANCNFSM42FLB3FQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811620360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNWDYXQAQQLTGHF5TMDOLTGPVULANCNFSM42FLB3FQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811701242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYAVDKJ6YISI5OTC4S3TGQMVXANCNFSM42FLB3FQ.

HclX commented 3 years ago

Yep, you should use release directory. I agree it can be a little bit confusing. I can rename the directory I future changes.

On Thu, Apr 1, 2021, 12:01 cburns4563 @.***> wrote:

Ok, got it ( telnet ) to work on a V2 camera. What I was doing wrong was I poking around in the ‘installer’ directory and not in the ‘releases' directory.

Once I discovered the releases directory, I unzipped the most recent one and ran remote_install.sh and it worked perfectly.

I may try a V3 later today.

Thanks for your help.

On Apr 1, 2021, at 12:16 AM, HclX @.***> wrote:

Are you doing this on v3 camera? For v3 if you are using master branch you need to do v3_init.sh first

On Wed, Mar 31, 2021, 21:00 cburns4563 @.***> wrote:

Doesn’t seem enable telnet. I can hear it clicking, no voices, and then it comes back online. I can ping it but no telnet.

No log files or anything unusual on the SD card. ( I tried it with and without the SD card. )

Thanks.

INFO:root:Serving firmware file './firmware.bin' as ' http://192.168.0.105:11808/firmware.bin', md5=7a76fd71beccdc140e232ee38fa09e81 INFO:root:Checking device, mac=2CAA8E91B1CE 192.168.0.108 - - [31/Mar/2021 20:48:37] "HEAD /firmware.bin HTTP/1.1" 200

192.168.0.108 - - [31/Mar/2021 20:48:37] "GET /firmware.bin HTTP/1.1" 200 -

On Mar 31, 2021, at 6:55 PM, HclX @.***> wrote:

Yes, it should work, although I never tried it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811580766>, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABBXSYCWTT66UOSUUOIHKU3TGPHA5ANCNFSM42FLB3FQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811620360, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAZNWDYXQAQQLTGHF5TMDOLTGPVULANCNFSM42FLB3FQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/HclX/WyzeHacks/issues/105#issuecomment-811701242>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABBXSYAVDKJ6YISI5OTC4S3TGQMVXANCNFSM42FLB3FQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-812108719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNWDYV7PSDUVXYY36G5TTTGS7HLANCNFSM42FLB3FQ .

endertable commented 3 years ago

Ok, got it ( telnet ) to work on a V2 camera. What I was doing wrong was I poking around in the ‘installer’ directory and not in the ‘releases' directory. Once I discovered the releases directory, I unzipped the most recent one and ran remote_install.sh and it worked perfectly. I may try a V3 later today. Thanks for your help.

Hi, You still looking for an alpha tester for your program. I’m currently not working or anything so let me know if you have not found a tester yet I would like to volunteer. :)

ghost commented 3 years ago

Hi,

Yes. I kinda got side tracked on making the direct live streaming work through NATs which involves something called udp hole punching. That’s just starting to work.

Are you more interested in the cli or the live streaming?

On Apr 9, 2021, at 6:40 AM, endertable @.***> wrote:

Ok, got it ( telnet ) to work on a V2 camera. What I was doing wrong was I poking around in the ‘installer’ directory and not in the ‘releases' directory. Once I discovered the releases directory, I unzipped the most recent one and ran remote_install.sh and it worked perfectly. I may try a V3 later today. Thanks for your help. … <x-msg://442/#> Hi, You still looking for an alpha tester for your program. I’m currently not working or anything so let me know if you have not found a tester yet I would like to volunteer. :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-816690105, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYGH6Z5PPBJ3K3VUEV3TH37WVANCNFSM42FLB3FQ.

endertable commented 3 years ago

Hi, Yes. I kinda got side tracked on making the direct live streaming work through NATs which involves something called udp hole punching. That’s just starting to work. Are you more interested in the cli or the live streaming? On Apr 9, 2021, at 6:40 AM, endertable @.***> wrote: Ok, got it ( telnet ) to work on a V2 camera. What I was doing wrong was I poking around in the ‘installer’ directory and not in the ‘releases' directory. Once I discovered the releases directory, I unzipped the most recent one and ran remote_install.sh and it worked perfectly. I may try a V3 later today. Thanks for your help. … <x-msg://442/#> Hi, You still looking for an alpha tester for your program. I’m currently not working or anything so let me know if you have not found a tester yet I would like to volunteer. :) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#105 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYGH6Z5PPBJ3K3VUEV3TH37WVANCNFSM42FLB3FQ.

Hi. both are interesting but the local live streaming is something I have been very interested in with these cams (using stock firmware like you have).

PS. How's your leg injury progressing?

ghost commented 3 years ago

Do you have V2’s or V3’s. The V3’s are a little touchy.

For now, installation requires telnet access.

You can get here

wget www.sonic.net/~crb/stream_hack.tgz

There’s a ReadMe file in there. And my email address is in there too. Let’s move to that.

I still can’t walk but I can drive now so that’s an improvement. Hopefully start putting ( more ) weight on it next week.

Let me know how it goes.

Thanks.

On Apr 9, 2021, at 11:45 AM, endertable @.***> wrote:

Hi, Yes. I kinda got side tracked on making the direct live streaming work through NATs which involves something called udp hole punching. That’s just starting to work. Are you more interested in the cli or the live streaming? … <x-msg://448/#> On Apr 9, 2021, at 6:40 AM, endertable @.***> wrote: Ok, got it ( telnet ) to work on a V2 camera. What I was doing wrong was I poking around in the ‘installer’ directory and not in the ‘releases' directory. Once I discovered the releases directory, I unzipped the most recent one and ran remote_install.sh and it worked perfectly. I may try a V3 later today. Thanks for your help. … x-msg://442/# Hi, You still looking for an alpha tester for your program. I’m currently not working or anything so let me know if you have not found a tester yet I would like to volunteer. :) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#105 (comment) https://github.com/HclX/WyzeHacks/issues/105#issuecomment-816690105>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYGH6Z5PPBJ3K3VUEV3TH37WVANCNFSM42FLB3FQ https://github.com/notifications/unsubscribe-auth/ABBXSYGH6Z5PPBJ3K3VUEV3TH37WVANCNFSM42FLB3FQ.

Hi. both are interesting but the local live streaming is something I have been very interested in with these cams (using stock firmware like you have).

PS. How's your leg injury progressing?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-816885781, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYHUVGJXEFKQJASLPGLTH5DLZANCNFSM42FLB3FQ.

endertable commented 3 years ago

Got the file, will start on this tonight. 😀

mrlt8 commented 3 years ago

Hey @cburns4563 just tried your stream_hack on a v2 with a fresh WyzeHacks install.

I was able to use the stream in homebridge and view the camera on an appletv.

The live stream for the camera is still functioning in the Wyze/beta app, but I'm not getting any motion notifications from Wyze for the camera with the stream_hack installed.

Do you have a repo for your stream_hack?

ghost commented 3 years ago

That’s interesting about the motion notifications. Is it still capturing the event video but just not giving you a notification about it?

No repo yet, it’s still rather experimental and I wanted a one or two people to shake it down before I make a release.

The version you have writes a rather verbose log file, that may be an issue if it runs for a long time. Check in /tmp, maybe it’s filling up.

Thanks!

On Apr 10, 2021, at 7:53 PM, mrlt8 @.***> wrote:

Hey @cburns4563 https://github.com/cburns4563 just tried your stream_hack on a v2 with a fresh WyzeHacks install.

I was able to use the stream in homebridge and view the camera on an appletv.

The live stream for the camera is still functioning in the Wyze/beta app, but I'm not getting any motion notifications from Wyze for the camera with the stream_hack installed.

Do you have a repo for your stream_hack?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-817238304, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXSYFRITVHG5XTSY3UOMTTIEFKJANCNFSM42FLB3FQ.

mrlt8 commented 3 years ago

No events are getting recorded to the Wyze cloud on the camera with stream_hack enabled.

Commenting out export LD_LIBRARY_PATH=/configs/stream_hack:$LD_LIBRARY_PATH seems to re-enable the events for the camera.

Another thing I noticed is that motion tagging (green box around motion) doesn't seem to work when stream_hack is enabled via LD_LIBRARY_PATH.

I also noticed that export THIS_BIN=$(readlink -f $0) was missing on the camera with stream_hack installed, but adding it back didn't seem to make a difference.

I'm on the beta app/firmware (4.9.6.241) if that matters and my other cams on the same firmware with and without the WyzeHacks enabled seem unaffected.

FiveLeavesLeft commented 3 years ago

Hello @mrlt8, The events not getting uploaded was dependent of which firmware was being run. I think I've fixed the issue and I've created a repo at https://github.com/FiveLeavesLeft/WyzeCameraLiveStream.

HclX commented 3 years ago

I'm going to close this issue, for off topic discussion, please open new issues.

nijhawank commented 3 years ago

@endertable @ghost the link http://www.sonic.net/~crb/stream_hack.tgz results in a 404 error, do you have the wz cli and the rtsp patch?

FiveLeavesLeft commented 3 years ago

Look over in https://github.com/FiveLeavesLeft/WyzeCameraLiveStream. Also read the issues over there raised by endertable. I’m getting close to resolving them.

On Apr 27, 2021, at 10:11 PM, nijhawank @.***> wrote:

@endertable https://github.com/endertable @ghost https://github.com/ghost the link http://www.sonic.net/~crb/stream_hack.tgz http://www.sonic.net/~crb/stream_hack.tgz results in a 404 error, do you have this file?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-828148281, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVGDMQ7OIOP7KKGGYJU6J3TK6KHPANCNFSM42FLB3FQ.

nijhawank commented 3 years ago

I don’t see any wz command line binary line the one on YouTube video.

nijhawank commented 3 years ago

@mrlt8 while I could see the RTSP stream on macOS with VLC, my hoobs based home bridge installation is not working. Can you provide the homebridge-ffmpeg configuration that you used to stream the camera to HomeKit.

Hey @cburns4563 just tried your stream_hack on a v2 with a fresh WyzeHacks install.

I was able to use the stream in homebridge and view the camera on an appletv.

The live stream for the camera is still functioning in the Wyze/beta app, but I'm not getting any motion notifications from Wyze for the camera with the stream_hack installed.

Do you have a repo for your stream_hack?

FiveLeavesLeft commented 3 years ago

The repo is https://github.com/FiveLeavesLeft/WyzeCameraLiveStream https://github.com/FiveLeavesLeft/WyzeCameraLiveStream we should move this conversation over there.

V2 firmware versions 4.9.6.241 and 4.9.6.218 do not report events, I should have a fix for this early next week. 4.9.6.199 does not have this problem.

Thanks,

Charlie

On Apr 28, 2021, at 12:47 PM, nijhawank @.***> wrote:

@mrlt8 https://github.com/mrlt8 while I could see the RTSP stream on macOS with VLC, my hoobs based home bridge installation is not working. Can you provide the homebridge-ffmpeg configuration that you used to stream the camera to HomeKit.

Hey @cburns4563 just tried your stream_hack on a v2 with a fresh WyzeHacks install.

I was able to use the stream in homebridge and view the camera on an appletv.

The live stream for the camera is still functioning in the Wyze/beta app, but I'm not getting any motion notifications from Wyze for the camera with the stream_hack installed.

Do you have a repo for your stream_hack?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/105#issuecomment-828730946, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVGDMTZAI4BND4C7I5DR3TTLBQ3NANCNFSM42FLB3FQ.