I\'m running a python script through a cronjob. I have a virtual environment and in the cronjob I\'m running it through this virtual environment. When I run the script norma
that did the trick for me:
#!/bin/bash export DISPLAY=:0 /usr/bin/phantomjs /home/pi/test.js