[SlimDevices: Plugins] Streaming tunes from Google Play Music
I'm wondering if my SB Classic can stream files from Google Play. I have all my music stored there (as well as on my home hard drive) and it would be much easier to pull from G Play via MySB than having to connect to my computer every time. I searched the forums and didn't find a word about Google Play. Bad sign? Thanks, Andrew Omeriah's Profile: http://forums.slimdevices.com/member.php?userid=10330 View this thread: http://forums.slimdevices.com/showthread.php?t=98297 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Streaming tunes from Google Play Music
Bad sign, indeed. Google Play doesn't have n API so there's little chance for anything official. With iPeng's browser you can play single tracks through their web interface but it's tedious and really just a hack for the occasional, single track. pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777 View this thread: http://forums.slimdevices.com/showthread.php?t=98297 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: New versions of erlands plugins
Erland Setting up a meu option Albums by Decade solved the matter. Thanks for your help SlimChances's Profile: http://forums.slimdevices.com/member.php?userid=165 View this thread: http://forums.slimdevices.com/showthread.php?t=49483 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Streaming tunes from Google Play Music
I'd be interested in tis too - but mainly for taking my Radio out of the house. However am aware that any official support is extremely unlikely. JonWill's Profile: http://forums.slimdevices.com/member.php?userid=20259 View this thread: http://forums.slimdevices.com/showthread.php?t=98297 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Streaming tunes from Google Play Music
JonWill, if you want music on-the-go, you can always stream your files from Google Play using the Google Music app on Android or iOS. I suppose I could do this at home also since I have an input for external sources that plays into my home stereo. But it's a pain to have my phone be the conduit. If I have to make a call or get a call, I have to unhook the cable, etc. Not really practical. Silly that Google doesn't enable this with an API. I would expect that lots of people would use this to stream their files to SB, Sonos and lots of other devices. Of course, those manufacturers would have to use the API and build it into their products. Unlikely with SB at least. Omeriah's Profile: http://forums.slimdevices.com/member.php?userid=10330 View this thread: http://forums.slimdevices.com/showthread.php?t=98297 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
Yesterday, SuperDateTime stopped working for me. Looking in the logs, I'm seeing lots of: Code: 13-03-14 13:26:41.0202] Slim::Utils::Misc::msg (1304) Warning: [13:26:41.0200] Use of qw(...) as parentheses is deprecated at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomClockHelper/StyleSettings.pm line 167. [13-03-14 13:26:41.0247] Slim::Utils::Misc::msg (1304) Warning: [13:26:41.0246] Use of qw(...) as parentheses is deprecated at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomClockHelper/StyleSettings.pm line 970. [13-03-14 13:26:41.1151] Slim::Utils::Misc::msg (1304) Warning: [13:26:41.1149] Using a hash as a reference is deprecated at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SuperDateTime/lib/Plugins/SuperDateTime/Plugin.pm line 2183. [13-03-14 13:26:50.4581] Plugins::SuperDateTime::Plugin::gotWeatherToday (2997) Error parsing current/today precip [13-03-14 13:26:50.4597] Plugins::SuperDateTime::Plugin::gotWeatherToday (3017) Error parsing current/today hi/low [13-03-14 13:26:50.4613] Plugins::SuperDateTime::Plugin::gotWeatherToday (3032) Error parsing current/today title [13-03-14 13:26:50.4628] Plugins::SuperDateTime::Plugin::gotWeatherToday (3042) Error parsing today sky conditions [13-03-14 13:26:50.4659] Plugins::SuperDateTime::Plugin::gotWeatherToday (3075) Error parsing today 1 UV index [13-03-14 13:26:50.4675] Plugins::SuperDateTime::Plugin::gotWeatherToday (3096) Error parsing today 1 24hr rain/snow [13-03-14 13:26:50.4689] Plugins::SuperDateTime::Plugin::gotWeatherToday (3106) Error parsing today 1 narrative [13-03-14 13:27:02.4673] Plugins::SuperDateTime::Plugin::doneDrawing (4611) Data refresh completed with errors. Is anyone else experiencing problems? SuperDateTime v5.9.14 LMS v7.7.2 r33893 (Ubuntu 12.04) Squeezebox Classic f/w v137 Juggler's Profile: http://forums.slimdevices.com/member.php?userid=4935 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Streaming tunes from Google Play Music
Well, you don't always have to understand Google. Google+ also still doesn't have an API and its unclear it will ever get one. and that's a service for which I'd say that it depends to 100% on having one pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777 View this thread: http://forums.slimdevices.com/showthread.php?t=98297 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
Juggler wrote: Yesterday, SuperDateTime stopped working for me. Looking in the logs, I'm seeing lots of: Code: 13-03-14 13:26:41.0202] Slim::Utils::Misc::msg (1304) Warning: [13:26:41.0200] Use of qw(...) as parentheses is deprecated at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomClockHelper/StyleSettings.pm line 167. [13-03-14 13:26:41.0247] Slim::Utils::Misc::msg (1304) Warning: [13:26:41.0246] Use of qw(...) as parentheses is deprecated at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomClockHelper/StyleSettings.pm line 970. [13-03-14 13:26:41.1151] Slim::Utils::Misc::msg (1304) Warning: [13:26:41.1149] Using a hash as a reference is deprecated at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SuperDateTime/lib/Plugins/SuperDateTime/Plugin.pm line 2183. [13-03-14 13:26:50.4581] Plugins::SuperDateTime::Plugin::gotWeatherToday (2997) Error parsing current/today precip [13-03-14 13:26:50.4597] Plugins::SuperDateTime::Plugin::gotWeatherToday (3017) Error parsing current/today hi/low [13-03-14 13:26:50.4613] Plugins::SuperDateTime::Plugin::gotWeatherToday (3032) Error parsing current/today title [13-03-14 13:26:50.4628] Plugins::SuperDateTime::Plugin::gotWeatherToday (3042) Error parsing today sky conditions [13-03-14 13:26:50.4659] Plugins::SuperDateTime::Plugin::gotWeatherToday (3075) Error parsing today 1 UV index [13-03-14 13:26:50.4675] Plugins::SuperDateTime::Plugin::gotWeatherToday (3096) Error parsing today 1 24hr rain/snow [13-03-14 13:26:50.4689] Plugins::SuperDateTime::Plugin::gotWeatherToday (3106) Error parsing today 1 narrative [13-03-14 13:27:02.4673] Plugins::SuperDateTime::Plugin::doneDrawing (4611) Data refresh completed with errors. Is anyone else experiencing problems? SuperDateTime v5.9.14 LMS v7.7.2 r33893 (Ubuntu 12.04) Squeezebox Classic f/w v137 Yep, same here. Are you using a Weather Underground site as well as Weather.com? I think perhaps it's time to take Weather.com out of the code or at least have a switch to disable it entirely. Greg - if you're still around, do you have any pointers to where that would be taken care of in your code? I'm OK diving in and looking at it, but don't necessarily have time to go in cold. Thanks! -Dan plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] General check for updates
How do I cause LMS to do a general check for plugin updates? Surely there's a way. I recently checked my Plugins tab, saw I had several updates waiting, selected a few of them, figuring I'd do them a few at a time, and when the first batch were done and LMS restarted, the others had disappeared! That is, although certain plugins, like Trackstat and Spicefly Sugarcube, still have updates waiting, I no longer have an opportunity to install them. I'm not certain I remember which ones have updates, and the ones I do remember, I can't install. I can't see where to go to find or display updates. Any help appreciated. -David dpotts's Profile: http://forums.slimdevices.com/member.php?userid=29782 View this thread: http://forums.slimdevices.com/showthread.php?t=98301 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] General check for updates
dpotts wrote: How do I cause LMS to do a general check for plugin updates? Surely there's a way. I recently checked my Plugins tab, saw I had several updates waiting, selected a few of them, figuring I'd do them a few at a time, and when the first batch were done and LMS restarted, the others had disappeared! That is, although certain plugins, like Trackstat and Spicefly Sugarcube, still have updates waiting, I no longer have an opportunity to install them. I'm not certain I remember which ones have updates, and the ones I do remember, I can't install. I can't see where to go to find or display updates. Any help appreciated. -David Not quite sure how plugin updates work, but I have the Update plugins automatically box checked. When I click on the plugins tab in LMS Settings, if there are updates available I get a popup saying that the server is being restarted, I never have to manually update plugins. +---+ |Filename: Pic02.jpg| |Download: http://forums.slimdevices.com/attachment.php?attachmentid=14605| +---+ kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=98301 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
plympton wrote: Yep, same here. Are you using a Weather Underground site as well as Weather.com? I think perhaps it's time to take Weather.com out of the code or at least have a switch to disable it entirely. Greg - if you're still around, do you have any pointers to where that would be taken care of in your code? I'm OK diving in and looking at it, but don't necessarily have time to go in cold. Scratch that thought - was wondering of a server-side replacement to the SDT parsing code using server-side JQuery would be a viable route to go, but now I see Greg is using TreeBuilder that should be good enough if we just update what it's looking for Something I thought is that it would be hugely useful to archive known-working HTML captures from Weather.com so that when we go to update the parsing code, we have a working example to work off of. It LOOKS like they got rid of all the _tag markers that SDT was searching for. The fix could be as simple as removing _tag search term -- I'm so rusty in Perl it's not funny, so I'm just blindly guessing at this point. More as it develops... Edit: I'm an idiot - _tag is a parameter. Oops. That, and Greg's logs are very nicely detailed on what line is failing and for which reason. This shouldn't be... too... hard... Thanks! -Dan Is it perhaps that the tag class name has changed from wx-details to wx-weather-details? bongo23's Profile: http://forums.slimdevices.com/member.php?userid=11382 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
bongo23 wrote: Is it perhaps that the tag class name has changed from wx-details to wx-weather-details? Yes, I believe so. I'm working through all the errors I'm seeing, and identifying what I think the replacement is and I'll post that here shortly. I'm glad they still have a single-load HTML page and aren't using AJAX to fetch data dynamically - that'd be a bummer. plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
I'm not good with Regular Expressions, and Perl conventions even less so. If someone can piece this together, I'd be grateful: Code: my $outcome_txt = ($tree-look_down( _tag, div, class, wx-details))[0]; if ($outcome_txt) { if ($outcome_txt-as_text =~ m/Chance of \w+:(.*%)W/) { $wetData{-1}{'forecastPrec'} = $1; $wetData{0}{'forecastPrec'} = $1; } else { $status = '-'; $log-warn('Error parsing current/today precip'); } } The HTML it's looking for is: Code: div class=wx-data-part wx-first h6 class=wx-labelPast 24-hr Precip:/h6 div class=wx-data0 in/div /div div class=wx-data-part h6 class=wx-labelChance of span class='wx-firstletter'rain/span/h6 div class=wx-dataspan class=wx-icon wx-raindrop/span60%/div /div div class=wx-data-part h6 class=wx-labelChance of span class='wx-firstletter'rain/span/h6 div class=wx-dataspan class=wx-icon wx-raindrop/span60%/div /div If I interpret this correctly, there is a single value that it's populating into 2 variables (even though the variable is available as 2 distinct values -- weird. Easier?) I think forecastPrec is looking for the % value 60%, and not the description rain. The code looks like it's looking for: Chance of something: ##%more something and puts the ## characters into $1. if so, I'd change the code to be: Hmm.. this is going to be tough - there are MANY div with the class of wx-data-part wx-first as well as wx-data. It looks like look_down is grabbing the first item in the array of results, so if we know WHICH item it should be, then this is easy(-ier). Hopefully that result array is consistent... h... It looks like the forecastPrec is result 3 ([2] in the array). If we capture that, the regular expression could be: (from this site I'm using for testing: http://www.solmetra.com/scripts/regex/index.php) Code: /span(.*?)\/span(.*?)\%\/div/ That returns an array of results, where [2] is the value we want. Whew... plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] General check for updates
kidstypike wrote: Not quite sure how plugin updates work, but I have the Update plugins automatically box checked. When I click on the plugins tab in LMS Settings, if there are updates available I get a popup saying that the server is being restarted, I never have to manually update plugins. Yeah, perhaps I should check the Automatically Update box, though obviously I haven't. I guess I would like to monitor the updates -- though I'm not particularly concerned about problems with them. I just like to know what's going on. Surely there's a way of controlling all this? For instance, if one wanted for some reason to install a previous version of a plugin, is that just simply impossible? Isn't there some way for users to have control over plugin versions? -David dpotts's Profile: http://forums.slimdevices.com/member.php?userid=29782 View this thread: http://forums.slimdevices.com/showthread.php?t=98301 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] General check for updates
dpotts wrote: Surely there's a way of controlling all this? For instance, if one wanted for some reason to install a previous version of a plugin, is that just simply impossible? Isn't there some way for users to have control over plugin versions? I think you could turn off the plugin that gives you the convenient Plugins tab -- I forget the name, but it's something like Download Extensions. Then you would be back in old days of a few years ago, when users (1) downloaded a zip file for a plugin, (2) unzipped it in the correct location on the server, (3) restarted the server, and (4) configured the plugin if needed. Or, you could leave the plugin for the convenient Plugins tab in place, and just overwrite the current version of the plugin with a previous version, and restart the server. You would keep getting reminders that there is a newer version available. aubuti's Profile: http://forums.slimdevices.com/member.php?userid=2074 View this thread: http://forums.slimdevices.com/showthread.php?t=98301 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Alternative Web Interface (beta)
Roland0 wrote: The Preferences icon is in the top-right corner: 14599 Found it - but it only brings up an empty window (?), and after a while the same familiar timeout error message is thrown up on the screen again :-( 14607 I'm stuck in a loop here. Can you pre-set the timeout at least enough to get me going? +---+ |Filename: Capture.JPG | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=14607| +---+ oyvindo's Profile: http://forums.slimdevices.com/member.php?userid=19302 View this thread: http://forums.slimdevices.com/showthread.php?t=98186 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: New versions of erlands plugins
Ran a couple of Album by Decade playlists to give the new menu option a whirl and on the second try the Artwork diappeared. I tried stopping and restarting the server, quick scan and finally a complete rescan before I got things back to normal. I will post if this happens again SlimChances's Profile: http://forums.slimdevices.com/member.php?userid=165 View this thread: http://forums.slimdevices.com/showthread.php?t=49483 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Alternative Web Interface (beta)
JJZolx wrote: For whatever reason, I get only an empty dialog box for Preferences. Please check your browser's javascript console (Tools menu, shiftctrlJ in Chrome) after the application has loaded. It should show something like: Code: prefs loaded app.js:73 applying prefs:store.TrackSearchResults.pageSize=400 Utils.js:62 applying prefs:store.AllAlbums.pageMap=400 Utils.js:62 applying prefs:store.AllAlbums.leadingBufferZone=200 ... Have you tried resetting the preferences? If you reload the application after that, the javascript console should show these lines: Code: no prefs app.js:77 default prefs saved: true app.js:90 Also missing the two rightmost icons at the top-right. Can you pls check if the following 2 urls load correctly: Code: http://yourserver:9000/plugins/LMSnewGUI/html/app.css http://yourserver:9000/plugins/LMSnewGUI/html/images/wrench.png The first one should load some text containing: Code: .x-tool-prefs{ background-image: url(images/wrench.png) !important; } the second an icon Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808 View this thread: http://forums.slimdevices.com/showthread.php?t=98186 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
SDT is broken for me too, although that's probably not news at this point. I tried adding a few nearby wunderground stations into the mix, but no dice. I suspected it's the fields I'm trying to display, but I don't see equivalent wunderground settings for these: High/Low (°F) = %z Precipitation = %x Period Covered (ie Today) = %y Brief Forecast (ie Sunny) = %v Temperature (°F) = %t Except for the last one (%t could be changed to %e) I don't see a way to pull this info from wunderground. Bummer. My Squeeeboxen are holding on by a thread right now. Losing SDT might be the last straw. ajkidle's Profile: http://forums.slimdevices.com/member.php?userid=18929 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
ajkidle wrote: Bummer. My Squeeeboxen are holding on by a thread right now. Losing SDT might be the last straw. Trust me, it'll be working again. I'll refactor the code myself if I have to. I'm still mulling over the idea of setting up a web service that SDT pings and gets a custom response from. My other idea is to use WU values wherever possible if/when weather.com doesn't parse, and the idea of replacing weather.com altogether. One way or the other, it'll work again! plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] General check for updates
aubuti wrote: I think you could turn off the plugin that gives you the convenient Plugins tab -- I forget the name, but it's something like Download Extensions. Then you would be back in old days of a few years ago, when users (1) downloaded a zip file for a plugin, (2) unzipped it in the correct location on the server, (3) restarted the server, and (4) configured the plugin if needed. Or, you could leave the plugin for the convenient Plugins tab in place, and just overwrite the current version of the plugin with a previous version, and restart the server. You would keep getting reminders that there is a newer version available. Thanks for the info. I couldn't find a plugin that seemed to have any such function as supplying the Plugins tab. Perhaps the functionality is now built in to LMS and not a plugin. Fortunately, the plugin I was most concerned to update reappeared as available for update. I suppose if I just wait, the others will too. It still strikes me as odd that we can't control this ourselves through the interface. -David dpotts's Profile: http://forums.slimdevices.com/member.php?userid=29782 View this thread: http://forums.slimdevices.com/showthread.php?t=98301 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] iPeng support thread
Having a problem if any body is able to help. Have 3 squeeze boxes and control them via ipeng. The problem I'm having is whenever I minimise the app to do something else e.g browse or lock when I return to the app I no longer have control or shows no LMS at all. Using a browser to control it no players ever drop or ever even crash same with server. Only way I can get ipeng to refind is by turning wifi on and off. I have preserve connection selected in the options but doesn't seem to make any difference. Have tried with iPad and 2 iPhones all have the same issues. Is only issue I've had with it at all but it's a pretty annoying issue. Technocoma's Profile: http://forums.slimdevices.com/member.php?userid=59305 View this thread: http://forums.slimdevices.com/showthread.php?t=51929 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: YouTube Plugin
Hi all, I'm not sure if anyone is monitoring this thread too much these days, but I seem to be having a problem with the plugin -- an issue that was raised earlier, though the solution wasn't clear to me. I see the plugin fine, I can start a track, I see the video icon and it seems to show that it is playing/streaming the song; however, no music comes out (even at lower resolution setting). In the log, I see: Slim::Networking::IO::Select::__ANON__ (146) Error: Select task failed calling Slim::Networking::Async::HTTP::_http_read_body: Can't call method pluginData on an undefined value at /opt/ssods4/var/home/SqueezeboxServer/Cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 82. Admittedly I'm running an old system: ts209 II pro (armv5tel-linux) SSODS 4.9.1 // SBS 7.5.2 But other than the youtube plugin, everything I need works great (i.e. I'd like to avoid having to try and 'fix' this with an upgrade that may cause larger headaches). From what I've read through here, sbs 7.5 should be adequate. Much appreciate any tips on how to troubleshoot this. Thanks again as always. Long live Slim! dave_p's Profile: http://forums.slimdevices.com/member.php?userid=14856 View this thread: http://forums.slimdevices.com/showthread.php?t=87731 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
I think the redesign is actually making it easier to parse. I realized I had a Perl sandbox available with my Linux server, so I was hacking away a bit. HTML::TreeBuilder is neat. One assumption I am making is that the format is pretty static - I'm sure that's a bad assumption, but I don't have any choice at the moment. Anyway, I was able to get the Precipitation chance out, so the rest shouldn't be too horrible. More tomorrow. Code: use strict; use HTML::TreeBuilder; use Time::Local; use HTML::Entities qw(decode_entities); my %wetData; local $/ = undef; open FILE, myfile or die Couldn't open file: $!; binmode FILE; my $content = FILE; close FILE; print Parsing tree\n; my $tree = HTML::TreeBuilder-new; # empty tree $tree-parse($content); $tree-eof(); # print $tree-as_HTML; my $outcome = ($tree-look_down( _tag, div, class, wx-data-part))[7]; print $outcome-as_text; print $outcome-as_HTML; my $res = ($outcome-look_down( _tag, div, class, wx-data))[0]; print $res-as_text; print $res-as_HTML; if ($outcome) { if ($res-as_text =~ m/(.*%)/) { print Outcome\n; print $1; print \n; $wetData{-1}{'forecastPrec'} = $1; $wetData{0}{'forecastPrec'} = $1; } } I get 60%, and that's a passing grade in my book. :-) plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver
I think long-term, getting a Weather Underground API Key is going to be the way to go. It allows 500 calls / day (plenty for any of us) and 10/minute for free. I read through the Terms of Service, and it doesn't look like SDT would violate it for personal (or even commercial) use. It would require everyone get a key, and it's easy, but perhaps confusing for some people. More info here: http://www.wunderground.com/weather/api/d/docs plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins