-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ppsapp patch request #45
Comments
could you please, if you have time, patch my file? |
@desiue when you said RTSP server is not running, did you modify tuya_config.json to enable ONVIF (which enables RTSP) ? you can just execute this command in telnet to enable it: |
oh so easy? unbelievable!
One more question. I want to live stream directly to youtube. Its that possible directly from the cam? For example i stream with ffmpeg -some parameters- direct to rtmps://a.rtmps.youtube.com/live2/xxx-xxxx-xxxxx-xxxx-xxxxx |
@desiue I've never done it, but I saw something like:
|
ffmpeg -i rtsp://admin:[email protected]:8554/Streaming/Channels/101 -vcodec copy -acodec aac -f flv rtmps://a.rtmps.youtube.com/live2/xxxxxxxxxxx works very well. my idea was to stream directly from the camera to youtube without detours. unfortunately there was another burglary yesterday in the house. Therefore, I have now set the focus on the alarm. is there a way to send a mail or message when motion is detected? At the moment it only works with the app. Which I actually no longer wanted to use. |
@desiue have a look at this wiki: https://github.com/guino/BazzDoorbell/wiki/%5BHow-to%5D-Use-notifications-MQTT-log_parser-without-a-patched-ppsapp-%3F -- this script detects motion and sends out a message using mqtt, it can be modified to send a web request to trigger some other alert. The example uses mqtt because it is meant to integrate with home assistant or any other software that is going to receive the alert and do something with it, but if the device has internet access it could do something like fire an event in ifttt or whatever server/service you want to use for notifications (you could build one yourself too). You could for instance setup a webhook applet in ifttt.com to trigger a notification within the ifttt app, then modify the log_parser script to execute something like this when the motion is detected:
(You do need to set EVENTNAME with the trigger event name configured in the webhook applet, and need to configure KEYVALUE with your key (which you get by clicking on the webhooks applet documentation) -- the value can be anything you want so if you have multiple cameras you could say Backyard, FrontDoor, Fence, Camera4, etc. You can test the trigger commands on a computer with wget and just copy/paste them onto the script. |
i have something simillar to IFTTT its caled pushsafer from https://www.pushsafer.com. Do you have an idea how to configure the "log_parser script" to open this link? |
@desiue there's no tool within the device that will work with httpS right now -- that's why I suggested ifttt as it supports both httpS and http (as shown in my example). If your service doesn't support http (only httpS) then your options are: |
ok i think the easy way will be wget to IFTTT and then to Pushsafer.
but i can't found anyting about the "log_parser.sh" and on the SD card is no file with this name log_parser.sh did you have more information about how i can do this? "Then modify the log_parser script to execute something like this when the motion is detected:" thank you for your patience i found something similar |
ok to the custom.sh on the SD Card / .
And created log_parser.sh with
This command works over telnet but the scripts dosen't work. did you have any ideas or hints? oh i think i have forgotten to copy ppsapp from the home/app/ppsapp of the SD card to the root of the SD card ok device is still rebooting if i copy the ppsapp to root directory of the SD card. so i try this guino/BazzDoorbell#4 (comment)
|
so i tried so im tgiggering motion an looking for evenets on the log
if i trigger the motion detection there will be something like
so im a little bit wondering why the log_parser.sh are searching for alarm, maybe i am looking in the wrong file
maybe this is the problem...
|
... i got it ... once an then no more ... in the custom.sh on the SD Card / has to be something like this and i dont have any messages in /mnt/mmc01/output.log and the "--motion detection alarm --" to
|
@desiue post a zip of your SD card contents without the SDT folder so I can review.. You don't need a patched ppsapp so you should not have one in the SD card anyway -- you should be using the information here: https://github.com/guino/BazzDoorbell/wiki/%5BHow-to%5D-Use-notifications-MQTT-log_parser-without-a-patched-ppsapp-%3F |
but I don't think it works quite reliably now. Maybe I have configured something wrong, attached the files. Unfortunately I have the problem that PushSafer wants money for the messages. I don't think I can manage to compile wget/curl by myself.
|
did you make it to play an sound? i tried it with
but I hear nothing |
@desiue your SD card files seem fine assuming you don't have a ppsapp file in the root of the SD card. I have not been able to find a version of curl/wget with httpS support pre-compiled for armv5. The version you found is in fact the wrong version and that's why you get the 'Illegal instruction' error -- it likely was compiled for armv7 (which is the most common). The simplest solution would be to use IFTTT.com as I suggested before (since it supports http directly). I don't think it's worth spending a lot of time trying to compile something with httpS support and it will be unlikely you'll find it pre-compiled for armv5. The only alternative is to create a web server locally to receive the request from the device and make the request to your pushsafer service (as I also previously suggested). Regarding the audio playback -- the command you used is correct but the file must exist and your SD card didn't have that home/sound/dingdong.wav file -- there's a /home/sound/dingdong.wav in the device itself (at least on my version), so you should be able to do:
It is possible your firmware version doesn't have that file or has other sound files -- you can do |
I tried it with this command. i can't hear anything. do you have to unmute previously it? `/ # /mnt/mmc01/cgi-bin/play.cgi /home/sound/dingdong.wav 4+0 records in |
@desiue I've never had to do anything to unmute it before it plays -- did you adjust te addresses in your cgi files to these (specific to your firmware version): The zip you posted with your SD card contents didn't include the cgi files so I could not check that. |
so i have adjusted the three files.
now i have a new error message
are these the right values? snap.cgi and mjpeg.cgi address: 0x037c2f4 |
@desiue you accidently removed the 'R' in front of this line in your play.cgi file: |
hi i have also one of the LSC cams.
Some things are different.
Password is admin.
The and the result of http://192.168.6.143:8090/proc/self/root/mnt/mmc01/hack hack is
done
Telnet is working.
RTSP server is not running
rtsp://192.168.x.x:8554//Streaming/Channels/101
MD5 of then SD:\home\app\ppsapp file is MD5: c83e0ba3db47c1e54a11a915e19e8e08
So it doesn't match with the List of patched ppsapp's i have found under: guino/ppsapp-rtsp#1
The text was updated successfully, but these errors were encountered: