You are not logged in.
Hello guys , I saw the post ... what a disappointment ..... TEO and the sites that you have dimensioned Sector11 not good right? .... See this
http://www.moonconnection.com/moon_phas … ndar.phtml
https://stardate.org/nightsky/moon
http://www.moon-phases.net/
The two links I posted use <tables> with images.
Of the three you have above:
1. uses 'java'
<script language="JavaScript" type="text/javascript" src="http://www.imooncal.com/cs/mc.js?rp=&ln=4723947332&w=615&m=&y=0"></script>
2. I saw that link but missed this link buried in the page that could work very nicely:
https://stardate.org/cgi-bin/mooncal.cgi?month=12&year=2015
in fact, here's Jan 2016:
https://stardate.org/cgi-bin/mooncal.cgi?month=1&year=2016
- nice simple calendar, would be easy to parse.
3. Yup, this is good too. A table with gifs - not as simple as the one above though.
An old man's ramblings:
${texeci 86400 bash /path_to/script_name} - check once a day and or when the computer boots for the day.
and then further down, something like:
${pre_exec sed -n '3p' /path_to/month_moon_data/dec_data}
Not like this info is changing every 30 minutes, and would be low on resources even with the conky updating every second.
Pretty cool and lightweight
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@Teo: Does the Accuweather hourly forecast script pull in wind gust speed? The info currently isn't presented. It would be a nice-to-have.
Offline
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
fvirgola80 wrote:Hello guys , I saw the post ... what a disappointment ..... TEO and the sites that you have dimensioned Sector11 not good right? .... See this
http://www.moonconnection.com/moon_phas … ndar.phtml
https://stardate.org/nightsky/moon
http://www.moon-phases.net/The two links I posted use <tables> with images.
Of the three you have above:
1. uses 'java'
<script language="JavaScript" type="text/javascript" src="http://www.imooncal.com/cs/mc.js?rp=&ln=4723947332&w=615&m=&y=0"></script>
2. I saw that link but missed this link buried in the page that could work very nicely:
https://stardate.org/cgi-bin/mooncal.cgi?month=12&year=2015
in fact, here's Jan 2016:
https://stardate.org/cgi-bin/mooncal.cgi?month=1&year=2016
http://s20.postimg.org/maicw8te1/2015_12_31_08_08_20_Scrot11.jpg
- nice simple calendar, would be easy to parse.3. Yup, this is good too. A table with gifs - not as simple as the one above though.
An old man's ramblings:
${texeci 86400 bash /path_to/script_name} - check once a day and or when the computer boots for the day.
and then further down, something like:
${pre_exec sed -n '3p' /path_to/month_moon_data/dec_data}Not like this info is changing every 30 minutes, and would be low on resources even with the conky updating every second.
Pretty cool and lightweight
Great Yoda , who knows what we will say what Obi - Wan , I plan to create a conky with Yoda special
By Luke
Nothing happens by chance
Offline
Use the patience, Luke, use the patience.
Yoda can't do anything until Obe-Wan does his thing. Besides, tonight is not a night to expect anything.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Use the patience, Luke, use the patience.
Yoda can't do anything until Obe-Wan does his thing. Besides, tonight is not a night to expect anything.
I know I know Yoda ......
P.S. Happy New Year 2016 everybody
Nothing happens by chance
Offline
it's already 2016 in New Zealand, and the party doesn't stop until at least one hour after the last place on our third speck of cosmic dust from the tiny spark of fire hits the new year!
Wonder what a year is in the cosmic sense... probably a billonth of this . is a REALLY REALLY BIG estimate.
Enjoy your evening people and remember if you drink ... walk or take a back seat!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ sure it does: http://s20.postimg.org/4of357ao9/2015_12_31_09_23_54_Scrot11.jpg
Lines 106 to 113 in both files.
Check out the 1c companion.conky
No, that's the wind speed and direction. Have a look at the tabular forecast at the National Weather Service for Portland, OR:
One line has the surface wind speed, the next line has the direction, and the third line has the wind gust speed. I checked the Accuweather site and they don't appear to have the wind gust speed for the hourly forecast.
Offline
:8 :8 OOPS! So sorry KrunchTime ... missed the 'gust' part.
Please forgive.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
No offense taken.
Offline
Thank you, but I still feel embarrassed.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello guys
Before bigening HAPPY NEW YEAR
I make a conky-weather like this with a mix of 1b1_accuweather_images & 4Moon he works great :
I have a little problem how can i have the Conditions in french .
Y know that the accuweather adress must be the english page but it is possible to make a script who traduce
the current condition in french .
here the conkyrc :
background yes
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 00
maximum_width 220
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 ff0000 #LightSalmon
default_outline_color black
alignment tl
gap_x 40
gap_y 100
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
# Fonctionne uniquement avec les polices Fixes
#use_spacer yes
imlib_cache_size 0
uppercase no
lua_load ~/.conky/lua/image.lua
TEXT
${texeci 1200 bash $HOME/1b1_accuweather_images/1b1}
Température : ${voffset -20}${goto 120}${color7}${font URW Chancery L:style=Bold:size=30}${execi 90 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°${color}${font}
Conditions : ${execi 90 sed -n '18p' $HOME/1b1_accuweather_images/curr_cond}
Humiditée : ${execi 90 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}
Vent : ${execi 90 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond} à ${execi 90 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
Lev. Sol. ${execi 90 sed -n '39p' $HOME/1b1_accuweather_images/curr_cond}\
${goto 120}Cou. Sol. ${execi 90 sed -n '40p' $HOME/1b1_accuweather_images/curr_cond}
${alignc}Prévisions à 9 jours
${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 75}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${goto 145}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${color9}${execi 90 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°${color}\
${goto 75}${color9}${execi 90 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°\
${goto 145}${execi 90 sed -n '18p' $HOME/1b1_accuweather_images/first_days}°${color}
${color7}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°${color}\
${goto 75}${color7}${execi 90 sed -n '14p' $HOME/1b1_accuweather_images/first_days}°${color}\
${goto 145}${color7}${execi 90 sed -n '19p' $HOME/1b1_accuweather_images/first_days}°${color}
${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${goto 75}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
${goto 145}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}
${color9}${execi 90 sed -n '23p' $HOME/1b1_accuweather_images/first_days}°${color}\
${goto 75}${color9}${execi 90 sed -n '4p' $HOME/1b1_accuweather_images/last_days}°\
${goto 145}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/last_days}°${color}
${color7}${execi 90 sed -n '24p' $HOME/1b1_accuweather_images/first_days}°${color}\
${goto 75}${execi 90 sed -n '5p' $HOME/1b1_accuweather_images/last_days}°\
${goto 145}${execi 90 sed -n '10p' $HOME/1b1_accuweather_images/last_days}°${color}
${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}${color}\
${goto 75}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${goto 145}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°\
${goto 75}${color9}${execi 90 sed -n '19p' $HOME/1b1_accuweather_images/last_days}°${color}\
${goto 145}${color9}${execi 90 sed -n '24p' $HOME/1b1_accuweather_images/last_days}°${color}
${color7}${execi 90 sed -n '15p' $HOME/1b1_accuweather_images/last_days}°\
${goto 75}${execi 90 sed -n '20p' $HOME/1b1_accuweather_images/last_days}°\
${goto 145}${execi 90 sed -n '25p' $HOME/1b1_accuweather_images/last_days}°${color}
${texeci 500 bash $HOME/4_Moon/moon_MoonGiant}
${voffset -15}${goto 15}${execpi 600 sed -n '7p' $HOME/4_Moon/raw | awk '{print $1}'}\
${alignc -30}${execpi 600 sed -n '35p' $HOME/4_Moon/raw | awk '{print $1}'}\
${alignc -100}${execpi 600 sed -n '43p' $HOME/4_Moon/raw | awk '{print $1}'}
${goto 10}${execpi 600 sed -n '7p' $HOME/4_Moon/raw | awk '{print $2}'}\
${alignc -50}${execpi 600 sed -n '35p' $HOME/4_Moon/raw | awk '{print $2}'}\
${alignc -100}${execpi 600 sed -n '43p' $HOME/4_Moon/raw | awk '{print $2}'}
${voffset 00}${goto 25}${execpi 600 sed -n '1p' $HOME/4_Moon/raw}\
${alignc -12}${execpi 600 sed -n '29p' $HOME/4_Moon/raw}\
${alignc -80}${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
${voffset 34}${alignc 05}Détails
${alignc}Distance : ${execpi 600 sed -n '4p' $HOME/4_Moon/raw | cut -c1-5} Mkms
${alignc}Age : ${execpi 600 sed -n '5p' $HOME/4_Moon/raw} jours$font
#### icones conditions actuelles ####
${lua fDrawImage $HOME/1b1_accuweather_images/cc.png 145 40 100 72 0}\
#### icones 3 premiers jours ####
${lua fDrawImage $HOME/1b1_accuweather_images/6.png 20 175 50 30 0}\
${lua fDrawImage $HOME/1b1_accuweather_images/11.png 90 175 50 30 0}\
${lua fDrawImage $HOME/1b1_accuweather_images/16.png 163 175 50 30 0}\
#### icones 3 jours suivants ####
${lua fDrawImage $HOME/1b1_accuweather_images/21.png 20 230 50 30 0}\
${lua fDrawImage $HOME/1b1_accuweather_images/last_2.png 90 230 50 30 0}\
${lua fDrawImage $HOME/1b1_accuweather_images/last_7.png 163 230 50 30 0}\
#### icones 3 derniers jours ####
${lua fDrawImage $HOME/1b1_accuweather_images/last_12.png 20 285 50 30 0}\
${lua fDrawImage $HOME/1b1_accuweather_images/last_17.png 90 285 50 30 0}\
${lua fDrawImage $HOME/1b1_accuweather_images/last_22.png 163 285 50 30 0}\
#### icone lune ####
${lua fDrawImage $HOME/4_Moon/0.png 15 375 35 35 0}
${lua fDrawImage $HOME/4_Moon/1.png 95 375 35 35 0}
${lua fDrawImage $HOME/4_Moon/2.png 175 375 35 35 0}
Edition: here the image.lua better for a clear wallppaper:
--créer par Didier-T
require 'cairo'
home = os.getenv ('HOME')
--Fonction d'affichage
function conky_fDrawImage(path,x,y,w,h,arc)
path = string.gsub(path, "~", home)
path = string.gsub(path, "$HOME", home)
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local function fDrawImage(path,x,y,w,h,arc)
x=x+(w/2)
y=y+(h/2)
local img = cairo_image_surface_create_from_png(path)
local w_img, h_img = cairo_image_surface_get_width (img), cairo_image_surface_get_height (img)
local cr = cairo_create (cs)
cairo_translate (cr, x, y)
if arc then
cairo_rotate (cr, arc)
end
cairo_scale (cr, w/w_img, h/h_img)
cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
cairo_paint (cr)
cairo_destroy(cr)
cairo_surface_destroy (img)
end
fDrawImage(path,x,y,w,h,arc)
cairo_surface_destroy(cs)
return ""
end
Thank for helping me ,i now it's a big job to do that .
@+
Last edited by loutch (2016-01-02 19:31:09)
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 guys
Before bigening HAPPY NEW YEAR
Bonjour loutch - et avant que je commence: Bonne année
Next - conky will not work here without the lua script:
lua_load ~/.conky/lua/image.lua
please share it. You can "Edit" your post above and put it in after the conky
=== Translation ===
Yes translation would be a really big job. But you could probably do it locally with "sed"
I'm just in the process to teaching myself some 'sed' commands and rely heavily on Teo's scripts for examples.
So I tried a test ... my /1b1_accuweather_images/messages file looks like this:
Clouds and sun
Turning cloudy and less humid
Partly cloudy
Cloudy
A thunderstorm in spots
A shower and ttorm around
A shower and ttorm around
Sunny and pleasant
Clearing
A few showers in the morning
A couple of showers
Mostly cloudy
and using Teo's wisdom I did this:
02 Jan 16 | 12:16:48 ~
$ cp /media/5/Conky/1b1_accuweather_images/messages /media/5/Conky/1b1_accuweather_images/messages-fr
02 Jan 16 | 12:20:37 ~
$ if [[ -s /media/5/Conky/1b1_accuweather_images/messages-fr ]]; then
> sed -i -e 's/Clouds and sun/Nuages et soleil/' /media/5/Conky/1b1_accuweather_images/messages-fr
> sed -i -e 's/Turning cloudy and less humid/Mise nuageux et moins humide/' /media/5/Conky/1b1_accuweather_images/messages-fr
> fi
and /1b1_accuweather_images/messages-fr looks like this:
Nuages et soleil
Mise nuageux et moins humide
Partly cloudy
Cloudy
A thunderstorm in spots
A shower and ttorm around
A shower and ttorm around
Sunny and pleasant
Clearing
A few showers in the morning
A couple of showers
Mostly cloudy
Now you can use messages-fr for your conky. Of course I used an online translator to get the French so it might be wrong
Hmmmmmm must make one for me to change ttorm to t-storm or thunderstorm
in 1b1 you would have to add a section at the bottom of the 1b1 script:
#messages file
sed -n 28p /media/5/Conky/1b1_accuweather_images/curr_cond > /media/5/Conky/1b1_accuweather_images/messages
sed -n 29p /media/5/Conky/1b1_accuweather_images/first_days >> /media/5/Conky/1b1_accuweather_images/messages
sed -n 34p /media/5/Conky/1b1_accuweather_images/first_days >> /media/5/Conky/1b1_accuweather_images/messages
for (( i=7; i<=22; i+=5 ))
do
sed -n ${i}p /media/5/Conky/1b1_accuweather_images/first_days >> /media/5/Conky/1b1_accuweather_images/messages
done
for (( i=3; i<=23; i+=5 ))
do
sed -n ${i}p /media/5/Conky/1b1_accuweather_images/last_days >> /media/5/Conky/1b1_accuweather_images/messages
done
## English to French
cp /media/5/Conky/1b1_accuweather_images/messages /media/5/Conky/1b1_accuweather_images/messages-fr
if [[ -s /media/5/Conky/1b1_accuweather_images/messages-fr ]]; then
sed -i -e 's/Clouds and sun/Nuages et soleil/' /media/5/Conky/1b1_accuweather_images/messages-fr
sed -i -e 's/Turning cloudy and less humid/Mise nuageux et moins humide/' /media/5/Conky/1b1_accuweather_images/messages-fr
fi
date +%x > /media/5/Conky/1b1_accuweather_images/fetched
date +%T >> /media/5/Conky/1b1_accuweather_images/fetched
date +"%x %T" >> /media/5/Conky/1b1_accuweather_images/fetched
kill -CONT $(pidof conky)
NOTE: my paths - they will need changing
Now you would use the "messages-fr" for all your text conditions in conky.
Of course you would have to monitor it for a while for new English text - but that would show up in your conky anyway. Then you simply make a new line for new French text. You would probably have all the options translated in less than a month.
A SED Guru, like Teo, might be able to come up with a better way, but hey, if it works - it's good enough!
I think like that because I don't know a better way.
EDIT:
From experience with conkyForecast and poedit "phrases" need to be translated first.
so translate...
Clouds and sun
Turning cloudy and less humid
Partly cloudy
A thunderstorm in spots
A shower and ttorm around (must fix- or ask Teo to look at it: Should be t-storm or thunderstorm
Sunny and pleasant
A few showers in the morning
A couple of showers
Mostly cloudy
Then single words:
Clearing
Cloudy
Sunny
Thunderstorm
Windy
because sometimes words are different in a phrase.
Another EDIT: apostrophes in words:
sed -i -e 's/A couple of showers/Un couple d'\''averses/' /media/5/Conky/1b1_accuweather_images/messages-fr
NOTE - three apostrophes above: d'\''a - not a quote symbol
Last edited by Sector11 (2016-01-02 18:23:33)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
To Sector11
THANK YOU for helping me your paths work great and my conky is complety in french.
here my modificate section for french tranlation (it is no finish )
## English to French
cp $HOME/1b1_accuweather_images/messages $HOME/1b1_accuweather_images/messages-fr
if [[ -s $HOME/1b1_accuweather_images/messages-fr ]]; then
sed -i -e 's/Clouds and sun/Nuages et soleil/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Turning cloudy and less humid/Moins nuageux et moins humide/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/A couple of showers/Averses éparses/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Mostly cloudy/Ciel plutôt nuageux/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Rain and drizzle/Pluie et bruine/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Cloudy with a couple/Nuages épars/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Cloudy/Nuageux/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/A few a.m. showers,/Pluies l'\''après-midi/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Showers around in th/Quelques averses l'\''après-midi/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/breezy/Venteux/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/Times of clouds and/Nuages épars avec soleil/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/A little morning rai/Faible pluie le matin/' $HOME/1b1_accuweather_images/messages-fr
sed -i -e 's/A touch of afternoon/Faible pluie l'\''après-midi/' $HOME/1b1_accuweather_images/messages-fr
fi
kill -CONT $(pidof conky)
here my messages-fr
Nuageux
Pluie et bruine
Nuages épars
Nuageux
Pluies l'après-midi
Averses éparses
Averses éparses
Quelques averses l'après-midi
Venteux
Nuages épars avec soleil
Faible pluie le matin
Faible pluie l'après-midi
the lign in conky to call conditions :
Conditions : ${execi 90 sed -n '1p' $HOME/1b1_accuweather_images/messages-fr}
In the conky
I have another questions in "messages" i have 12 lines
at wat correspond every line ? .
@+
Last edited by loutch (2016-01-02 22:15:54)
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
@Teo: Does the Accuweather hourly forecast script pull in wind gust speed? The info currently isn't presented. It would be a nice-to-have.
Unfortunately not Krunchtime, otherwise the script would "catch" it. What's the difference between wind speed and gust speed by the way?
@fvirgola80
I used http://www.calendar-365.com/moon/moon-calendar.html, so there you go:
#!/bin/bash
rm $HOME/Moon_Phases_Calendar-365/*.jpg
wget -O $HOME/Moon_Phases_Calendar-365/moon_monthly_info http://www.calendar-365.com/moon/moon-calendar.html
sed -i -e 's/\/images\/moon\//\n/g' -e 's/jpg" title="/jpg\n/g' -e 's/^.*calendar-moon-title//g' $HOME/Moon_Phases_Calendar-365/moon_monthly_info
sed -i -e 's/<br \/><img class=.*$//g' -e 's/">.*>/\n/g' -e 's/" title="//g' $HOME/Moon_Phases_Calendar-365/moon_monthly_info
sed -i -e 's/ .*$//g' -e 's/ - .*$//g' -e 's/ of moon.*$/ visibility/g' $HOME/Moon_Phases_Calendar-365/moon_monthly_info
lines_in_file=$(wc -l < $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
if (( $lines_in_file == 94 )); then
#31 days month
for (( i=3; i<=93; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
elif (( $lines_in_file == 91 )); then
#30 days month
for (( i=3; i<=90; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
elif (( $lines_in_file == 85 )); then
#28 days month
for (( i=3; i<=84; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
elif (( $lines_in_file == 88 )); then
#29 days month
for (( i=3; i<=87; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
fi
@loutch
Unfortunately I can't do it my friend. Try what S11 suggested, ie. "play" with the english script substituting the english keywords with french and see if that gets you anywhere.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I have another questions in "messages" i have 12 lines
at wat correspond every line ? .
@+
You're welcome.
I missed that in the companion conky but a quick guess is:
01 - current
02 - today (forecasted)
03 - tonight (forecasted)
04 - day 1
05 - day 2
06 - day 3
07 - day 4
08 - day 5
09 - day 6
10 - day 7
11 - day 8
12 - day 9
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello
Unfortunately I can't do it my friend. Try what S11 suggested, ie. "play" with the english script substituting the english keywords with french and see if that gets you anywhere.
It's okay the paths from Sector11 works perfectly and it is enough to me i just use the current condition.
@ Sector11
Tanks for everything .
To all guys here
GREAT JOB
@+
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
@fvirgola80
I used http://www.calendar-365.com/moon/moon-calendar.html, so there you go:
#!/bin/bash
rm $HOME/Moon_Phases_Calendar-365/*.jpg
wget -O $HOME/Moon_Phases_Calendar-365/moon_monthly_info http://www.calendar-365.com/moon/moon-calendar.html
sed -i -e 's/\/images\/moon\//\n/g' -e 's/jpg" title="/jpg\n/g' -e 's/^.*calendar-moon-title//g' $HOME/Moon_Phases_Calendar-365/moon_monthly_info
sed -i -e 's/<br \/><img class=.*$//g' -e 's/">.*>/\n/g' -e 's/" title="//g' $HOME/Moon_Phases_Calendar-365/moon_monthly_info
sed -i -e 's/ .*$//g' -e 's/ - .*$//g' -e 's/ of moon.*$/ visibility/g' $HOME/Moon_Phases_Calendar-365/moon_monthly_info
lines_in_file=$(wc -l < $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
if (( $lines_in_file == 94 )); then
#31 days month
for (( i=3; i<=93; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
elif (( $lines_in_file == 91 )); then
#30 days month
for (( i=3; i<=90; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
elif (( $lines_in_file == 85 )); then
#28 days month
for (( i=3; i<=84; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
elif (( $lines_in_file == 88 )); then
#29 days month
for (( i=3; i<=87; i+=3 ))
do
image_address=http://www.calendar-365.com/images/moon/$(sed -n ${i}p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
date=$(sed -n $(( i-1 ))p $HOME/Moon_Phases_Calendar-365/moon_monthly_info)
wget -O $HOME/Moon_Phases_Calendar-365/$date.jpg $image_address
done
fi
@TEO Thanks Teo you are a big ... but conky ? I prefer that we see and Sector11 ? in the meantime we speak ..thanks thousand TEO are a myth
Last edited by fvirgola80 (2016-01-03 18:54:51)
Nothing happens by chance
Offline
^ Create a conky
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
No time for a conky fvirgola80, sorry, why don't you try to create one yourself?
But to be honest with you, I don't see much of a point in a monthly moon phases conky: it'd be the same for a month, you'd only have to update it 12 times a year - not the type of info conky was made for...
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline