plympton wrote: 
> for those interested in going the API route, I looked into it back in
> 2013 when there was a new redesign, and it didn't seem too onerous.  It
> looks like I ran into a few problems getting libraries working (JSON
> specifically) on my linux box. Not sure if that was a sandbox issue or a
> squeeze issue - I'm running in a Linux VM on a windows machine since
> it's more stable that way for me.
> 
> The problems (for me) of diving into this are:
> 1. Lack of understanding how the plugin infrastructure works 
> 2. Unsure what the plugin is doing at a block level
> 3. Lack of Perl familiarity, and the general PTSD from previous perl
> experiences
> 
> I guess I have a lot lacking. :-).
> 
> From my memory, it is using an http request to get a url that has some
> parameters filled in from the variables in the config file (zip code
> mostly). I'm not sure if it is parsing with Regular expressions or not,
> but it's pattern matching for variables.  It doesn't fallback to WU if
> something is missing.  I believe it's all wu or all wc data.
> 
> The biggest complication to using the API is you would also have to
> change the config process to add the new api key variable (more work, i
> don't know how to do it), or hard code it in the plugin that has to be
> replaced after installation (pain but easier to do for me :-))
> 
> If someone could fill in some of the details on how it is supposed to be
> working today (there's a chunk of code on line X that does Y) we could
> break down the problem to more manageable pieces.
> 
> With smartphones being ubiquitous, you'd think this was unnecessary, but
> glance able information is so important and useful still!
> 
> -Dan
> PS: last time I looked into this back in 2013, I think we collectively
> summoned Greg with out hopes and desires.  He's a nice guy to maintain
> this old code for us die-hards old timers!
> 
> PPS: historical links.  Wasn't using evernote back in, so don't have any
> notes on when i was trudging through the code.  :-(
> 
> http://forums.slimdevices.com/showthread.php?98304-Plugins-amp-Perl-Modules-how-to-install-(JSON)&p=741092&highlight=
> 
> http://forums.slimdevices.com/showthread.php?14327-Announce-SuperDateTime-Current-Date-Temperature-and-or-Baseball-Screensaver&p=741094&highlight=

I've been looking at similar approach but sadly my skills are very
lacking as well.
I got a free developers key from wunderground and that lets you get
weather data in JSON form. I've also been trying to understand Greg's
code.
It seems doable but don't know how long it would take or how much
collateral damage May be done.
Would also require users to let their own API key since the free ones
limit to 500 queries per day.


Sent from my HTC6525LVW using Tapatalk




------------------------------------------------------------------------
tcutting's Profile: http://forums.slimdevices.com/member.php?userid=17402
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to