Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    SqueezeBox University

    <<<RESERVED>>>
    (I'm going to attempt to "simplify" developing programs for my Squeezebox, through the eyes of a newbie and edit this post as I discover what the heck this is all about. First on my plate, learn Lua programming) Ouch...can't embed the YouTube tutorial...

    STEP 1:

    STEP 2:

    TOOLS (for asking & answering questions):
    1. Screenshot Pictures: http://www.lunapic.com/editor/ (only editor I found that has circles & arrows)
    2. Screenshot Video: http://www.techsmith.com/jing.html
    Last edited by chipmalee; 2012-03-14 at 02:41.

  2. #2
    After a week, I give up and will ask for some help on installing Lua so I can program my SqueezeRadio to scan. (Ref: http://forums.slimdevices.com/showpo...7&postcount=24 )

    OK...I've followed the Lua.org site and downloaded and extracted Lua 5.2.0 (http://www.lua.org/download.html) using 7-zip. What's next? How do I get to the point like in this video where the kid is able to write a Hello World program?
    http://www.youtube.com/watch?v=JKfKCL3UB4s

    I see Lua.org has a online writing feature but how do I get it to launch on my desktop like my Visual Basic 2008 Express Edition?
    http://www.lua.org/cgi-bin/demo?hello

    Sorry for the following stupid question: If I add my own programs, what are they called? Plugins or 3d party apps? Why is Perl mentioned in the wiki if SB language is Lua? Are Perl and Lua the same or very similar?

    Quote Originally Posted by mherger View Post
    No need to install Lua at all: just install Squeezeplay. It comes with all Lua you'll need.
    Thanks mherger, I will try installing Squeezeplay. I assume I can test out Hello World like the kid in the YouTube video. I was a little confused in trying to find a Lua icon so I can launch like my Visual Basic icon. See picture below.
    Attached Images Attached Images  
    Last edited by chipmalee; 2012-03-05 at 03:44.

  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,132
    Quote Originally Posted by chipmalee View Post
    After a week, I give up and will ask for some help on installing Lua so I can program my SqueezeRadio to scan. (Ref: http://forums.slimdevices.com/showpo...7&postcount=24 )
    No need to install Lua at all: just install Squeezeplay. It comes with all Lua you'll need. Did you check out the wiki?

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

    Quote Originally Posted by chipmalee View Post
    Sorry for the following stupid question: If I add my own programs, what are they called? Plugins or 3d party apps? Why is Perl mentioned in the wiki if SB language is Lua? Are Perl and Lua the same or very similar?
    Lua is to implement device side _applets_.
    Perl you use to implement server side _plugins_.
    Michael

    http://www.herger.net/slim-plugins - MusicArtistInfo, MusicInfoSCR, Smart Mix

  4. #4

    how do I get Squeezeplay to launch in VC++?

    Struggling thru the wikis. I guess I need to get this icon in my VC++ so I can start playing with it.
    http://wiki.slimdevices.com/uploads/...queezeplay.png

    After a week of downloading everything, I think I finally have the correct VC++ (the VB I used in my VB class couldn't be used here so I wasted a lot of time on that false assumption). Am I looking for a Jive.sln file because I did a search all my program files and couldn't find any?

    Instructions:
    "Double click the 'Jive.sln' file to open it in VC++ 2008 Express."

    Here's what my VC++ looks like:
    Attached Images Attached Images  
    Last edited by chipmalee; 2012-03-14 at 03:36.

  5. #5
    Senior Member
    Join Date
    May 2008
    Posts
    1,455
    I think you might be barking up the wrong tree a little.

    You don't need to build your own copy of SqueezePlay to starting hacking on Lua. You can just download a pre-built copy from here:

    http://downloads.slimdevices.com/nightly/?ver=7.7

    Lua is a scripting language, so just editing the .lua files that come with SqueezePlay and rerunning the SqueezePlay is all that is needed to get started making changes or creating applets.

    (that isn't to say that you might not end up wanting to compile your own copy of SqueezePlay at some point, but you don't need to just to write an applet)
    Yes, it will. Yes, all of them. Yes, SoftSqueeze as well. What ?
    I SAID ALL OF THEM !

  6. #6
    Thanks Andy, I see the SqueezePlay now. After much hesitation and fear I might break other SqueezeServer programs on my desktop, I downloaded the following since I am on an XP Home Edition:

    SqueezePlay: Windows Executable Installer, SqueezePlay-setup.exe, 28.45, MB, March 19 2012 04:03

    Next I launched VC++ 2008 Express from 2 posts ago. Now after opening several lau files (VC++ won't open project files), including ones in jive, I'm not sure what I am going to do next. I like to practice some Hello World exercises since I know those from Visual Basics class. Am I on the right track and what's next?
    Attached Images Attached Images  

  7. #7
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,866
    Quote Originally Posted by chipmalee View Post
    Next I launched VC++ 2008 Express from 2 posts ago. Now after opening several lau files (VC++ won't open project files), including ones in jive, I'm not sure what I am going to do next. I like to practice some Hello World exercises since I know those from Visual Basics class. Am I on the right track and what's next?
    In Linux there is two directories:
    /usr/share/jive/applets
    /usr/share/jive/jive
    (I'm guessing the same directories exists on Windows too but is placed in a different directory)

    All the bundled applets are placed under the "applets" directory, I assume it looks the same on Windows, so try to find the applets directory and this is where you should put your "Hello World" applet.

    Each applet is placed in a separate directory under "applets" and have:
    - strings.txt (textual strings for all supported languages)
    - *Meta.lua (Meta data file which is called during initialization and configures the applet)
    - *Applet.lua (The actual applet source code)

    Take a look at the following wiki page if you haven't already done so:
    http://wiki.slimdevices.com/index.ph...y_Applet_Guide
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)

    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

  8. #8
    Senior Member
    Join Date
    May 2008
    Posts
    1,455
    Do yourself a favour, use an editor that will make editing Lau easier. Look at this page for how to setup notepad++ for editing Lau files:

    http://www.retroaffect.com/blog/190/...for_Notepad__/
    Yes, it will. Yes, all of them. Yes, SoftSqueeze as well. What ?
    I SAID ALL OF THEM !

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,132

    SqueezeBox University

    > Do yourself a favour, use an editor that will make editing Lau easier.
    > Look at this page for how to setup notepad++ for editing Lau files:


    It's LUA :-)

    --

    Michael

  10. #10
    Senior Member
    Join Date
    May 2008
    Posts
    1,455
    I know, but iOS doesn't...

    Yes, it will. Yes, all of them. Yes, SoftSqueeze as well. What ?
    I SAID ALL OF THEM !

Posting Permissions

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