Add "--dry-run" ("-n") cli option
[playVideoOnDreamboxProxy.git] / README.rst
index e439a56fa1883090032d3e03c0730462e2b3d24f..73318cce7a4abd716b2f99a9ea6f2153fc8a0c19 100644 (file)
@@ -28,6 +28,11 @@ or IP address by creating a config file in ``data/config.php``.
 
 Simply copy ``data/config.php.dist`` onto ``data/config.php`` and adjust it.
 
+If your dreambox web interface is password protected, add the username
+and password to the ``$dreamboxUrl`` configuration variable::
+
+  $dreamboxUrl = 'http://user:pass@dreambox';
+
 
 =====
 Usage
@@ -38,6 +43,14 @@ Send the web site URL via POST to ``play.php``::
           -H 'Content-type: text/plain'\
           http://proxy.example.org/play.php
 
+You can test it on command line, too::
+
+    $ php www/play.php http://example.org/page.htm
+
+Testing the URL selection without playing on the dreambox is possible::
+
+    $ php www/play.php http://example.org/page.htm --dry-run
+
 
 =======
 License