You are not logged in.
However mrpeachys v9000 script still runs fine for me (C v1.9)
2018-06-26_174503_Scrot11.th.jpg
Hello my friend
It's not working for me.
These are my details:
v9000.lua
...
--enter username in quotes like this username = "yourname"
local username = "unklar"
package.path = '/home/'..username..'/.v9000_config.lua'
--**************************************************************************************************
--**************************************************************************************************
require '.v9000_config'
--INITIALIZE SETTINGS-- need only be run once
get=1
run=1
general_settings,translation_tables,translate=weather_settings()
--GET DAILY WEATHER FUNCTION
function getdaily(l,u)
if u=="F" then
web="http://www.intellicast.com/Local/Forecast.aspx?unit=F&location="..l
elseif u=="C" then
web="http://www.intellicast.com/Local/Forecast.aspx?unit=C&location=GMXX3855"..l
end
local f=io.popen("curl --max-time 60 '"..web.."' | sed 's/%//g'")
local allweatherdata=f:read("*a")
f:close()
...
[unklar@localhost ~]$ conky -c ~/v9000/conky_weather &
[1] 8594
[unklar@localhost ~]$ Conky: forked to background, pid is 8597
Conky: desktop window (260011f) is subwindow of root window (96)
Conky: window type - normal
Conky: drawing to created window (0x4e00002)
Conky: drawing to double buffer
gathering data with curl. Attempt 1 of 3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
gathering data with curl. Attempt 2 of 3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
gathering data with curl. Attempt 3 of 3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
unable to gather data, check connection and try again
unable to gather data, check connection and try again
unable to gather data, check connection and try again
unable to gather data, check connection and try again
unable to gather data, check connection and try again
^C
[1]+ Fertig conky -c ~/v9000/conky_weather
it has died 8o
Offline
What is your location again?
He is in Horgen, Switzerland
Offline
TeoBigusGeekus wrote:What is your location again?
He is in Horgen, Switzerland
Yes I am
Offline
I just tested the script for Horgen (.conkyrc4) and it seems OK.
The update time not changing is not that abnormal if there hasn't been any change in your location's forecast since yesterday night.
As for the horgen.json files, I don't get them at all.
Are you sure you're using the correct address?
address="http://api.wunderground.com/api/d8585d80376a429e/conditions/forecast10day/astronomy/hourly/satellite/q/ch/horgen.json"
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
not exactly:
mine:http://api.wunderground.com/api/d8585d8 … orgen.json
yours:
http://api.wunderground.com/api/d8585d8 … orgen.json
I test with yours few minutes and say if there are changes
Differences:
Switzerland
ch
Thanks for the updates explanations, I've learned something
Last edited by ragamatrix (2018-06-29 13:35:10)
Offline
I tested it with your address and it works perfectly again.
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
2 updates with your address and no more horgen.json files in my home folder, ?? Thank you and sorry
Offline
Nevermind, but your address works as well.
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
Hello,
modify a little and add hours in conkyaccuweather_font:
enjoy:
conkyrc:
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',
own_window_colour = 'brown',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- fiddle with window
use_spacer = 'right',
use_xft = true,
-- Update interval in seconds
update_interval = 3.0,
-- Minimum size of text area
minimum_width = 280, minimum_height = 500,
maximum_width = 230,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Open Sans:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_inner_margin = 9,
border_outer_margin = 0,
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 30,
gap_y = 80,
lua_load = '~/.conky/script/draw_bg.lua',
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.50} \
${color 8e8e8e}Météo ${stippled_hr 1}$color${execi 600 bash $HOME/1_accuweather/1_accuweather -f}
${font conkyweather:size=40}${execi 600 sed -n '22p' ~/1_accuweather/curr_cond}${font}${goto 75}${voffset -40}CURRENTLY: ${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°
${goto 75}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|fold -w30}
${voffset 20}${goto 12}${execi 600 echo `date --date "2 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 58}${execi 600 echo `date --date "4 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 105}${execi 600 echo `date --date "6 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 150}${execi 600 echo `date --date "8 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 196}${execi 600 echo `date --date "10 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}
${goto 12}${font conkyweather:size=25}${execi 600 sed -n '145p' ~/1_accuweather/hourly1}\
${goto 58}${font conkyweather:size=25}${execi 600 sed -n '147p' ~/1_accuweather/hourly1}\
${voffset -1}${goto 105}${font conkyweather:size=25}${execi 600 sed -n '149p' ~/1_accuweather/hourly1}\
${goto 150}${font conkyweather:size=25}${execi 600 sed -n '151p' ~/1_accuweather/hourly1}\
${goto 196}${voffset -5}${font conkyweather:size=25}${execi 600 sed -n '145p' ~/1_accuweather/hourly2}${font}
${color8}${goto 17}${execi 600 sed -n '08p' $HOME/1_accuweather/first_days}°\
${goto 63}${execi 600 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 110}${execi 600 sed -n '32p' $HOME/1_accuweather/hourly1}°\
${goto 155}${execi 600 sed -n '34p' $HOME/1_accuweather/hourly1}°\
${goto 201}${execi 600 sed -n '36p' $HOME/1_accuweather/hourly2}°
${color 8e8e8e}Tendance ${stippled_hr 1}$color
${font conkyweather:size=40}${execi 600 sed -n '26p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 600 echo `date --date "0 day" +%A|sed -e 's/\(.\{1\}\)/\U\1/'`}: ${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|fold -w30}
${color 8e8e8e}Prévisions ${stippled_hr 1}$color
${font conkyweather:size=40}${execi 600 sed -n '27p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 600 echo `date --date "1 day" +%A|sed -e 's/\(.\{1\}\)/\U\1/'`}: ${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '28p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 600 echo `date --date "2 day" +%A|sed -e 's/\(.\{1\}\)/\U\1/'`}: ${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '29p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 600 echo `date --date "3 day" +%A|sed -e 's/\(.\{1\}\)/\U\1/'`}: ${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|fold -w30}
]];
Last edited by ragamatrix (2018-07-06 10:30:58)
Offline
@raga, thank you for the idea
you forgot the -h
and recently I learned that the date calls can also be simplified
${execi 3600 date --date='4 hour' '+%H.%M'}\
${execi 3600 date --date='1 day' '+%A %d'}
conky.text = [[
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.50} \
${color 8e8e8e}Météo ${stippled_hr 1}$color${execi 600 bash $HOME/1_accuweather/1_accuweather -f -h}
${font conkyweather:size=40}${execi 600 sed -n '22p' ~/1_accuweather/curr_cond}${font}${goto 75}${voffset -40}CURRENTLY: ${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°
${goto 75}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|fold -w30}
${voffset 20}${goto 12}${execi 3600 date --date='2 hour' '+%H.%M'}\
${goto 58}${execi 3600 date --date='4 hour' '+%H.%M'}\
${goto 105}${execi 3600 date --date='6 hour' '+%H.%M'}\
${goto 150}${execi 3600 date --date='8 hour' '+%H.%M'}\
${goto 196}${execi 3600 date --date='10 hour' '+%H.%M'}
${goto 12}${font conkyweather:size=25}${execi 600 sed -n '145p' ~/1_accuweather/hourly1}\
${goto 58}${font conkyweather:size=25}${execi 600 sed -n '147p' ~/1_accuweather/hourly1}\
${voffset -1}${goto 105}${font conkyweather:size=25}${execi 600 sed -n '149p' ~/1_accuweather/hourly1}\
${goto 150}${font conkyweather:size=25}${execi 600 sed -n '151p' ~/1_accuweather/hourly1}\
${goto 196}${font conkyweather:size=25}${execi 600 sed -n '145p' ~/1_accuweather/hourly2}${font}
${color8}${goto 17}${execi 600 sed -n '08p' $HOME/1_accuweather/first_days}°\
${goto 63}${execi 600 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 110}${execi 600 sed -n '32p' $HOME/1_accuweather/hourly1}°\
${goto 155}${execi 600 sed -n '34p' $HOME/1_accuweather/hourly1}°\
${goto 201}${execi 600 sed -n '36p' $HOME/1_accuweather/hourly2}°
${color 8e8e8e}Tendance ${stippled_hr 1}$color
${font conkyweather:size=40}${execi 600 sed -n '26p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 3600 date --date='0 day' '+%A %d'}:${alignr}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|fold -w30}
${color 8e8e8e}Prévisions ${stippled_hr 1}$color
${font conkyweather:size=40}${execi 600 sed -n '27p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 3600 date --date='1 day' '+%A %d'}:${alignr}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '28p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 3600 date --date='2 day' '+%A %d'}:${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '29p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execi 3600 date --date='3 day' '+%A %d'}:${alignr}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|fold -w30}
]];
Last edited by unklar (2018-07-06 14:23:21)
Offline
Thank you unklar alles klaar (I know it's easy...) I'll try it as soon as möglich merci et bonne soirée
Offline
Very nice one ragamatrix, clean and informative.
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
Hi all,
I wanted to share with the forum a Conky configuration that was inspired by TeoBigusGeekus' Accuweather scripts. I've written scripts in Python to scrape the data from Accuweather and Moongiant, and I've thrown in some history trivia as well. The code is available on Github, if anyone is interested.
https://cdn.scrot.moe/images/2018/07/09/conky_weather.th.png
Thanks to Sector11 and TeoBigusGeekus for sharing their code, which were very helpful to me when I was creating my scripts.
Last edited by trescopas (2018-07-09 02:13:26)
Offline
Brilliant work trescopas, thanks for sharing!
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
@trescopas Thank you for this work, unfortunately I'm not able to make it work...
errors:
conky -c /home/raphix/.conky/conkyscraps/conky_weather.luaconky: Bad arguments: ' ' and ' 50'
conky: compare failed for expression ' < 50'
conky: Bad arguments: ' ' and ' 50'
conky: compare failed for expression ' >= 50'
conky: Bad arguments: ' ' and '70'
conky: compare failed for expression ' <70'
conky: Bad arguments: ' ' and ' 70'
conky: compare failed for expression ' >= 70'
conky: Bad arguments: ' ' and '90'
conky: compare failed for expression ' <90'
conky: Bad arguments: ' ' and ' 90'
conky: compare failed for expression ' >= 90'
killall conky
10:26 raphix > sed: impossible de lire /home/raphix/.conky/conkyscraps/wikipedia/wikipedia_today_scrape.py/history: N'est pas un dossier
sed: impossible de lire /home/raphix/.conky/conkyscraps/wikipedia/wikipedia_today_scrape.py/history: N'est pas un dossier
sed: impossible de lire /home/raphix/.conky/conkyscraps/wikipedia/wikipedia_today_scrape.py/history: N'est pas un dossier
sed: impossible de lire /home/raphix/.conky/conkyscraps/wikipedia/wikipedia_today_scrape.py/history: N'est pas un dossier
sed: impossible de lire /home/raphix/.conky/conkyscraps/wikipedia/wikipedia_today_scrape.py/history: N'est pas un dossier
sed: impossible de lire /home/raphix/.conky/conkyscraps/wikipedia/wikipedia_today_scrape.py/history: N'est pas un dossier
conky: Bad arguments: ' ' and ' 50'
conky: compare failed for expression ' < 50'
conky: Bad arguments: ' ' and ' 50'
conky: compare failed for expression ' >= 50'
conky: Bad arguments: ' ' and '70'
conky: compare failed for expression ' <70'
conky: Bad arguments: ' ' and ' 70'
conky: compare failed for expression ' >= 70'
conky: Bad arguments: ' ' and '90'
conky: compare failed for expression ' <90'
conky: Bad arguments: ' ' and ' 90'
conky: compare failed for expression ' >= 90'
conky: received SIGINT or SIGTERM to terminate. bye!
Is it possible to have metric info?
@TeoBigusGeekus: It was a pleasure to share it, glad that you like it.
Last edited by ragamatrix (2018-07-10 08:35:42)
Offline
@ragamatrix Thanks for trying out the script, and I'm sorry it isn't working out of the box. I should have placed better documentation! I believe that you need to go into conky_weather.lua and modify the template variables. In your case, this means, in line 67-68:
template1 = '/home/raphix/.conky/conkyscraps/weather/',
template2 = '/home/raphix/.conky/conkyscraps/wikipedia/',
I think this should fix it.
I'm happy to set up a version that reads metric data. I see that you speak French - I think having history from the French Wikipedia would be feasible too! I'll tinker with it and push changes to the repo.
Offline
@trescopas Thanks a lot for your great work. I'm now abble to enjoy it. It's a very clever conky Waiting for a french history links easier to unterstand for french guys
Offline
He all
I use Weather Underground API for my conky-weather, and I see this notification : https://apicommunity.wunderground.com/w … ground-api
The wunderground api stop the 12/31/2018.
I have 4 months left to find another one.
Offline
Thanks @chepioq
They already did that with intellicast.com and it was only a matter of time,
until they also apply their "boundless friendliness" to WU.
I haven't believed those lying bags for a long time!
With that mrpeachy's WUN dies with me, which I very much regret and it remains only Teo's accuweather. ]:D
Then you can be curious how long They resist the "friendliness".
Offline
Just keep using the latest script; we'll see what'll happen after 31/12/18
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