texadactyl / rpi_clock Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi Clock & Weather display
License: GNU General Public License v3.0
Raspberry Pi Clock & Weather display
License: GNU General Public License v3.0
"tk" in the window title is not very useful.
Logging to stdout is working. But, it is supposed to be replicated to the log file.
Source file affected: rpi_clock_parameters.py
Here's the problem (from the command line):
pi@raspberrypi:~/rpi_clock/bin $ python3 rpi_clock.py rpi_clock.cfg
Traceback (most recent call last):
File "rpi_clock.py", line 15, in
parms = RpiClockParameters()
File "/home/pi/rpi_clock/bin/rpi_clock_parameters.py", line 64, in init
home = str(Path.home())
AttributeError: type object 'Path' has no attribute 'home'
I'm at Python 3.4. I tried pointing the symlink 'python' in usr/bin to 'python3', but that didn't help.
The project looks great. I hope to use it.
Hi, I got this message when I run the script:
[2019-02-11 18:36:37,248]::OOPS::CRITICAL::initialization: Configuration file path is required
[2019-02-11 18:36:37,248]::CRITICAL::initialization: Configuration file path is required
what am I supposed to do?
Many thanks
Describe the bug
File "/home/ben/rpi_clock/bin/rpi_clock.py", line 9
<!DOCTYPE html>
^
SyntaxError: invalid syntax
This seems to be a nice project and the closest one to solve my problem.
I just want to know how to display only clock and nothing else, that too with larger font size?
The last update from somebody (?) very recently created this symptom.
Fix: sudo apt-get install rng-tools
Verified ok now.
Added logic to validate the configuration file TEMP_UNITS value which must be one of the following after converting to lower case:
Fixed in version 4.1.
To make a long story short, the Weather Underground are being absorbed by a more commercial
enterprise, The Weather Channel ("TWC" on USA cable and many app-oriented boxes).
Recovery steps:
bin
are affected.Version 4 reflects the completed migration.
Describe the bug
A clear and concise description of what the bug is.
When i reboot the Pi after following your instruction i receive the following error
$ Traceback (most recent call last):
File "/home/ben/rpi_clock/bin/rpi_clock.py", line 10, in
from tkinter import Button, Label, Tk
ModuleNotFoundError: No module named 'tkinter'
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
I did how you described in the readme, but I cannot get it to work.
I should note that I am a complete newbie and this is very new to me, but I really like this idea for a project.
I get this:
$[2021-02-12 21:41:32,362]::CRITICAL::OOPS, initialization: Must not run in SSH session ^C
[1]+ Izlaz 86 ( cd $HOME/rpi_clock/bin; python3 rpi_clock.py rpi_clock.cfg 2>&1 > $HOME/rpi_clock.log )
also, cannot find autostart folder.
Nice project and run perfect, .cfg easy to understand, but I got something wrong info when I ssh to my raspberry, can you help me to solve it or told me what happened.
pi@raspberrypi:~ $ Traceback (most recent call last):
File "rpi_clock.py", line 345, in
initialize_the_process()
File "rpi_clock.py", line 151, in initialize_the_process
oops("initialization: Must not run in SSH session")
File "rpi_clock.py", line 49, in oops
parms.logging_init("OOPS", True)
File "/home/pi/rpi_clock/bin/rpi_clock_parameters.py", line 40, in logging_init
fh = logging.FileHandler(log_file)
File "/usr/lib/python3.7/logging/init.py", line 1079, in init
filename = os.fspath(filename)
TypeError: expected str, bytes or os.PathLike object, not bool
Thank you!
Another enhancement request from @tehmessiah75:
"Something which I figure is more complicated and maybe a completely different project. Make the text a bit smaller and at the top or bottom and then put the local radar image on a refresh for the background. "
>>>
Yes, this would be complicated, especially adding a radar image. Interesting idea, though.
Hi! I very like this code, but, some times, I want display my desktop,How do you close it?
only: Go Back, Reboot, Shutdown,
Affected source file: rpi_clock.py
Hi - rpi3 bullseye with adafruit screen syncing a local ntp server. Pi is syncing to ntp server accurately, confirmed by watch -n 0.1 date
and timedatectl timesync-status
but rpi_clock screen display updates time far less frequency - varies between 2s and 48s every minute, not seemingly dependent on ntp minpoll settings. Is there a way to set/reduce/manipulate the screen display refresh so it more accurately tracks the ntp system time? thanks
@TehMessiah reported this: Why can't rpi_clock run in an ssh session? It can provided that the -Y (X11 forwarding) parameter is provided. If -Y was not provided, the DISPLAY variable will be missing from the O/S environment.
As of v5.0, rpi_clock checks that this variable is present:
@tehmessiah75 @vacumcollapse @DEV-XiA @MRDGH2821 @youanan
I have a spare Raspberry Pi 2 model B. And, I finally found stock of the Adafruit PiTFT 3.5" Touch Screen for Raspberry Pi at Tinkersphere. My issue is finding a new or old Raspbian O/S image with a desktop that will work with the TFT product. Hopefully, I did not receive a lemon as it is currently not functional beyond showing a blank powered-up screen.
In the "Easy Install" instructions at Adafruit (https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2), they are recommending distros that are "Lite" i.e. without a desktop. I can do that and add a desktop or simply add enough X-Windows to make it work. But, that complicates the prep notes for a non-programming user.
You lot have gotten rpi_clock to work on Raspberry Pis so I have a few questions. There are no wrong answers! Opinions are most welcome. Any other issue readers are also solicited.
By the way, you can run with an ssh -Y
connection in v5.0 (ready for installation).
Enhancement requests from @tehmessiah75:
>>>
Should be straight-forward using Tk. The enhancements would effect the code and the config file.
>>>
I saw that too when I had a viable TFT screen to work with (It died!). I thought that I defeated this anomaly but apparently not. Note that I am having a lot of trouble ordering https://www.adafruit.com/product/2441 as a replacement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.