inkyPHAT cron job help

Loving my inky phat black/white. No issues installing and running the weather script on-demand but I want it to update every 10 mins.

I followed this link: https://forums.pimoroni.com/t/need-help-with-inky-phat-crontab-update/7207?u=owls04

I made the updates to the file structure as where the weather example lies is different. The cron job appears to not run. Any ideas? I can post my code as necessary.

Welcome to the forums! Yeah, we’d need to see the line that you’re adding to your crontab. I suspect it’ll be an issue with the path to the image files…

Here is the cron jobs:
*/10 * * * * /home/pi/weather.sh

I also have the reboot script below that line

Here is what weather.sh looks on the desktop:

I think you need a new line after cd /home/pi/Pimoroni/inky/examples/phat. Try running the script in the terminal before adding it to your crontab, to make sure that it works as it should.

So something like this?


I don’t think it’s working.


Confirmed. Picture shows the last time I forced an update.

So is there another scheduler I could try? Obviously cron is not working

You’ve still got a syntax error in your bash script. It should be as follows:

#!/bin/bash
cd /home/pi/Pimoroni/inky/examples/phat
python weather-phat.py --colour "black"