Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 27 FirstFirst 123412 ... LastLast
Results 11 to 20 of 264
  1. #11
    Senior Member
    Join Date
    Dec 2009
    Posts
    137
    Quote Originally Posted by bklaas View Post
    hi Marc-

    I'm happy to get your input on alarm fixes. The first thing I'd like to do is move this thread to the developers forum. Let me see about doing that first and then we'll continue the conversation.

    cheers,
    #!/ben
    Ok, I see the thread has been moved. Makes sense...

    Do you want me to send comments to you here or would you rather use some other means of communication?

    Separately, when you guys do applet work what is your recommended work flow paradigm? Do you use the lua compiler to verify syntactical correctness of the applet before then testing with SqueezePlay and then download to the actual hardware? If so, do you have a recommended development environment setup? I'd just like to use the most streamlined method without struggling against the current to start...

    Regards,
    Marc
    Last edited by Marc; 2009-12-21 at 13:26. Reason: spelling

  2. #12
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    Squeezeplay can be compiled for the desktop and development is much more rapid there. If the problem at hand can be tested on the desktop, that is always my first choice. I do my development on OS X, but Linux should work as well (though I'm pretty sure there's currently a problem with Linux builds and audio output). There are wiki pages that cover much of the basics:

    http://wiki.slimdevices.com/index.ph...lay_on_Mac_OSX

    http://wiki.slimdevices.com/index.ph...ingLinuxBuilds

    I do not recommend wading through the sticky morass that is creating a Windows build environment.

    So far, I'm finding the necessary alarm work to be a mix of desktop and testing on the hardware. When I need to test on the hardware I typically ssh the lua file(s) there and restart squeezeplay

    e.g.,
    scp AlarmSnoozeApplet.lua root@192.168.?.?:/usr/share/jive/applets/AlarmSnooze/.

    It's invaluable to restart squeezeplay on the hardware without rebooting. I issue these commands to do that:
    /etc/init.d/squeezeplay stopwdog && /etc/init.d/squeezeplay restart

    btw, I have several tiny shell scripts that I upload to save myself some effort. Here are a few of them:

    # cat /etc/bk/restartJive
    Code:
    #!/bin/sh
    
    /etc/init.d/squeezeplay stopwdog && /etc/init.d/squeezeplay restart
    # cat /etc/bk/vlm
    Code:
    #!/bin/sh
    tail -f /var/log/messages &
    # cat /etc/bk/gvlm
    Code:
    #!/bin/sh
    
    grep $1 /var/log/messages
    # cat /etc/bk/svlm
    Code:
    #!/bin/sh
    
    killall tail
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  3. #13
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    FYI, more checkins on AlarmSnooze today. You should update your subversion checkout.

    cheers,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  4. #14
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,221
    Restarting squeezeplay without rebooting ? What a gem !

    I took the freedom to create a new chapter 'Development best practices' on the wiki http://wiki.slimdevices.com/index.ph...veloping_Guide
    Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
    Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
    Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
    Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet

  5. #15
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    Quote Originally Posted by bluegaspode View Post
    Restarting squeezeplay without rebooting ? What a gem !

    I took the freedom to create a new chapter 'Development best practices' on the wiki http://wiki.slimdevices.com/index.ph...veloping_Guide
    Thanks for setting that up! I added significantly to it this morning, particularly in some tips and tricks for running a desktop development environment.

    http://wiki.slimdevices.com/index.ph...best_practices

    cheers,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  6. #16
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,221
    Do I see this right that the 'LUA_PATH' variable can be used to change the path where LUA scripts are searched ?

    So that I can take a prebuilt SqueezePlay but can configure it to use the LUA sources from SVN ?
    Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
    Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
    Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
    Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet

  7. #17
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    Quote Originally Posted by bluegaspode View Post
    Do I see this right that the 'LUA_PATH' variable can be used to change the path where LUA scripts are searched ?

    So that I can take a prebuilt SqueezePlay but can configure it to use the LUA sources from SVN ?
    Yes, that's exactly what I'm saying.

    Since you are asking, what do you mean by "prebuilt Squeezeplay" (i.e, one that you've built or one that you've downloaded from us), and what OS you are trying this on?

    cheers,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  8. #18
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,221
    Quote Originally Posted by bklaas View Post
    Since you are asking, what do you mean by "prebuilt Squeezeplay" (i.e, one that you've built or one that you've downloaded from us), and what OS you are trying this on?

    cheers,
    #!/ben
    Yeah I meant the downloadable one. I'm working on windows vista.
    I'm using Eclipse IDE and some Beta-LUA plugin to have some (very) basic code highlighting and syntax checking.
    As in Eclipse you can have different launch-configurations I can also easily switch between starting 7.3 and 7.4 squeezeplay.
    Since now I unfortunately had to have two copies of my applets, now I'll put them into a separate folder and can still easily check if there are compatible with 7.3 and 7.4.
    Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
    Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
    Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
    Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet

  9. #19
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    Quote Originally Posted by bluegaspode View Post
    Yeah I meant the downloadable one. I'm working on windows vista.
    I'm using Eclipse IDE and some Beta-LUA plugin to have some (very) basic code highlighting and syntax checking.
    As in Eclipse you can have different launch-configurations I can also easily switch between starting 7.3 and 7.4 squeezeplay.
    Since now I unfortunately had to have two copies of my applets, now I'll put them into a separate folder and can still easily check if there are compatible with 7.3 and 7.4.
    Sorry, I'm not going to be of much service helping you with that environment. My typical advice to someone on Windows wanting to work on Squeezeplay would be to install Linux in a VM By all means try manipulating LUA_PATH in the Vista/Eclipse environment, but no promises as to whether it will work.

    cheers,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  10. #20
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    An FYI, I've made several more checkins on AlarmSnoozeApplet, as well as a change to jive/slim/Player.lua. Keep your checkout updated if you are trying to stay in sync.

    I'm trying to get a QA qualification test of the newest radio firmware for both 7.4.2 and 7.5.0 done so these changes can get pushed out to beta users. I'll post a more general announcement to the beta forum when/if that happens tomorrow.

    summary of changes since I've been able to refocus on the radio alarm:
    1. Fallback timer runs at all times, not just when squeezeplay receives a serverDisconnect notification. This may help solve some reliability issues being seen, though admittedly that's somewhat of a guess and needs some more eyes/ears to see how it's doing now.
    2. "Turn Alarm Off" stops alarm but not audio
    3. Alarm notification window hides itself after 59 seconds
    4. Alarm volume slider UI issue fixed (server side fix)
    5. When radio is controlling another player and local radio alarm fires, more intelligently change the controlled player back to the radio
    6. Remove alarm notification window when power button is hit
    7. Always hide existing alarm window when alarmState notification changes

    These changes are being made in 7.4/trunk but are also being pulled up to the 7.5/trunk branch.

    These are the remaining open top tier Squeezebox Radio alarm bugs.
    https://bugs.slimdevices.com/show_bug.cgi?id=14870
    https://bugs.slimdevices.com/show_bug.cgi?id=15151
    https://bugs.slimdevices.com/show_bug.cgi?id=15239

    cheers,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •