]> git.aero2k.de Git - sirius.git/commitdiff
Update doc and don't print face
authorQuentin Dufour <quentin@dufour.tk>
Mon, 1 May 2017 12:22:28 +0000 (14:22 +0200)
committerQuentin Dufour <quentin@dufour.tk>
Mon, 1 May 2017 12:22:28 +0000 (14:22 +0200)
README.md
sirius/web/printer_print.py

index 856b9861647a3d52c01d69a33b858cad2821afd5..8806158ef22853bf9b76e6d035db871133568f5b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -9,7 +9,10 @@ Differences with the original project :
 
  * Update requirements.txt to fix some bugs
  * Improve documentation
-
+   * Add links from the community
+   * Add a guide for Debian
+ * Recommend PhantomJS 2.1.1 to support pictures
+ * Deactivate face printing by default (will add a switch soon)
 
 ## Using it
 
@@ -35,15 +38,17 @@ cd sirius
 
 pip install -r requirements.txt
 
-wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
-tar jxf phantomjs-1.9.8-linux-x86_64.tar.bz2
-sudo mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
+wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
+tar jxf phantomjs-2.1.1-linux-x86_64.tar.bz2
+sudo mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
 
 ./manage.py db upgrade head
 
 ~/.local/bin/gunicorn -k flask_sockets.worker manage:app -b 0.0.0.0:5002 -w 1
 ```
 
+*With PhantomJS 1.9.8 I can't print pictures but version 2.1.1 seems to fix the problem*.
+
 Navigate browser to http://127.0.0.1:5002/
 
 You should configure your BergCloud Bridge to point to your Sirius instance.
index 69bcc644cfd4a4641bef2e60bf0e1ece8caa8173..2c2eeaadb7dcc2ff6169d33c48fc0571d6e6dd16 100644 (file)
@@ -70,7 +70,7 @@ def printer_print(printer_id):
         # TODO: use templating to avoid injection attacks
         pixels = image_encoding.default_pipeline(
             templating.default_template(form.message.data))
-        hardware_message = messages.SetDeliveryAndPrint(
+        hardware_message = messages.SetDeliveryAndPrintNoFace(
             device_address=printer.device_address,
             pixels=pixels,
         )