This post is probably best answered by Al (if you're back from PTO yet...)
I have been working with the Clock widget and trying to work it into some of my Batocera / EmulationStation scripts, and have a few questions / comments:
1. I noticed that while running the Clock widget, the Pixelcade log rapidly fills with entries (every few seconds?) showing which time is being written to the display:
INFO [2023-07-07 16:47:57.047] Displaying Text: 16:47 INFO [2023-07-07 16:47:57.548] Displaying Text: 16 47 INFO [2023-07-07 16:47:58.048] Displaying Text: 16:47 INFO [2023-07-07 16:47:58.548] Displaying Text: 16 47 INFO [2023-07-07 16:47:59.048] Displaying Text: 16:47 INFO [2023-07-07 16:47:59.548] Displaying Text: 16 47 INFO [2023-07-07 16:48:00.048] Displaying Text: 16:48 INFO [2023-07-07 16:48:00.548] Displaying Text: 16 48
Is there a way to suppress this, or maybe make the default be no logging, and then allow a parameter to be passed to enable logging, if desired?
2. I changed the "Font Color" in Widget Settings to a new color, but when running the Clock widget again it continued showing the time in a 'default' red color. Is the Font Color supposed to control the Clock (and other) widget(s), or is that only for scrolling text? I exited the settings page and re-entered to make sure my color selection remained as chosen (it did).
3. This may be an enhancement request for a future update, but I'd really like the ability to further customize the clock display. For example, having an option to split it across 2 rows, and show date on one line and time on another. Or, allowing the date/time format to be customized, similar to how Linux (and now Windows) allows. Like, with my main Linux computer, I have the date/time (shown in lower-right corner) coded as
%a. %b. %e, %Y %l:%M %p
which shows as:
Fri. Jul. 7, 2023 5:10 PM
There may be some limitations I would guess, but I'm hoping some of these features may be possible to add. Thanks!
not sure if this will work but try appending this to the clock command(s) in your script(s)
&>/dev/null
for reference:
https://stackoverflow.com/questions/72252481/suppress-console-logging-on-linux
Thanks for the prompt reply. It probably would have helped if I added the code from my script...I basically modified a script posted in another thread (showing how to blank out the Pixelcade), and just changed the first portion of the URL:
#!/bin/bash curl -s "http://127.0.0.1:8080/clock" >> /dev/null 2>/dev/null &
I believe the ">> /dev/null" essentially sends any bash-related output to the 'null' device. Is the Pixelweb app writing the log entries directly instead?
When you get a moment, I'd appreciate your feedback on the other questions, too....Thanks.
yes pixelweb does write to the console. If that didn't work, will be a bit before I can get to that one
OK - I appreciate your consideration.
When you get a chance, let me know if you have any thoughts re: changing clock color. Thx
the font color is for scrolling text, not the clock. In general, the clock is very basic, don't have any way to customize it right now
OK - thanks again for your help.