Wednesday, March 01, 2017

Conkywx SIX release

Now Conkywx is SIX - Additions and changes:
  • Use conky version 1.10x - though will work with conky 1.9x as well. Note that templates for 1.9x version are included but not supported.
  • If you are using Arch Linux - it is strongly recommended to use conky_cairo and tolua++_5.3 - both in AUR and will connect with lua 5.3 - better and faster than lua 5.1
  • Day and Night movement of the Sun and the Moon
  • Calendar
  • Smooth scroller - lua widget which enables smooth scrolling of text in up, down, left, right and bounce (hits left edge and starts going right and vice versa)
  • GDACS - Global Disaster Alert and Coordination System
  • View latest News from any news service that has a RSS feed
  • Most short comings of this version of conky are handled using lua scripts
  • conky_startup - this handles the startup issues - if your update interval is 5 seconds - conky updates that conky config in 5 * 2 seconds [10 seconds ] - so we update it such that your conky starts like on steroids
  • conky_pre_exec - this handles anything that needs to be done only ONCE - or unless updated manually - same as 1.9x
  • conky_if_running - checks the pidof the required process - same as 1.9x
  • Earth quake/ Seismic has new options to set Alarms that will show up alarms via the conkywx system, the location in question also flashes in the Seismic display
  • Seconday PWS for xml_ID - when the primary stops or has stale data.
  • Some forecast handling changes.
  • Some bug fixes.
  • A New Improved music player - wx media player - plays in the terminal and even though you can see progress in conky - can be used on it's own. Written in bash and lua - very light and can handle huge number of tracks - uses mplayer as backend.
  • Multiple sites supported to get options for current and forecast weather
  • Type conkywx --help in a terminal window after installation to see improved help on a web browser.

NOTE:
  • To start - after conkywx installation - run conkywx --help in a terminal window - you should get conkywx help in a browser - now move your mouse over the USAGE menu and select GETTING STARTED - read this section - this will get you going.
  • As many users are using various conky variants - conky is no longer a dependency but however - conky is still required. Please ensure conky - in what ever form - is in fact installed.
  • To get the best out of conkywx - please install lua support for your conky - this could mean installing conky-all - check your distro.
  • In some cases to have conky restart automatically you may need to give a sleep 30 - delay in your conky-start script
  • Depending on your Perl installation - only Text::Wrap is the external module used - which should be part of Perl core installation. Modules for reading xml and json files are included with conkywx. wxDate is home grown, wxZone and wxStrftime are based on earlier work - improved for conkywx.
  • Many of you may find the text in templates out of spec - before you rip things apart - change the font value in the config section of the conky config file for the template. 
  • If you have questions etc you can get a lot of help at this ubuntu forum. Just go to the last page and post your issue.


    conkywx SIX
    conkywx SIX
    conkywx SIX
    conkywx SIX


    Distro File Location
    Arch linux AUR
    Debian based Ubuntu, Mint etc Debian Build
    RPM based Red Hat, Fedora, CentOS, Suse, etc RPM Build
    Stand Alone version you can run in your home directory Stand Alone Version
    Download fonts for the VinDSL Templates - has the installer in the archive VinDSL Template fonts

    For this stand alone version run the conkywx_fonts_assistant.sh file to install or remove conkywx fonts.

    People - feedback from you would be great ;-)


15 comments:

  1. Hi!

    I've tried the Debian Build. The error message this:

    conky: llua_load: /usr/share/conkywx/lib/conkywx.lua:6: module 'cairo' not found:
    no field package.preload['cairo']
    no file './cairo.lua'
    no file '/usr/local/share/lua/5.1/cairo.lua'
    no file '/usr/local/share/lua/5.1/cairo/init.lua'
    no file '/usr/local/lib/lua/5.1/cairo.lua'
    no file '/usr/local/lib/lua/5.1/cairo/init.lua'
    no file '/usr/share/lua/5.1/cairo.lua'
    no file '/usr/share/lua/5.1/cairo/init.lua'
    no file '/usr/lib/conky/libcairo.so'
    no file './cairo.so'
    no file '/usr/local/lib/lua/5.1/cairo.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cairo.so'
    no file '/usr/lib/lua/5.1/cairo.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    conky: desktop window (1000003) is subwindow of root window (24c)
    conky: window type - override
    conky: drawing to created window (0x4000001)
    conky: drawing to double buffer
    conky: unknown variable '$image'
    conky: unknown variable '$image'
    conky: llua_do_call: function conky_startup execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value

    What's wrong?

    Which files need to change the locations of their local data to show? I can view on the desktop of the text data, but no icons, no maps are not shown.

    Thank you for help!

    ReplyDelete
    Replies
    1. Install conky-all - sudo apt-get install conky-all and then try /usr/share/conkywx/run-conkywx.sh

      Delete
    2. Okay, now I see icons, but no weather maps, and these are terminal messages:

      conky: llua_do_call: function conky_main execution failed: ./lib/daynight.lua:73: attempt to perform arithmetic on local 'sunDeclination' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/daynight.lua:73: attempt to perform arithmetic on local 'sunDeclination' (a nil value)
      Conkywx program execution completed in: 0m0.017s on 18th at 01:28:35
      conky: llua_do_call: function conky_main execution failed: ./lib/daynight.lua:73: attempt to perform arithmetic on local 'sunDeclination' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/showcond.lua:420: attempt to perform arithmetic on field 'lwx' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:175: invalid value (nil) at index 2 in table for 'concat'
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:186: attempt to perform arithmetic on global 'hval2' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/daynight.lua:73: attempt to perform arithmetic on local 'sunDeclination' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/anemometer.lua:94: attempt to perform arithmetic on local 'ws' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/showcond.lua:420: attempt to perform arithmetic on field 'lwx' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:175: invalid value (nil) at index 2 in table for 'concat'
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:186: attempt to perform arithmetic on global 'hval2' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/anemometer.lua:94: attempt to perform arithmetic on local 'ws' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/showcond.lua:420: attempt to perform arithmetic on field 'lwx' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:175: invalid value (nil) at index 2 in table for 'concat'
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:186: attempt to perform arithmetic on global 'hval2' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/anemometer.lua:94: attempt to perform arithmetic on local 'ws' (a nil value)
      Conkywx program execution completed in: 0m0.011s on 18th at 01:28:39
      conky: llua_do_call: function conky_main execution failed: ./lib/showcond.lua:420: attempt to perform arithmetic on field 'lwx' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:175: invalid value (nil) at index 2 in table for 'concat'
      conky: llua_do_call: function conky_main execution failed: ./lib/vumeter.lua:186: attempt to perform arithmetic on global 'hval2' (a nil value)
      conky: llua_do_call: function conky_main execution failed: ./lib/anemometer.lua:94: attempt to perform arithmetic on local 'ws' (a nil value)
      Conkywx program execution completed in: 0m0.013s on 18th at 01:28:45

      etc, etc.

      Delete
    3. you may want to refer to this article

      https://help.ubuntu.com/community/SettingUpConky

      it will work for distros based on ubuntu and or debian type for other things you may require.

      Delete
    4. which distro are you using and please check if lua5.1 is installed???

      lua -v

      Delete
    5. Linux Mint Xfce 64bit (latest) & Lua5.2

      Delete
    6. After a full install, no /usr/local/share/lua directory found.

      Error messages:

      no field package.preload['luafunc']
      no file './luafunc.lua'
      no file '/usr/local/share/lua/5.1/luafunc.lua'
      no file '/usr/local/share/lua/5.1/luafunc/init.lua'
      no file '/usr/local/lib/lua/5.1/luafunc.lua'
      no file '/usr/local/lib/lua/5.1/luafunc/init.lua'
      no file '/usr/share/lua/5.1/luafunc.lua'
      no file '/usr/share/lua/5.1/luafunc/init.lua'
      no file './lib/luafunc.lua'
      no file '/usr/lib/conky/libluafunc.so'
      no file './luafunc.so'
      no file '/usr/local/lib/lua/5.1/luafunc.so'
      no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luafunc.so'
      no file '/usr/lib/lua/5.1/luafunc.so'
      no file '/usr/local/lib/lua/5.1/loadall.so

      Delete
  2. Comma/dot (decimal separation) caused these errors. The display resolution is the biggest problem with examples.

    ReplyDelete
    Replies
    1. Can you please post your issue on https://ubuntuforums.org/showthread.php?t=1771033

      There are people there who will assist you as I am out of town at the moment.

      cheers

      Delete
  3. Hi Param,
    I'm enjoying your weather conky very much, though it's a lot more effort than I like. My only programming experience was a single course in basica about thirty years ago. Modifying your code has been a bit of a struggle. Here's a shot of my desktop (I'm running Kubuntu 16.04):
    [code]http://i.imgur.com/7zWyuCZ.jpg[/code]

    As you can see, this is the short-conky, and I have made a few mods, but there are some other changes I'd like to make that seem to be over my head (lua might as well be Coptic to me). I don't wish to over-burden you, but if you could help I will appreciate it.

    First, I would dearly like to change the wind directional arrow so that it points into the wind. It must be buried somewhere in the lua code, so I can't find it, or more likely, don't recognize it.
    Second, I would like to be able to put a background behind the (I assume) lua-generated anemometer. As you can see, I managed to place it, size it, and change the color, but I can't manage to place a background under it.
    Third, how do I get rid of that obnoxious ! preceding the Present Conditions text?
    (I just noticed the ! disappeared - does it have a purpose - indicate something I'm not aware of?)
    Fourth, can I, without screwing everything else up, move the moon's 'percent showing' number and indicator off of the moon's disk? It's a small thing, I know, but the moon is like a murti to me, and I find it distracting to have the number there.
    Finally (did I really say finally?), how can I reduce the number of days showing in the forecast at the bottom to five (which I find is at about the limit of accuracy anyway)? It's a bit crowded, and hard for my aging eyes to discern one temp. from another.[Hold off on this one - I think I should try reducing the font size a little first and see how it is].
    Hah! I knew there was something else! How can I make the arrow on the anemometer thinner or perhaps even match the one in the directional indicator (thin, red, with an inverted crescent on the tail and a crossbar near the point - nice arrow!)
    Anyway, if this is too much work, just help with what is easiest and leave the rest. Thanks very much!
    Chris

    ReplyDelete
    Replies
    1. Hey Chris - thanks for you message.

      Please refer to conkywx --help in a terminal window - you should see the conkywx help in your browser.

      I do not expect you to touch any of the code - yes if you are up to it - the world is your play ground.

      Each lua widget has a set of options which can be modified.

      In the help you will see the answers you seek.

      Have a look in the ~/.config/conkywx/examples600 or in the /usr/share/conkywx/examples folder look at the files ending with template - in your case short-image-template.

      You can also post your questions on the ubuntu forum at https://ubuntuforums.org/showthread.php?t=1771033

      People who have helped in testing conkywx over the years will also be there to assist you.

      Giving detailed response here becomes a bit much as we cannot highlight code etc etc

      Delete
    2. Thanks Param!

      Chris

      Delete
  4. ver 6 is great. can't wait for ver.7

    ReplyDelete
    Replies
    1. Hey Jeff
      Many thanks for the kind words.
      Regarding your other query - send me a message on my email and we can perhaps find a way forward.
      man conkywx in a terminal window will show you my email ID.
      cheers

      Delete