You are not logged in.

#2726 2019-09-03 09:49:27

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Do you mean the conkyrc files?


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

#2727 2019-09-03 10:12:47

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

yes do they stay on the folder or they are removed? And for the script we only have to change the location line?
I was not sure so I only copy and paste the new script  ops

Last edited by ragamatrix (2019-09-03 10:13:35)

Offline

#2728 2019-09-03 10:49:24

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

They stay in the folder.
You only have to change your WUnderground address in the script and the conky launch command in the conkyrc you're using.
I'll update the script with a readme as soon as I find the time.

Last edited by TeoBigusGeekus (2019-09-03 11:20:26)


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

#2729 2019-09-03 11:16:43

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

perfect thanks for your clear explanations, sorry for my "noobitude"  smile

Offline

#2730 2019-09-03 11:20:55

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

I'm a noob myself when it comes to git, so we're together on this one wink


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

#2731 2019-09-03 12:25:45

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 131
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

I'm a noob myself when it comes to git, so we're together on this one wink

Not noob, only newbie. big_smile

ragamatrix wrote:

@Teo: what happens with our custom configs when we update on github?

Basically, you issue from time to time the following command:

$ git remote update && git status

You will get something like this:

gGWPGoo.png

You can list commits via:

$ git log --all --oneline --graph --decorate --abbrev-commit HEAD..origin/master

0aKYSCT.png

Or see individual commits if you need:

$ git log -p  HEAD..origin/master

vEgi85g.png

Then you can pull the changes to your local repository via:

$ git pull

rUjBJyh.png

That will sync your local repo with the remote one. If you want to make some local changes that will never go upstream (like your conky config), do it in a separate branch. In this way the upsream will always be in sync and your branch will be intact . Then you can diff the two branches and import commits and merge them separately into your branch. And repeat that process whenever upstream code changes. big_smile

Offline

#2732 2019-09-03 14:53:09

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

okay...  glasses
I've made the mOOn script if someone is interested, put it in the 2_Wunderground folder, it normally run with conky (I hope):
mOOn.sh:

#!/bin/sh
###############################
#   1h=60m=3600s              #
#   1j=24h=1440m=86400s       #
#365j=8760h=525600m=31536000s #
###############################
###########################################################################################################################################
###########################################################################################################################################
#SAT-SPHERE-RGB-NAT########################################################################################################################
#Partie détourage auteur jpdipsy forum ubuntu.fr Merci à lui ;)
#Modif et ajout des fonctions dans ce script
###########################################################################################################################################
###########################################################################################################################################
###################http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_IR108Color_LowResolution.jpg  ###########################
###################http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg###########################
###################https://static.die.net/moon/576.jpg###########################
pat=${HOME}/2_Wunderground/ # destination de l'image téléchargée

image=$pat"moon"
msk=$pat"mask.png"


wget -q -O $image "https://static.die.net/moon/576.jpg"

rayon=281

largeur=`identify -format "%w" $image` 
hauteur=`identify -format "%h" $image`
centre1=`echo $(($largeur / 2))`
centre2=`echo $(($hauteur / 2))`

convert -size "$largeur"x"$hauteur" xc:none -fill blue -draw "translate $centre1,$centre2 circle 0,0 $rayon,0" -alpha extract $msk
convert $image  $msk  -alpha off -compose CopyOpacity -composite $image.png
convert $image.png -resize 300x300\! $image.png
rm $msk $image
#############################################################################################################################################
#############################################################################################################################################
#############################################################################################################################################

conky-wu-rotary-phone:

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'normal',
	--own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,
	text_buffer_size = 2048,
-- fiddle with window
	use_spacer = 'none',
	use_xft = true,
	background = true,
-- Update interval in seconds
	update_interval = 1,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
-- Minimum size of text area
	minimum_width = 400, minimum_height = 400,
	maximum_width = 400,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = false,
	default_shade_color = '#000000',
	draw_outline = true,
	default_outline_color = '#000000',
-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	--fonts tests:
--JD LCD Rounded:style=Bold
--LCDMono2
--Lucida Sans
--Neogrey
--PF Tempesta Five Condensed
--PF Tempesta Five Compressed
--Visitor TT1 BRK:Medium:size=9
--Anonymous Pro:Medium:size=8
--Terminus
--Fira Mono
	font = 'Fira Mono:size=10', --important for shades
	template0 = 'Fira Mono:size=11',
	template1 = 'Fira Mono:size=11',

	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

--border_inner_margin = '9',
-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	--default_color = '#cbcbcb',
	--color1  = '#505454', 
	--own_window_colour = 'brown',
	--own_window_transparent = true,
-- color
	default_color = 'cbcbcb',
	color0 = '98FB98', --PaleGreen
	color1 = '778899', --LightSlateGray
	color2 = 'FFD700', --Gold
	color3 = 'B0E0E6', --PowderBlue
	color4 = 'F4A460', --SandyBrown
	color5 = 'DEB887', --BurlyWood
	color6 = '00BFFF', --DeepSkyBlue 8ED1E9
	color7 = '5F9EA0', --CadetBlue
	color8 = 'FFA500', --Orange
	color9 = 'FF4500', --OrangeRed
	

-- Text alignment, other possible values are commented
--alignment top_right
--alignment top_left
	alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
	gap_x = 30,
	gap_y = 50,

	imlib_cache_size = 0,
-- script lua	
	lua_load = '~/.conky/script/image.lua',
--[[
#${lua conky_draw_bg 4 0 0 0 155 0x000000 0.3}\
#${lua conky_draw_bg 4 0 165 0 50 0x000000 0.3}\
#${lua conky_draw_bg 4 0 225 0 65 0x000000 0.3}\
#${lua conky_draw_bg 4 0 0 0 290 0x000000 0.4}\
--]]
};

conky.text = [[
${lua fDrawImage $HOME/2_Wunderground/BG-Imagemagick.png 0 0 422 422}
${execi 86400 bash $HOME/2_Wunderground/mOOn.sh}
#${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/Moon_phase.png 190 265 40 40}
${lua fDrawImage $HOME/2_Wunderground/moon.png 103 102 218 218}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/current.png 170 110 75 75}
${execi 600 bash $HOME/2_Wunderground/2_wun}\
${voffset -35}${goto 200}${execi 600 echo `date --date "1 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 18}${color3}${goto 188}${execpi 600  sed -n '110p' $HOME/2_Wunderground/10days}°|${color8}${goto 220}${execpi 600 sed -n '112p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/2.png 197 42 30 30}\
${voffset -17}${goto 295}${execi 600 echo `date --date "2 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 17}${color3}${goto 283}${execi 600  sed -n '208p' $HOME/2_Wunderground/10days}°|${color8}${goto 315}${execi 600  sed -n '210p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/3.png 297 75 30 30}\
${voffset 20}${goto 140}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c1-20}\
${font Fira Mono:Style=Bold:size=15}${voffset 20}${goto 140}${if_match ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}<5}°${color lightblue}${blink ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°}${else}${color orange}${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°${endif}${font}${color}\
${goto 230}Wind ${execpi 600 sed -n '82p' $HOME/2_Wunderground/curr_cond} \
${voffset 17}${goto 130}± ${execpi 600 sed -n '58p' $HOME/2_Wunderground/curr_cond}°\
${goto 230}${execpi 600 sed -n '86p' $HOME/2_Wunderground/curr_cond} km/h
${goto 115}${execpi 600 sed -n '22p' $HOME/2_Wunderground/curr_cond} mm Prec\
${goto 230}${execpi 600 sed -n '36p' $HOME/2_Wunderground/curr_cond} % Hum

##--bloc heures##
${voffset -15}${color6}${goto 115}${execi 600 echo `date --date "2 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 165}${execi 600 echo `date --date "4 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 215}${execi 600 echo `date --date "6 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 265}${execi 600 echo `date --date "8 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}${color}\
${voffset 33}${color8}${goto 125}${execpi 600  sed -n '80p' $HOME/2_Wunderground/hourly}°\
${goto 175}${execi 600  sed -n '226p' $HOME/2_Wunderground/hourly}°\
${goto 225}${execi 600  sed -n '372p' $HOME/2_Wunderground/hourly}°\
${goto 275}${execi 600  sed -n '518p' $HOME/2_Wunderground/hourly}°${color}\
${voffset 45}${goto 175}${font Open Sans:size=7}${execpi 600 sed -n '1p' $HOME/2_Wunderground/moon_data}${font}
${voffset 10}${font :size=7}${goto 80}UV Index: ${execpi 600 sed -n '72p' $HOME/2_Wunderground/curr_cond}
${goto 100}${execpi 600 sed -n '30p' $HOME/2_Wunderground/curr_cond} mb
${goto 120}Sunrise: ${color8}${execpi 600 sed -n '44p' $HOME/2_Wunderground/curr_cond|cut -c1-5} 
${goto 140}${color}Sunset: ${color1}${execpi 600 sed -n '48p' $HOME/2_Wunderground/curr_cond|cut -c1-5}${font}${color}

${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h2.png 123 225 30 30}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h4.png 173 225 30 30}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h6.png 223 225 30 30}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h8.png 273 225 30 30}${color}
##-fin-bloc heures#
${voffset -310}${goto 350}${execi 600 echo `date --date "3 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 18}${color3}${goto 335}${execi 600  sed -n '306p' $HOME/2_Wunderground/10days}°|${color8}${goto 368}${execi 600  sed -n '308p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/4.png 347 167 30 30}\
${voffset 49}${goto 332}${execi 600 echo `date --date "4 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 18}${color3}${goto 315}${execi 600  sed -n '404p' $HOME/2_Wunderground/10days}°|${color8}${goto 348}${execi 600  sed -n '406p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/5.png 330 265 30 30}\
${voffset 13}${goto 250}${execi 600 echo `date --date "5 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${voffset 35}${color3}${goto 238}${execi 600  sed -n '502p' $HOME/2_Wunderground/10days}°|${color8}${goto 270}${execi 600  sed -n '504p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/6.png 247 333 30 30}\

]];

smile

Offline

#2733 2019-09-03 17:27:44

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

morfik wrote:

That will sync your local repo with the remote one. If you want to make some local changes that will never go upstream (like your conky config), do it in a separate branch. In this way the upsream will always be in sync and your branch will be intact . Then you can diff the two branches and import commits and merge them separately into your branch. And repeat that process whenever upstream code changes. big_smile

That's the part I don't understand.
I have the normal script in its folder along with the conkyrc files that call it.
I push it in the master branch and that's the one you guys should see and pull from the repository.

I then add some more lines to the script to customize it, change the calls to the script in ALL conkyrc files in order to test it and push it to the teo_version branch. I keep using this branch until something needs to be changed to the script universally. I then make the changes to the teo_version branch, the one I have working in my pc, and when I'm assured that everything works ok I push it to its separate branch. I then pull the master branch, make the necessary changes there as well and push it back for the users to see the update. After that, I pull my custom branch again in order to use it.

Is this the correct order? Cause two copies of the script sound like much less fuss to me, sorry...


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

#2734 2019-09-03 18:24:24

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 131
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

I have the normal script in its folder along with the conkyrc files that call it.
I push it in the master branch and that's the one you guys should see and pull from the repository.

So far good.

TeoBigusGeekus wrote:

I then add some more lines to the script to customize it, change the calls to the script in ALL conkyrc files in order to test it and push it to the teo_version branch.

In this point you create a new branch, switch to it, and then make changes to the files, and then commit the changes. The changes you make in this way will only apply to the teo_version branch. So when you switch to master, you will see the normal version.

TeoBigusGeekus wrote:

I keep using this branch until something needs to be changed to the script universally. I then make the changes to the teo_version branch, the one I have working in my pc, and when I'm assured that everything works ok I push it to its separate branch.

You use the teo_version branch and do whatever you want (you work here as you would in a normal directory). If you find something, for instance, a misspelled word (it's just a simple example), you can fix it in teo_version branch, make commit, switch to the master branch and pick the commit from the teo_version branch and merge it into master. See here for examples: https://git-scm.com/docs/git-cherry-pick


TeoBigusGeekus wrote:

I then pull the master branch, make the necessary changes there as well and push it back for the users to see the update. After that, I pull my custom branch again in order to use it.

You don't pull your own project. Remote repository is only for ppl who want to contribute to your project -- it's just a remote copy of what you have locally. So you only push changes to the remote repository and other ppl can pull them. If something goes really wrong (hardware failure big_smile), you always have a remote backup, and then you can pull your own project and work on it.

TeoBigusGeekus wrote:

Is this the correct order? Cause two copies of the script sound like much less fuss to me, sorry...

Basically git makes everything visible, So when you have separate copies, you have to copy all the changes you made many times manually. In git you 1) see all the changes (commit less and more often), and 2) you can pick individual commits without analyzing everything over and over, which can save a lot of time. big_smile

Offline

#2735 2019-09-03 21:05:42

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Magic! That's black magic!
I didn't believe it until I saw it!

I had the main script, pushed it to the 1_accuweather_test repository.
I then created a branch, teo_version, made some changes to the script and pushed it.

When I did a git checkout master the script was in its initial condition!!!
That's what the ancient Greeks used to called Blackmagicfuckery tongue

You were right all along Morfik and all the others that insisted on the usage of branches.

How can I make the branch invisible to anyone but me on gitlab?
I don't want others to see what I've added to the script for my personal usage.


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

#2736 2019-09-03 21:12:32

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@ragamatrix
Thanks for posting it buddy.


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

#2737 2019-09-03 22:43:50

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 131
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Just don't push the other branch to the remote repo. smile

Offline

#2738 2019-09-04 10:59:18

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 231

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Good morning from an old friend .... first of all how are you .. ???
and then ... I've seen great news for the weather forecast ....
To sum up, give me a hand to understand how I should move to make everything accuweather work again? I still use conky vers. 1.9 ... I have to update to conky 1.10 ??
I ask my teachers for help .....


Conky a lifetime, thanks masters Obi-Wan (TEO) and Yoda (Sector11) Use Hydrogen bunsenlabs linux 8.9

Offline

#2739 2019-09-04 11:17:53

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Hello all, I discovered a nice noaa website to see great sat pictures, I would like to display the last image in conky but the name of the latest picture is changing every 10mn... I don't know how to do in a script to call this image... If someone can helps thanks wink
the site:
https://www.star.nesdis.noaa.gov/goes/s … sector=taw

the picture:(example)
https://cdn.star.nesdis.noaa.gov/GOES16 … 0x1080.jpg

I've founded \o/ !
this picture will be updated every 10mn in a conky:
FD-sat.md.png

Last edited by ragamatrix (2019-09-04 13:03:17)

Offline

#2740 2019-09-04 14:54:54

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

2019-09-04-16-51-11_scrot.th.png
conky-goes-sat:

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'normal',
	--own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,
	text_buffer_size = 2048,
-- fiddle with window
	use_spacer = 'none',
	use_xft = true,
	background = true,
-- Update interval in seconds
	update_interval = 1,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
-- Minimum size of text area
	minimum_width = 540, minimum_height = 540,
	maximum_width = 540,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = false,
	default_shade_color = '#000000',
	draw_outline = true,
	default_outline_color = '#000000',
-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	--fonts tests:
--JD LCD Rounded:style=Bold
--LCDMono2
--Lucida Sans
--Neogrey
--PF Tempesta Five Condensed
--PF Tempesta Five Compressed
--Visitor TT1 BRK:Medium:size=9
--Anonymous Pro:Medium:size=8
--Terminus
--Fira Mono
	font = 'Fira Mono:size=10', --important for shades
	template0 = 'Fira Mono:size=11',
	template1 = 'Fira Mono:size=11',

	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

--border_inner_margin = '9',
-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	--default_color = '#cbcbcb',
	--color1  = '#505454', 
	--own_window_colour = 'brown',
	--own_window_transparent = true,
-- color
	default_color = 'cbcbcb',
	color0 = '98FB98', --PaleGreen
	color1 = '778899', --LightSlateGray
	color2 = 'FFD700', --Gold
	color3 = 'B0E0E6', --PowderBlue
	color4 = 'F4A460', --SandyBrown
	color5 = 'DEB887', --BurlyWood
	color6 = '00BFFF', --DeepSkyBlue 8ED1E9
	color7 = '5F9EA0', --CadetBlue
	color8 = 'FFA500', --Orange
	color9 = 'FF4500', --OrangeRed
	

-- Text alignment, other possible values are commented
--alignment top_right
--alignment top_left
	alignment = 'middle_middle',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
	gap_x = 0,
	gap_y = 0,

	imlib_cache_size = 0,
-- script lua	
	lua_load = '~/.conky/script/image.lua',
--[[
#${lua conky_draw_bg 4 0 0 0 155 0x000000 0.3}\
#${lua conky_draw_bg 4 0 165 0 50 0x000000 0.3}\
#${lua conky_draw_bg 4 0 225 0 65 0x000000 0.3}\
#${lua conky_draw_bg 4 0 0 0 290 0x000000 0.4}\
--]]
};

conky.text = [[
${execi 600 bash $HOME/2_Wunderground/earth-full-disk-goes-sat.sh}\
${lua fDrawImage $HOME/2_Wunderground/FD-sat.png 0 0 538 538}

]];

earth-full-disk-goes-sat.sh:

#!/bin/sh
###############################
#   1h=60m=3600s              #
#   1j=24h=1440m=86400s       #
#365j=8760h=525600m=31536000s #
###############################
###########################################################################################################################################
###########################################################################################################################################
#SAT-SPHERE-RGB-NAT########################################################################################################################
#Partie détourage auteur jpdipsy forum ubuntu.fr Merci à lui ;)
#Modif et ajout des fonctions dans ce script
###########################################################################################################################################
###########################################################################################################################################
###################http://oiswww.eumetsat.org/IPPS/html/latestglobes/EUMETSAT_MSG_IR108Color_LowResolution.jpg  ###########################
###################http://oiswww.eumetsat.org/IPPS/html/latestglobes/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg###########################
###################https://static.die.net/moon/576.jpg###########################
pat=${HOME}/2_Wunderground/ # destination de l'globe téléchargée

globe=$pat"FD-sat"
msk=$pat"mask.png"


wget -q -O $globe "https://cdn.star.nesdis.noaa.gov/GOES16/ABI/FD/GEOCOLOR/1808x1808.jpg"

rayon=878

largeur=`identify -format "%w" $globe` 
hauteur=`identify -format "%h" $globe`
centre1=`echo $(($largeur / 2))`
centre2=`echo $(($hauteur / 2))`

convert -size "$largeur"x"$hauteur" xc:none -fill blue -draw "translate $centre1,$centre2 circle 0,0 $rayon,0" -alpha extract $msk
convert $globe  $msk  -alpha off -compose CopyOpacity -composite $globe.png
convert $globe.png -resize 530x530\! $globe.png

convert $globe.png -background  DodgerBlue  \( +clone -shadow 150x4+0+0 \) +swap -background  none   -flatten $globe.png

rm $msk $globe
#############################################################################################################################################
#############################################################################################################################################
#############################################################################################################################################

enjoy!
cool

Offline

#2741 2019-09-04 19:12:04

unklar
Member
Registered: 2015-10-31
Posts: 959

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@ragamatrix

Excellent! Thank you, my friend, for your work.  cool
For me the beautiful earth is simply fabulous.

Offline

#2742 2019-09-04 20:39:43

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

morfik wrote:

Just don't push the other branch to the remote repo. smile

Evil, wicked, satanic, brilliant!

fvirgola80 wrote:

Good morning from an old friend .... first of all how are you .. ???
and then ... I've seen great news for the weather forecast ....
To sum up, give me a hand to understand how I should move to make everything accuweather work again? I still use conky vers. 1.9 ... I have to update to conky 1.10 ??
I ask my teachers for help .....

Go to your home folder and open a terminal. Give

git clone https://gitlab.com/teobigusgeekus/1_accuweather.git

and you'll have the script's folder in your home folder.
After you've done this, every time I do an update to the script, just go into the script's folder and do

git pull origin master

and you'll have the latest changes.
That's it actually, git's brilliant.

@ragamatrix
Awesome work my friend, very beautiful!!!


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

#2743 2019-09-04 20:50:21

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@morfik
One last question before I succumb to the dark side (git branches)

Say I have the official script and the branch with my customization.
Then Accuweather changes something on their page and I change the customized script in order for the latter to work.
Can I merge the branch with the master script without merging my customized code, but only the changed lines due to Accuweather's screw up?

Also, if I decide to use this method, can I just delete my local git folder and create a new one using the same address?

Last edited by TeoBigusGeekus (2019-09-04 20:50:53)


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

#2744 2019-09-05 07:48:07

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

unklar wrote:

@ragamatrix

Excellent! Thank you, my friend, for your work.  cool
For me the beautiful earth is simply fabulous.

You're welcome I'm glad that you enjoy it smile yes earth is beautiful and fabulous but terrifying and hostile in the same time...

Offline

#2745 2019-09-05 10:04:34

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 131
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

Say I have the official script and the branch with my customization.
Then Accuweather changes something on their page and I change the customized script in order for the latter to work.
Can I merge the branch with the master script without merging my customized code, but only the changed lines due to Accuweather's screw up?

No, if you merge branches, all the commits from the merged branch will go to the other branch. So in this case, all the commits from teo_version go to master, and it's not what you want. When the site changes, you make a commit in teo_version branch, and import that change to the master branch.

TeoBigusGeekus wrote:

Also, if I decide to use this method, can I just delete my local git folder and create a new one using the same address?

What do you want to do here? smile

Offline

#2746 2019-09-05 13:32:34

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

When you say "...import that change to the master branch" I guess you mean change the master branch manually, or not?

morfik wrote:

What do you want to do here? smile

If I empty the current repository, can I upload the contents of a totally different folder in it?
Or do I have to delete the repository, create a new one and push the new folder in the latter?


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

#2747 2019-09-05 14:37:52

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,667

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

ragamatrix wrote:

conky-goes-sat:
{--{snip}--}
enjoy!
cool

OH I am going to.
Consider it stol---errr--borrowed---um conkynapped and given a good home.

lol  lol  lol   angel


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: sector11 Kernel: 4.9.0-11-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 dm: lightdm Distro: BunsenLabs GNU/Linux 9.6 (Helium)

Offline

#2748 2019-09-05 15:32:11

ector1935
Member
Registered: 2017-05-03
Posts: 169

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Hello teo,
I'm having problems with the weather, it often happens that the conky is seen like this:
https://cdn.scrot.moe/images/2019/09/05 … 00x900.png

After a few minutes all the images and temperature reappear, except for the first temperature change of the weather in the bottom of the conky.
Has anything changed, I have to download new accuweather version?
thank for  help

edit

here when the conky reappears with the weather, as you can see is incomplete

https://scrot.moe/image/xXogy

Last edited by ector1935 (2019-09-05 15:39:30)

Offline

#2749 2019-09-05 15:51:30

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

What's the version you're using ector1935?
There's been a major update to the script, I don't know if you've followed.


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

#2750 2019-09-05 15:58:31

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 131
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

When you say "...import that change to the master branch" I guess you mean change the master branch manually, or not?

See here:
https://stackoverflow.com/questions/247 … to-another

TeoBigusGeekus wrote:

If I empty the current repository, can I upload the contents of a totally different folder in it?
Or do I have to delete the repository, create a new one and push the new folder in the latter?

If you empty the current repository, git will see that the files were deleted and you have to commit that change. But still I don't get what you're trying to do here. Why do you want to empty the repository?

Offline

Board footer

Powered by FluxBB