in reply to Cron in X

What you're trying to do is not sensible.

The error tells you that the job is attempting (and completely expectedly failing) to connect to the X server on the local machine i.e. the machine on which cron(1M) is running since cron(1M) runs its jobs non-interactively.

A user level that continues to overstate my experience :-))