steelo
Posts: 16
Joined: Thu Jul 20, 2017 12:15 pm

PiClock problems

Fri Jul 21, 2017 1:34 pm

Hi everybody, so happy I found this forum. I’ve had this pi for about a year now and so far have installed Raspbian, retropie, took an online course to learn Python, installed a semi-working motion detection camera using ‘motion’, PiHole, and got a semi working ‘Alexa’ which would have worked better if I had a decent microphone.

Right now, I am trying to get PiClock to work properly. I have followed all of the instructions online to a ‘T’. I fear that there may be a setting in Raspbian that is off since this isn’t a fresh install like the manual calls for. The problem I’m having is that it will not display the 5 day weather forecast on the right side. I double and triple checked the API key and even reset it. The radar weather map with the ‘WU’ icon DOES appear and update. From what I understand, that indicates that the WU API key IS working. That is the MAIN issue, but other issues I’m having are that I can’t seem to get cron to successfully open PiClock upon reboot. Raspbian will load normally and then I get a popup message saying ‘PiClock is starting’…after that…nothing.

Thank you to anybody who is willing to help me!

User avatar
DougieLawson
Posts: 39871
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: PiClock problems

Fri Jul 21, 2017 2:04 pm

What is "PiClock" and where does it come from?

You can't start GUI programs from cron. Use the LXDE autostart process.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

steelo
Posts: 16
Joined: Thu Jul 20, 2017 12:15 pm

Re: PiClock problems

Fri Jul 21, 2017 2:14 pm

DougieLawson wrote:What is "PiClock" and where does it come from?

You can't start GUI programs from cron. Use the LXDE autostart process.
https://github.com/n0bel/PiClock

A fancy clock that pulls the weather forecast and radar. Was looking to utilize an old monitor.

User avatar
DougieLawson
Posts: 39871
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: PiClock problems

Fri Jul 21, 2017 2:43 pm

Create a directory if it doesn't exist cd /home/pi/.config; mkdir autostart; cd autostart;
Add this as nano piclock.desktop file in /home/pi/.config/autostart

Code: Select all

[Desktop Entry]
Name=PiClock
Comment=Autostart PiClock
Exec=/home/pi/piclock.startup.script.goes.here
Terminal=false
MultipleArgs=false
Type=Application
Categories=Application;Development;
StartupNotify=true
https://wiki.lxde.org/en/Autostart
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

steelo
Posts: 16
Joined: Thu Jul 20, 2017 12:15 pm

Re: PiClock problems

Fri Jul 21, 2017 3:15 pm

Thank you! Any idea why the weather isn't pulling up though?

User avatar
DougieLawson
Posts: 39871
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: PiClock problems

Fri Jul 21, 2017 6:02 pm

steelo wrote:Thank you! Any idea why the weather isn't pulling up though?
I've not even looked at running that on any of my Raspberries. Might give it a go if I'm bored over the weekend.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Return to “General discussion”