You are not logged in.
Hello
Here are a few possible choices depending on my current mood
choice 1
https://thumbs2.imgbox.com/23/73/WWXZXSpz_t.png
number 2
https://thumbs2.imgbox.com/51/59/kj4VrH0w_t.png
number 3
https://thumbs2.imgbox.com/cc/0d/7xQ9qpIa_t.png
@+
Je serais pour le numéro 3, car c'est cette création avec la montre qui me plaît le plus.
Mon humble travail d'aujourd'hui.
----------
I would go for number 3 because I like this creation with the watch the best.
My humble work from today.
Offline
Re
Wunderbar .
Folks, I'm having a little memory loss, I can't remember how to display the full name from next days in conky.
for today i use
${time %A}
can anyone help me
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
$ date -d '+1 day' '+%A'
Thursday
If people would know how little brain is ruling the world, they would die of fear.
Offline
Re
@ marens
Many tanks
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Hello
Apart from the speed of the wind gusts, I think I've understood everything. Some of the graphs are practically the same because I cheated a bit, I took the same log to have a single line. The scripts work well, no errors in the console and the log files work well because the last entries are different.
We'll see in a few days.
@+
Last edited by loutch (2025-03-15 09:18:04)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Tu travailles à nouveau à un rythme 'à la pièce' ! [de=Akkord-Tempo]
Excellent travail de conky!
------------------------------
You're working at a 'piecework pace' again!
Excellent work by conky!
Offline
@loutch
The graphs look great, but some things don't make sense.
You need a weather forecast for next week (instead of last week).
In practice, this means from March 15th to March 21nd.
I think the problem is in the script here:
DATE=$(date +"%s")
DATE1WEEK=$(date --date="1 week ago" +"%s")
https://forums.bunsenlabs.org/viewtopic … 11#p136911
Try:
DATE1WEEK=$(date --date='+1 week' +'%s')
I don't have the API and can't test it, but I don't believe AccuWeather provides data for the past seven days.
Also, the log you provided here (listePression.log) is for the next 24 hours, not the entire week:
https://forums.bunsenlabs.org/viewtopic … 52#p136952
Anyway, progress has been made and I'm glad they stopped using @TBG's Accuweather_conky_script on another forum.
They didn't understand how the script even worked, nor did my hourly forecast plugin.
Good luck.
Last edited by marens (2025-03-15 13:58:21)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
In fact for the graph I use curr_cond from accuweather which gives me an entry every hour which gives me an average for the past week.
Now for a test I would like to modify it for a daily graph it works I have a graph .
This afternoon
Now
You can see that the 17th is moving to the left, which is today's date, and I think that at midnight the 18th will appear.
I've fiddled around but can't figure out how to display the hours instead of the day.
DATE=$(date +"%s")
DATE1WEEK=$(date --date="1 day ago" +"%s")
i try this & many others thinks but they don't work
DATE=$(date --date="1 hour ago" +"%s")
DATE1WEEK=$(date --date="1 day ago" +"%s")
here full code
#!/bin/bash
## files
LOG="$HOME/.conky/barographe/JOUR/journalier.log"
GRAPH="$HOME/.conky/barographe/JOUR/graph.png"
##Infos generales
DATE=$(date +"%s")
DATE1WEEK=$(date --date="1 day ago" +"%s")
# liste des dates de releve du fichier log
EPOCH=()
while read
do
EPOCH+=( "$REPLY" )
done< <(awk '{print $1}' "$LOG")
# si le fichier existe et contient des valeurs de plus d'une semaine (premiere = plus vieille)
#supprimer premiere valeur
[[ -f $LOG ]] && {
for i in $(seq 0 $(($(wc -l < $LOG)-1)))
do
[[ $DATE1WEEK -gt ${EPOCH[$i]} ]] && sed -i '1d' $LOG || break
done
}
## Conversion en hectopascal et soustraction de la pression moyenne pour ramener l'axe a zero
PR_HP=`sed -n '1p' $HOME/Accuweather_conky_script/pression`
TEMP=`sed -n '2p' $HOME/Accuweather_conky_script/curr_cond`
PR_CALC=$(bc << EOF
scale=0
$PR_HP - 1000
EOF
)
echo "$DATE $PR_CALC $TEMP" >> $LOG
gnuplot <<EOF
set border linewidth 2.5
set terminal png enhanced size 300,170 transparent #font "Ubuntu,10" 400,350
set term png font "Ubuntu:style=Bold,14"
set output "$GRAPH"
unset key
set grid
set xzeroaxis lt 3 lw 2
set yzeroaxis
set ytics ("" -40, "" -20, "" 20, "" 40)
set mxtics 1 ## 0 donne erreur
set xdata time
set timefmt "%s"
set xtics 86400
set format x "%d"
set style line 1 lw 2
set style line 2 lw 2
plot ["$DATE1WEEK":"$DATE"] [-40:50] "$LOG" using 1:3 with lines ls 2, "$LOG" using 1:2 with lines ls 1
EOF
exit 0
i try tomodify
set timefmt
set stics
set format x "%d"
if anyone can help .
there's no hurry, it's just so you don't die a fool .
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Unfortunately, I can't test it because I don't have all the dependencies installed and I don't know what the LOG files look like, but I would try something like the temperature for the next seven days (one week) this way:
DATE=$(date --date='+1 week' +'%s')
DATE1WEEK=$(date +'%s')
Explanation:
In days it would look like this:
$ date --date='+1 week'
Tue 25 Mar 2025 01:01:11 AM CET
$ date
Tue 18 Mar 2025 01:01:35 AM CET
Or in seconds (as the script requests):
$ date --date='+1 week' +'%s'
1742861232
$ date +'%s'
1742256465
If the LOG is correct, you should get a graph for the next 7 days.
From March 18 to March 25.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
The date change worked, but where am I going to find the temperatures & pressure for next week?
I can use this for temperature
TEMP=`sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast`
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
All old lua scripts that were created with the additional parameter
require 'cairo_xlib'
(if required) still work perfectly on wayland.
a test with known clock conky's
At the moment under carbon with labwc the Conky's just don't stay in place(Alt+left click / drag with the mouse = ok). This sounds familiar to me (I forgot ), because in 'pure' labwc this was fixed with updates from conky-all
as far as I know...
Last edited by unklar (2025-03-18 09:49:56)
Offline
Hello
AHHH die alten conky , wie viele Erinnerungen.
Willkommen im Club
---------------------------------------------
AHHH the old conky, so many memories
Welcome to the club
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
The date change worked, but where am I going to find the temperatures & pressure for next week?
As you know, I don't have the AccuWeather APIs.
Each LOG is unique.
Each GRAPH must display the actual values from the LOG.
Here you have listPression.log:
https://forums.bunsenlabs.org/viewtopic … 52#p136952
I found out that it's a 24 hour period:
https://forums.bunsenlabs.org/viewtopic … 58#p136958
And:
https://forums.bunsenlabs.org/viewtopic … 61#p136961
This means that the script must be changed to show hours and not days.
The script also expects a time in seconds (%s).
Here I have given you instructions on how to convert time from seconds and check which period the LOG refers to:
The first value in the listPression.log file is 1723455237.
$ date --date=@1723455237 Mon 12 Aug 2024 11:33:57 AM CEST
Look at the end of the post:
https://forums.bunsenlabs.org/viewtopic … 58#p136958
The GRAPHS look nice, but they need to be usable and show values that we can see on the accuweather.com website.
As you can see, there is too much work.
I'm sorry, but that's not on my to-do list.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
The date change worked, but where am I going to find the temperatures & pressure for next week?
{snip}
@+
I doubt and weather forecasts will show future pressure. It's a now thing.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ Try:
DATE=$(date --date='+6 days' +'%s')
DATE1WEEK=$(date --date='-1 day' +'%s')
EDIT
@ marens there is a mistake here.
I don't understand what's wrong?
I can see from your screenshot that March 19th is coming soon.
https://postimg.cc/CRXkf2W6
I can use this for temperature
TEMP=`sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast`
Yes.
That's the temperature today (line 4 - daily_forecast).
For the next days you have line 11 (tomorrow), line 18, line 25, line 32...
I really don't know how to change the script and make the correct graph.
I already told you I can't test it.
I think a script with free APIs gives more options.
Try another forums (Linux Mint).
Last edited by marens (2025-03-18 23:38:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Conky - Box-drawing characters (Unicode)
Box-drawing characters, also known as line-drawing characters, are a form of semigraphics widely used in text user interfaces to draw various geometric frames and boxes. These characters are characterized by being designed to be connected horizontally and/or vertically with adjacent characters, which requires proper alignment. Box-drawing characters therefore typically only work well with monospaced fonts.
https://en.wikipedia.org/wiki/Box-drawi … rs#Unicode
I tried drawing a bold line in the terminal with U+2501 and it works:
$ ━━━━━━━━━━━━━━━━━━━
With U+2581:
$ ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
It also works great in conky if you use a font that supports it.
Box-drawing characters therefore typically only work well with monospaced fonts.
https://en.wikipedia.org/wiki/Monospaced_font
EDIT
Note *
Hold CTRL + SHIFT and press ' u ' once, then type 2501 (2581).
Press ENTER and you will get that unicode character.
Then Select the character > Right click > Copy > Paste as many times as needed.
This is how it should look in conky (as a separator):
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
P.S.
Example:
${font Open Sans:size=12}${color 0098FF}━━━━━━━━━━━━━━━━━━━━━
Just set override_utf8_locale to yes (true).
Last edited by marens (2025-04-01 03:20:40)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Cannot recall who actually did the "Bunsen burner".
## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣
## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©
## 0 1 2 3 4 5 6 7 8 9 A B C D E F
##U+250x ─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏
##U+251x ┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟
##U+252x ┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯
##U+253x ┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻ ┼ ┽ ┾ ┿
##U+254x ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋ ╌ ╍ ╎ ╏
##U+255x ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟
##U+256x ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ╭ ╮ ╯
##U+257x ╰ ╱ ╲ ╳ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿
update_interval 1
TEXT
│ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣
↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠
• ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
¼ ½ ¾ ® ©
( 9(
6 )
)( 9 )
____)__.
\~○~~·~|
|• ○ ·|
| ○ •○|
| · • |
|_____|
╔═══════════════╗
║ ^ ║
║ W ║
║ [=] ║
║ | | ║
║ | | ║
║ | | ║
║ | |____ ║
║ | | ) ║
║ <=======>(__║____
BunsenLabs
Font:
Fira Mono bold size 10
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline