Code Monkey home page Code Monkey logo

rpi_clock's People

Contributors

texadactyl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi_clock's Issues

Another enhancement request from @tehmessiah75

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.

Two enhancement requests from @tehmessiah75

Enhancement requests from @tehmessiah75:

  1. "Configuration options to change the colour of (a) the background or (b) the text. Just basic Red Green Blue Yellow or Black with a light background colour."

>>> Should be straight-forward using Tk. The enhancements would effect the code and the config file.

  1. "Change the startup location of the mouse cursor or somehow make the cursor hide after a 10 seconds (or some other predefined timeout). When mine loads the cursor is right in the middle of the screen over the temperature."

>>> 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.

Screen update rate? SLEEP_TIME_MSEC default value of 60000 is too large

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

Locked out of the Weather Underground! Huh?!

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:

  • Migrated from the Weather Underground to Open Weather Maps.
  • All of the operational files in subdirectory bin are affected.
  • But, it really is a total project refresh - ugh.

Version 4 reflects the completed migration.

Run perfect but got something wrong when I ssh the Raspberry

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!

Running under `ssh -Y` poses no issue (Thanks, @tehmessiah)

@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:

  • Present: proceed with execution.
  • Missing: fatal error.

Having trouble finding a distro for my RPi2

@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.

  1. Are you using the Adafruit PiTFT 3.5" Touch Screen?
  2. Which Raspbian or Raspberry Pi OS with desktop are you using? A precise URL for download would be useful.
  3. If you downloaded a Lite O/S, how did you add enough X-Windows to satisfy Tk so that rpi_clock ran? Was this straight-forward enough for a non-programming user?
  4. What did you have to do in raspi-config to get it to work? Enable SSH, of course, for remote connection. How about SPI?
  5. Did you hand-edit the boot config.txt file? If so, details, please.
  6. Any other comments? Anything else that might help a non-programming user?

By the way, you can run with an ssh -Y connection in v5.0 (ready for installation).

How to display only clock?

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?

Home directory for log file hard-coded to "/home/pi"

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):

  • OS: Raspian Bullseye Lite

'Path' has no attribute 'home'

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.

SyntaxError: invalid syntax

Describe the bug

File "/home/ben/rpi_clock/bin/rpi_clock.py", line 9
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax

not able to run

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

How do you close it?

Hi! I very like this code, but, some times, I want display my desktop,How do you close it?

only: Go Back, Reboot, Shutdown,

Can't get it to work?

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.

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.