Code Monkey home page Code Monkey logo

Comments (8)

matristain avatar matristain commented on June 27, 2024 1

In my case y have to do a
export DISPLAY=:0
Before any xdotool key , to make it work properly.
not sure if its your case or how to integrate it on crontab , but hope this help.

from chilipie-kiosk.

jareware avatar jareware commented on June 27, 2024

That sounds odd.

I just tried disconnecting from my network so I got the "page not found" page on Chrome, turned the network back on, and sent the reload keypress, and it loaded just fine.

Can you recover from that situation in any other way? For example, using the keyboard/mouse to reload the page? Does that work?

from chilipie-kiosk.

jareware avatar jareware commented on June 27, 2024

https://github.com/futurice/chilipie-kiosk/blob/6a4a3e6f8aac958c17059f99c2991eaa496c0368/home/crontab.example#L1

It already should be set for all commands in the crontab, though... 🤔

from chilipie-kiosk.

senseitsa avatar senseitsa commented on June 27, 2024

Thanks for all your help. I've tried the following:

$ xdotool key ctrl+R
Error: Can't open display: (null)
Failed creating new xdo instance

Then tried the export command first, which worked fine:

$ export DISPLAY=:0
$ xdotool key ctrl+R
$ 

So I've updated the crontab entry to the following:
* * * * * export DISPLAY=:0;xdotool key ctrl+R

from chilipie-kiosk.

jareware avatar jareware commented on June 27, 2024

Hmm, very curious!

If it's not too much to ask, could you still try and see if you can make it work by changing the DISPLAY=:0.0 at the top of the crontab file to DISPLAY=:0 to see if that fixes it as well?

Because setting it at the top should definitely set it for the environment of all cronjobs.

from chilipie-kiosk.

matristain avatar matristain commented on June 27, 2024

I'm not very in to linux commands but could the "export" before DISPLAY=:0.0 at top of the crontab, might make it work?

from chilipie-kiosk.

jareware avatar jareware commented on June 27, 2024

According to this answer it should work on Debian, but should take a closer look.

from chilipie-kiosk.

connoleg avatar connoleg commented on June 27, 2024

I'm struggling with this crontab doesnt change tabs. On boot the first tab displays but never changes. I can manually change the tab with export DISPLAY=:0 and xdtool ctrl-Tab etc.

from chilipie-kiosk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.