Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: malfacine on May 29, 2016, 08:26:55 AM
-
New Plugin Weather
usage inside of plugin.nut
Works os Windows, Linux and OSX
Extract inside the folder plugins....
Thanks for liquid8 for helping me with file-format module...
https://onedrive.live.com/redir?resid=C85434BAA340DA03!2824&authkey=!AEQekLzhTetnL4g&ithint=file%2czip (https://onedrive.live.com/redir?resid=C85434BAA340DA03!2824&authkey=!AEQekLzhTetnL4g&ithint=file%2czip)
-
New Plugin Weather
usage inside of plugin.nut
Works os Windows, Linux and OSX
Extract inside the folder plugins....
Thanks for liquid8 for helping me with file-format module...
https://onedrive.live.com/redir?resid=C85434BAA340DA03!2824&authkey=!AEQekLzhTetnL4g&ithint=file%2czip (https://onedrive.live.com/redir?resid=C85434BAA340DA03!2824&authkey=!AEQekLzhTetnL4g&ithint=file%2czip)
Thank you so much. Could you provide a sample layout to apply the plugin. Thanks
-
//
fe.load_module("file-format");
local xmlSettings = xml.loadFile( FeConfigDirectory + "/plugins/weather/weather_data.xml");
local query = xmlSettings.getChild("query");
local results = query.getChild("results");
local channel = results.getChild("channel");
local item = channel.getChild("item");
local condition = item.getChild("yweather:condition");
fe.add_text(condition.attr["temp"] + "° " + condition.attr["text"], 0, 0, 100, 20 );
example to use
-
//
fe.load_module("file-format");
local xmlSettings = xml.loadFile( FeConfigDirectory + "/plugins/weather/weather_data.xml");
local query = xmlSettings.getChild("query");
local results = query.getChild("results");
local channel = results.getChild("channel");
local item = channel.getChild("item");
local condition = item.getChild("yweather:condition");
fe.add_text(condition.attr["temp"] + "° " + condition.attr["text"], 0, 0, 100, 20 );
example to use
Where to get weather_data.xml file?
-
//
fe.load_module("file-format");
local xmlSettings = xml.loadFile( FeConfigDirectory + "/plugins/weather/weather_data.xml");
local query = xmlSettings.getChild("query");
local results = query.getChild("results");
local channel = results.getChild("channel");
local item = channel.getChild("item");
local condition = item.getChild("yweather:condition");
fe.add_text(condition.attr["temp"] + "° " + condition.attr["text"], 0, 0, 100, 20 );
example to use
Where to get weather_data.xml file?
the plugin generate the data file...
install on plugins path, active plugin and configure with your code city
incorporate code on your layout
-
It works perfectly. Thank you. ;)
How to set text RGB for the weather?
Somehow go see icons for the weather?
(http://images.all-free-download.com/images/graphicthumb/various_weather_icon_vector_set_529166.jpg)
-
It works perfectly. Thank you. ;)
How to set text RGB for the weather?
Somehow go see icons for the weather?
(http://images.all-free-download.com/images/graphicthumb/various_weather_icon_vector_set_529166.jpg)
I am still not working. Could you provide theme's code to me for testing? Thanks :)
-
It works perfectly. Thank you. ;)
How to set text RGB for the weather?
Somehow go see icons for the weather?
(http://images.all-free-download.com/images/graphicthumb/various_weather_icon_vector_set_529166.jpg)
I am still not working. Could you provide theme's code to me for testing? Thanks :)
What is your operating system?
-
Windows 10 x64 :)
-
Weather works in Windows 10, but does not work on my Raspberry Pi Floobs image... >:(
-
I do not test on Linux-like systems, the logic should work because the "wget" is universal in linux ...
I will test it on a virtual machine with linux...
need feedback of users to improve....
-
I am still not working. No anything show on screen after I put the code. Could you provide basic theme with sample code for testing. Thanks. :)
-
Working here (XP) and available on Simulacra layout.
Is it possible to add location?
e.g. Lisbon, 24° Sunny
-
Working here (XP) and available on Simulacra layout.
Is it possible to add location?
e.g. Lisbon, 24° Sunny
xbs, could you upload your Simulacra's theme nut file for me ? Thanks
-
It's on the layout thread.
-
I am still not working. No anything show on screen after I put the code. Could you provide basic theme with sample code for testing. Thanks. :)
look for attchments...
-
Did this one ever get solved/working on a PI?
I tried and it doesn't work.
enabled Weather
Loaded the layout.nut into a new theme.