Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:raspberry_pi_timeclock [2016/03/05 21:37]
tdobes
computer:raspberry_pi_timeclock [2016/04/03 20:51]
tdobes
Line 183: Line 183:
 echo '​sys.exit(app.exec_())'​ >> /​usr/​local/​bin/​simplebrowser.py echo '​sys.exit(app.exec_())'​ >> /​usr/​local/​bin/​simplebrowser.py
 chmod +x /​usr/​local/​bin/​simplebrowser.py chmod +x /​usr/​local/​bin/​simplebrowser.py
 +
 +# NOTE: If you're fighting a javascript problem, add this line after creating the QWebView:
 +# web.settings().globalSettings().setAttribute(QWebSettings.WebAttribute.DeveloperExtrasEnabled,​ True)
  
 echo '#​!/​bin/​sh'​ > /​usr/​local/​bin/​timeclock-browser.sh echo '#​!/​bin/​sh'​ > /​usr/​local/​bin/​timeclock-browser.sh
Line 447: Line 450:
 echo '​WantedBy=multi-user.target'​ >> /​etc/​systemd/​system/​timeclock-clock.service echo '​WantedBy=multi-user.target'​ >> /​etc/​systemd/​system/​timeclock-clock.service
 systemctl enable timeclock-clock.service systemctl enable timeclock-clock.service
 +
 +echo '​[Unit]'​ > /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​Description=Continuous Download from TimeclockCam'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​Before=timeclock-gui.service'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​[Service]'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​ExecStart=/​opt/​timeclock/​continuous_grab_timeclockcam.sh'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​User=timeclock'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​Restart=always'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​RestartSec=1'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​[Install]'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +echo '​WantedBy=multi-user.target'​ >> /​etc/​systemd/​system/​grab-timeclockcam.service
 +systemctl enable grab-timeclockcam.service
  
 echo '​[Unit]'​ > /​etc/​systemd/​system/​timeclock-gui.service echo '​[Unit]'​ > /​etc/​systemd/​system/​timeclock-gui.service
-echo '​Description=Timeclock ​Browser' >> /​etc/​systemd/​system/​timeclock-gui.service+echo '​Description=Timeclock ​GUI' >> /​etc/​systemd/​system/​timeclock-gui.service
 echo '​After=startx@timeclock.service'​ >> /​etc/​systemd/​system/​timeclock-gui.service echo '​After=startx@timeclock.service'​ >> /​etc/​systemd/​system/​timeclock-gui.service
 echo '​Requires=startx@timeclock.service'​ >> /​etc/​systemd/​system/​timeclock-gui.service echo '​Requires=startx@timeclock.service'​ >> /​etc/​systemd/​system/​timeclock-gui.service
computer/raspberry_pi_timeclock.txt · Last modified: 2016/04/03 20:51 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS