Announcement

Collapse
No announcement yet.

Announce: SuperDateTime - Current Date/Temperature and/or Baseball Screensaver

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hi -

    I just upgraded to SC7 and correspondingly upgraded my SuperDateTime. Now it's not working, and my log says:

    [17:40:44.5366] Slim:isplay:isplay::curLines (468) Error: bad lines function: Can't locate object method "prefGet" via package "Slim::Player::Squeezebox2" at /usr/share/slimserver/Plugins/SuperDateTime/Plugin.pm line 3934.

    Comment


      Announce: SuperDateTime - CurrentDate/Temperature and/or Baseball Screensaver

      On 9-Dec-07, at 2:44 PM, eater wrote:

      >
      > Hi -
      >
      > I just upgraded to SC7 and correspondingly upgraded my SuperDateTime.
      > Now it's not working, and my log says:
      >
      > [17:40:44.5366] Slim:isplay:isplay::curLines (468) Error: bad
      > lines
      > function: Can't locate object method "prefGet" via package
      > "Slim::Player::Squeezebox2" at
      > /usr/share/slimserver/Plugins/SuperDateTime/Plugin.pm line 3934.
      >

      Is this a 6.5 version of the SuperDateTime plugin?
      You'll need to have updates specifically written for 7.0
      -kdf

      Comment


        Is this a 6.5 version of the SuperDateTime plugin?
        You'll need to have updates specifically written for 7.0
        It's SuperDateTime 5.5.0, which the developer's site says is designed for SC 7.0.

        Comment


          Very odd. prefGet was removed back in June (change 12164). The Plugin seems to be dated oct 14 and does still have prefGet. This won't work with current builds, but I'm surprised it was released so recently with this old code. I guess most users haven't been using the player interface for the plugin.
          -kdf

          Comment


            Does anyone else out there have trouble with the temperature not updating? I had this problem when I ran slimserver on linux, but I've switched over to a mac and I'm still having this problem. If I restart slimserver, it will work fine for a while, but eventually it will stick with a temperature that I know is not accurate and it will stay that way until I restart slimserver again.

            Any suggestions?

            Thanks!

            Comment


              I have created a plugin that works with SuperDateTime. I used the OceanTides plugin, as suggested, for my base and it is working, but I am not sure what each paramter in the addDisplayItem function does. Can you provide some documentation for the public interface?

              Thanks

              Comment


                Originally posted by kdf View Post
                Very odd. prefGet was removed back in June (change 12164). The Plugin seems to be dated oct 14 and does still have prefGet. This won't work with current builds, but I'm surprised it was released so recently with this old code. I guess most users haven't been using the player interface for the plugin.
                -kdf
                Aiee! I use this plugin as my default screen saver, and while it worked with older 7 builds (Octoberish), it's dead using today's. Sigh. I'll roll back until CubsFan does an update, I guess.

                Comment


                  Originally posted by kdf View Post
                  Very odd. prefGet was removed back in June (change 12164). The Plugin seems to be dated oct 14 and does still have prefGet. This won't work with current builds, but I'm surprised it was released so recently with this old code. I guess most users haven't been using the player interface for the plugin.
                  -kdf
                  Oops... 5000 lines of code it's hard to catch everything

                  I'm surprised no one has caught this... but like you said most people done use the remote interface. I fixed it locally and will post an updated version once I look at some other bugs I've been meaning to fix. Might add some Jive stuff too...

                  -Greg

                  Comment


                    Originally posted by ZeddZull View Post
                    I have created a plugin that works with SuperDateTime. I used the OceanTides plugin, as suggested, for my base and it is working, but I am not sure what each paramter in the addDisplayItem function does. Can you provide some documentation for the public interface?

                    Thanks
                    Good to see someones looking at the external interface. I created that so long ago I can't even remember myself.

                    First parameter is what module is adding the display item. So you'd use a unique name for your plugin.

                    The next two are the top and bottom display text lines.

                    Next is how long the item is displayed with each pass... ie 5 seconds...

                    Next is an expires time value. This is used in the processExpired sub (see below).

                    Finally is the time the value was added. This is used in the saveCycles sub (see below).

                    The last two arguments should be optional and are only utilized if your plugin makes use of the saveCycles sub.

                    So if your plugin registers with SuperDateTime then superdatetime will call your plugin whenever it does it data refresh.

                    When your plugin is called it can add new display items with the addDisplayItem function. It can also call the saveCycles function. The saveCycles function will retain previous display items that your plugin added. It's arguments determine which display items are retained (either all or based on time they were added). The processExpired function compares the expiration time specified when a display item was added with addDisplayItem with the current time. Any items that have not yet expired are saved. Any previously added display items not saved by saveCycles or processExpired are wiped out with the data refresh.

                    saveCycles takes 3 arguments.

                    The first is the plugin name that you specified when you added an item with the addDisplayItem function. This is required.

                    The next is a time value for comparison. This is optional.

                    The final value is either 'b' or 'a'. For before or after. If specified saveCycle with only save cycles that have a time added before/or after the time comparison value. This is optional.

                    The processExpired sub just takes a single argument. Which is the name that you specified when you added an item with the addDisplayItem function.

                    What's your plugin do?

                    Hopefully this all made sense, let me know if you need any clarification.

                    Thanks
                    -Greg

                    Comment


                      New beta: SuperDateTime goes Jive!

                      I've gone ahead and posted a new SC7 beta that now has initial Jive support. Right now you can only view weather info, but I plan to expand it to include sports, stocks, etc. Please let me know what you think.

                      I also fixed the prefget bug in the lines function. I think there's still one more location to fix, but that one I have to do some additional checking on. I also fixed the parsing bug that was preventing the wind speed from updating.



                      -Greg

                      Comment


                        Greg,

                        Noticed that College Football conference selection will not "stick" - have tried different conferences and All Div-1A but after applying always reverts to None??

                        Thanks!

                        Comment


                          JewishTimes plugin

                          What's your plugin do?
                          Thanks for the explanation of the interface. It would be really useful if you added this in comments or pod form in the code.

                          My plugin retrieves key information for Jews who observe Shabbat and Holidays, such as candle lighting times. As soon as I polish the interface and packaging a little more, I will post it.

                          Thanks again for the help.

                          Comment


                            Originally posted by atlslim View Post
                            Greg,

                            Noticed that College Football conference selection will not "stick" - have tried different conferences and All Div-1A but after applying always reverts to None??

                            Thanks!
                            You found a bug I'm amazed with the plugin download volume that no one has reported this yet. Looks like I had a similar bug impacting certain combinations of NBA teams. I've posted another version for today with a "b" appended to the file name that fixes both issues. You may have to hit your browsers refresh button for it to appear.

                            Thanks for reporting this.
                            -Greg

                            Comment


                              Originally posted by ZeddZull View Post
                              Thanks for the explanation of the interface. It would be really useful if you added this in comments or pod form in the code.

                              My plugin retrieves key information for Jews who observe Shabbat and Holidays, such as candle lighting times. As soon as I polish the interface and packaging a little more, I will post it.

                              Thanks again for the help.
                              Sounds good. I was hoping more people would tap in. You can add new functionality quite quickly and easily. I used to have a nasty Chicago commute to work each day and with the API I created a Chicago traffic plugin in about 15minutes.

                              I should update the code or include an interface review txt file. Guess I'm just following SqueezeCenter documentation standards... which equates to little or none!

                              -Greg

                              Comment


                                12/22/07 SC7 build--incomplete?

                                I got the zip file for the 12/22 5.5.0 build for SC7, and all that is in it is a few gif files and some html. It looks like it's missing a bunch of stuff, like the Perl code.
                                --Mike
                                http://last.fm/user/mrfantasy

                                Comment

                                Working...
                                X