Skip to content

Commit f4c1eeb

Browse files
committed
Create README.md
1 parent 96443df commit f4c1eeb

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
GoProPHP
2+
========
3+
4+
PHP tool for controlling a GoPro camera
5+
6+
goprophp.php can be run from the command line
7+
goproinc.php can be included into other PHP projects (command line or web)
8+
9+
At present the settings are configured for the GoPro Hero3+ and might give unexpected results for other models. Please report such behaviours to the authors to improve future releases.
10+
11+
Usage
12+
=====
13+
14+
Create a new object of the GoPro class:
15+
16+
$gopro = new GoPro('password'); //Use your GoPro's WiFi password
17+
18+
The above should work for almost all use cases. You may also use the more advanced constructor:
19+
20+
$gopro = new GoPro('password', 'Hero3+', 'ip address', 'port number');
21+
22+
You can then access functionality of the GoPro using:
23+
24+
$gopro->action('ACTION');
25+
26+
Supported Actions
27+
=================
28+
29+
TURNON: Turns on the GoPro
30+
31+
TURNOFF: Turns off the GoPro
32+
33+
CMODE: Changes the mode. It is better to use the more specific
34+
35+
SHOOT: Takes a photo (or starts video)
36+
37+
START: Starts recording a video (or takes a photo)
38+
39+
STOP: Stops video recording
40+
41+
PREVON: Turns preview mode on?
42+
43+
PREVOFF: Turns preview mode off?
44+
45+
VIDEO: Selects video mode
46+
47+
PHOTO: Selects photo mode
48+
49+
BURST: Selects burst mode
50+
51+
TLAPSE: Selects timelapse mode
52+
53+
UDOWN: Use if camera is upside-down
54+
55+
UUP: Use if camera is upside-up
56+
57+
4K#12: Records 4K video as 12fps
58+
59+
2.7K#24: Records 2.7K video at 24fps
60+
61+
960#48: Records 960px wide video at 48fps
62+
63+
Custom Commands
64+
===============
65+
66+
If you know ana dditional custom command that can be executed on the GoPro via a URL of the form:
67+
68+
http://{ip_Address}:{port}/device/app?t={password}&p=command
69+
70+
This may be executed via:
71+
72+
$gopro->run(device, app, command);
73+
74+
Please notify the author of such commands (and the model of GoPro they apply to) for inclusion in a future release of this project.

0 commit comments

Comments
 (0)