kit-oz on DeviantArthttps://www.deviantart.com/kit-oz/art/Conky-Wunder-Weather-280481201kit-oz

Deviation Actions

kit-oz's avatar

Conky Wunder Weather

By
Published:
3.4K Views

Description

Today most of the ways the output forecast in conky using this way
conky_parse ('$ {exec ...}')
I can not say that this method is easiest, beautiful and fast.

So I decided to make a request the weather forecast by lua
In the end we got a simplest function that downloads forecast and converts it into the lua table. Continued use of this table is limited only by your imagination!

This is just an example to show the retrieve data from the conkyrc, which I used last time

Anover example of the use with cairo can be found here [link]

Warning!
For debugging and editing, I recommend manually download json file, specify in the wu_json.lua path to it and write in conkyrc
lua_draw_hook_pre get_weather dbg
Otherwise you can quick exceed the limit calls to the server
© 2012 - 2024 kit-oz
Comments4
Join the community to add your comment. Already a deviant? Log In
Flo06's avatar
Very nice, maybe a port for Rainmeter ? ;)