Skip to content
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

PTZ + Camera Settings #230

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ This firmware will add the following features:
- Telnet server - _Disabled by default._
- FTP server - _Enabled by default._
- Web server - _Enabled by default._
- The possibility to change some camera settings (copied from official app):
- camera on/off
- video saving mode
- detection sensitivity
- status led
- ir led
- rotate
- PTZ support through a web page.
- Proxychains-ng - _Disabled by default. Useful if the camera is region locked._
- The possibility to disable all the cloud features while keeping the RTSP stream.
- In development:
- ONVIF
- A static image snapshot from the web interface.

This firmware _might_ add:
- Alarm functionality via Telegram (@frekel's [PR #177 in yi-hack-v3](https://github.com/shadow-1/yi-hack-v3/pull/117))
- Auto upload of the recorded footage to the cloud (eg. Google Drive, Dropbox, etc.)
- Rotation control (on Yi Dome versions of the camera) without need for the app.
- **You decide**, just open an issue with the request.

## Supported cameras

Expand Down Expand Up @@ -134,6 +133,7 @@ Special thanks to the following people and projects, without them `yi-hack-v4` w
- @xmflsct - [https://github.com/xmflsct/yi-hack-1080p](https://github.com/xmflsct/yi-hack-1080p)
- @dvv - [Ideas for the RSTP stream](https://github.com/shadow-1/yi-hack-v3/issues/126)
- @andy2301 - [Ideas for the RSTP rtsp and rtsp2301](https://github.com/xmflsct/yi-hack-1080p/issues/5#issuecomment-294326131)
- @roleoroleo - [PTZ Implementation](https://github.com/roleoroleo/yi-hack-MStar)

---
### DISCLAIMER
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
3 changes: 3 additions & 0 deletions src/ipc_cmd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore the install dir
_install/

31 changes: 31 additions & 0 deletions src/ipc_cmd/compile.ipc_cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

export CROSSPATH=/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin
export PATH=${PATH}:${CROSSPATH}

export TARGET=arm-hisiv300-linux
export CROSS=arm-hisiv300-linux
export BUILD=x86_64-pc-linux-gnu

export CROSSPREFIX=${CROSS}-

export STRIP=${CROSSPREFIX}strip
export CXX=${CROSSPREFIX}g++
export CC=${CROSSPREFIX}gcc
export LD=${CROSSPREFIX}ld
export AS=${CROSSPREFIX}as
export AR=${CROSSPREFIX}ar

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

cd ipc_cmd || exit 1

make clean
make || exit 1

mkdir -p ../_install/bin || exit 1

cp ./ipc_cmd ../_install/bin || exit 1

arm-hisiv300-linux-strip ../_install/bin/* || exit 1
10 changes: 10 additions & 0 deletions src/ipc_cmd/init.ipc_cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

rm -rf ./_install

cd ipc_cmd

make clean
8 changes: 8 additions & 0 deletions src/ipc_cmd/install.ipc_cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

mkdir -p ../../build/home/yi-hack-v4/bin/ || exit 1

rsync -av ./_install/* ../../build/home/yi-hack-v4/ || exit 1
17 changes: 17 additions & 0 deletions src/ipc_cmd/ipc_cmd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
OBJECTS = ipc_cmd.o
LIBS = -lpthread -lrt

all: ipc_cmd

ipc_cmd.o: ipc_cmd.c $(HEADERS)
$(CC) -c $< -fPIC -O2 -o $@

ipc_cmd: $(OBJECTS)
$(CC) $(OBJECTS) $(LIBS) -fPIC -O2 -o $@
$(STRIP) $@

.PHONY: clean

clean:
rm -f ipc_cmd
rm -f $(OBJECTS)
Binary file added src/ipc_cmd/ipc_cmd/ipc_cmd
Binary file not shown.
Loading