PDA

View Full Version : Scroll Custom Text?

NJSal
2006-02-02, 15:41
Hello,

I've had my SB3 for a few days now, and I love it!

I was wondering if there was a plug-in that allows you to scroll user-customized text and use that as a screensaver?

mherger
2006-02-02, 16:25
> I was wondering if there was a plug-in that allows you to scroll
> user-customized text and use that as a screensaver?

You can use the CLI or special web requests (see the docs in the
slimserver's help section) to display text. Or you you want the same text
to be displayed all the time? I published a simple file viewer plugin over
in the German forum. It will display a text file in one line (screensaver)
or line by line (interactively).

http://forums.slimdevices.com/attachment.php?attachmentid=820&d=1138896714

Well... "Dateibetrachter" means "file viewer". Just replace path and file
name in the $datei variable to your likings. -- Michael ----------------------------------------------------------- Help translate SlimServer by using the StringEditor Plugin (http://www.herger.net/slim/) NJSal 2006-02-02, 19:48 Thank you for your reply, but I'm not too sure what to do with that link you sent me? I alter the text, then save it as a .pl file in the plugin folder? Also could you give me a little more detail on how and where to alter the text? And I checked the docs for what you said, but I cant find what you told me to look for. I'm a newbie at this, and not to keen on all the lingo. Thanks again for your help. I was assuming there had to be an easy way to scroll customizable text. mherger 2006-02-02, 22:43 > Thank you for your reply, but I'm not too sure what to do with that link > you sent me? I knew I should not have sent it :-). - Save the file as Dateibetrachter.pm in your plugins folder. - set the$datei value to a text file that contains your text
- enable the plugin in the server settings
- go to the player's plugin menu and choose Fileviewer or enable it as
your screensaver in the player settings

> I alter the text, then save it as a .pl file in the plugin folder? Also

No, it's a simple file viewer. You'd have to store the text in a file.
There might be simpler solutions for what you want to do.

> could you give me a little more detail on how and where to alter the
> text?

In the file you define in $datei. > I was assuming there had to be an easy way to scroll customizable text. There is an easy way to display some text for a short period of time: http://yourserver:9000/status.txt?p0=display&p1=hello Please see the documentation in the slimserver web interface (Help/Technical/Web Interface) -- Michael ----------------------------------------------------------- Help translate SlimServer by using the StringEditor Plugin (http://www.herger.net/slim/) NJSal 2006-02-02, 23:06 Thank you for your response. I've been searching all night for a way to do this. I'm simply trying to suprise my wife with a nice message when the player goes into screensaver mode. I'm having problems with the directions you stated. I saved the script as a .pl file, and placed it in my plugins folder. I stopped then re-started my slimserver service in windows. The plugin does not show in slimerver plugin settings. Even if I could get it to show, I have no idea what you mean by linking it to a text file to display my message. Where would the .txt file go? I'm sorry, but I'm just trying to get this right. I appreciate all your help. I wish there was simple easier way to scroll custom text when the player is in screensaver mode. mherger 2006-02-03, 00:13 > I'm having problems with the directions you stated. I saved the script > as a .pl file, it must be .pm, not .pl > Even if I could get it to show, I have no idea what you mean by linking > it to a text file to display my message. Where would the .txt file go? That's what you define in the$datei variable: $datei="c:/boot.ini" will display c:\boot.ini.$datei="c:/letter/to/my/dear.txt" will show
"c:\letter\to\my\dear.txt".

> I wish there was simple easier way to scroll custom text when the
> player is in screensaver mode.

There is, I'm sure. But I don't know of anybody who's created a plugin for
that purpose.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

mherger
2006-02-03, 03:37
> I wish there was simple easier way to scroll custom text when the
> player is in screensaver mode.

Oh, I almost forgot about another of my plugins ;-) - MusicInfoSCR
(http://wiki.slimdevices.com/index.cgi?PluginServerUtilities).

Install this on your machine. Go to Server Settings/Formatting and add the
text you want as a format. Use that format in MusicInfoSCR (Player
settings) -> if there are no known tags in your text, it will be displayed
as is.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

NJSal
2006-02-03, 10:53
I've followed your directions for both solutions, and I cannot get either to show in the plugin section of slimserver.

I know its frustrating for me, so I can only imagine how it is for you.

I opened your links, saved them as .pm in my plugins folder, stopped, then re-started the slimserver service, but cannot view them in the web interface??

NJSal
2006-02-03, 15:37
Ok, I copied your code, and edited it in wordpad. Then I changed the file extension to .pm

I've changed the code to point towards the text document that conatins the text I want to scoll.

I've saved Dateibetrachter.pm in the c:\program files\slimserver\server\plugins folder.

I've stopped and re-started the slimserver service, but I cannot view the plugin in the server plugin settings.

Please tell me what I am doing wrong.

GoCubs
2006-02-03, 18:02
> I wish there was simple easier way to scroll custom text when the
> player is in screensaver mode.

Oh, I almost forgot about another of my plugins ;-) - MusicInfoSCR
(http://wiki.slimdevices.com/index.cgi?PluginServerUtilities).

Install this on your machine. Go to Server Settings/Formatting and add the
text you want as a format. Use that format in MusicInfoSCR (Player
settings) -> if there are no known tags in your text, it will be displayed
as is.

Likewise, you can edit SuperDateTime's text formating option for your own text...

-Greg

NJSal
2006-02-03, 18:57
Go Cubs,

Could you please explain in detail?

I'm a newbie at this, and although I have and love your plug-in, I have no idea how to add customized text.

GoCubs
2006-02-04, 07:16
Could you please explain in detail?

I'm a newbie at this, and although I have and love your plug-in, I have no idea how to add customized text.
Sure- There are several ways to do this using SuperDateTime. Assuming that you have the plugin working, go to the server settings -> plugins web page. From this page, in the SuperDateTime Screensaver section there will be an option called Weather Format String (if this option does not exist, upgrade to a newer version of SuperDateTime). This section is normally used to customize what and how weather information is displayed. You can also use it to enter your own custom message. Simply delete what's in there and enter your own message instead.

Hopefully this should work for you. Please let me know if you have any problems.

-Greg

NJSal
2006-02-04, 13:29
Thank you for the info GoCubs. I was able to place a small message on my SB3 but it was having trouble scolling a larger message, even after playing with the scrolling settings.

Plus for some reason, it did not accept spaces in between words?

Michael...if you could tell me what I have to do to make slimserver recognize your plug-in, I would appreciate it.

Thanks everyone!

mherger
2006-02-05, 01:08
> I opened your links, saved them as .pm in my plugins folder, stopped,
> then re-started the slimserver service, but cannot view them in the web
> interface??

You're on Windows? Stop the slimserver service. Open a Command prompt, go
the slimserver directory (eg. "cd c:\program files\slimserver\server").

Then run "slim.exe -d_plugins" - this should give you some information
about the plugins being loaded. Do you see anything for MusicInfoSCR or
Dateibetrachter?

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

GoCubs
2006-02-05, 18:44
Thank you for the info GoCubs. I was able to place a small message on my SB3 but it was having trouble scolling a larger message, even after playing with the scrolling settings.

Plus for some reason, it did not accept spaces in between words?

Michael...if you could tell me what I have to do to make slimserver recognize your plug-in, I would appreciate it.

Thanks everyone!
Yeah, I don't think there's an easy way to enable scrolling for what you're doing. Right now that display is refreshed every second (since it's usually displaying the time) so there wouldnt be enough time to have it scroll text.

As far as spaces inbetween words, I'm not sure why it wouldn't let you. I just tried it on my version with no problem. Are you using the latest release version or beta?

-Greg

NJSal
2006-02-06, 10:30
Michael,

I did what you said via the command prompt, but it didnt mention anything for Dateibetrachter plug-in.

Im not supposed to put that file in seperate folder inside the plugin folder right? You want me to drop it in the plugin folder root?

Is there anyway you could email me the file? maybe I'm doing something wrong?

cbemoore
2006-02-06, 11:01
Have you enabled the plugin after installing it?

To install the plugin, just copy it into the "Plugins" folder.

To enable the plugin, go to "Server Settings / Plugins" on the web interface, and it should be obvious what to do.....

NJSal
2006-02-06, 11:15
Yes, Ive dropped it into that folder, but when i go to serversettings/plugins, its not even shown as an option to enable at startup.

Kyle
2006-02-06, 11:38
Yes, Ive dropped it into that folder, but when i go to serversettings/plugins, its not even shown as an option to enable at startup.
Have you tried doing a reboot after loading the file in the plugins folder? Sometimes that's what it takes for me to have a plugin actually show up in Slimserver.

NJSal
2006-02-06, 11:54
Yes, I re-started the service, re-booted the machine (windows xp) and tried everthing else I could think of. Maybe I didnt save the file correctly?

I just dont know.

mherger
2006-02-06, 14:41
> Yes, Ive dropped it into that folder, but when i go to
> serversettings/plugins, its not even shown as an option to enable at
> startup.

Oh, just one thought... did you also check for "File viewer"? Yeah, I did
translate that simple line...

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

NJSal
2006-02-06, 16:59
I checked, and no fileviewer either. This is what I have available to me in my server settings/plugins area:

Date and Time
Favorites
iTunes
MoodLogic
MusicMagic
Podcast Browser
Random Mix
Rescan Music Library
Save Playlist
Server & Network Health
SlimTris
Snow Screensaver
SuperDateTime Screensaver
Visualizer Screensaver
XML-RPC/JSON-RPC Interface

Not sure whats going on here?

mherger
2006-02-08, 00:27
> Not sure whats going on here?

And you're sure you put the files in the right folder?!? You could also
check the security settings. Be sure "Everyone" can read those files.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

NJSal
2006-02-08, 07:25
I put the file in the server/plugins folder.

I have full administrative rights to my account.

Again, perhaps I saved the file incorrectly? I copied your code into wordpad, saved it, then changed the exension. And no its not a named file.pm.txt

I changed the filetype to a .pm

Thanks

mherger
2006-02-08, 08:19
> I have full administrative rights to my account.

Please check the rights on the file: if slimserver is running as a
service, it's using the "SYSTEM" account (or whatever else you defined).
It therefore has to be readable for "everyone".

> Again, perhaps I saved the file incorrectly?

Try to save it directly to disk using a right click on the link (instead
of copying/pasting).

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

NJSal
2006-02-08, 15:04
I finally got it to work!!

I re-saved the file directly from you link. Then edited it in Dreamweaver, then re-started the SlimServer service. After doing that, the plugin showed up, and I can alter it via my text file.

I just wanted to everyone that helped with this request of mine. Sorry it took so long to figure out, but I truly appreciate your patience and your help.

Thanks Again!

JamesAnderson
2006-09-06, 09:05
Hi there,

I'm trying to do exactly the same thing as the OP, but the attachment posted by MHerger doesn't seem to exist anymore.

Could anybody help me out please.

Many Thanks,
James.

mherger
2006-09-06, 15:06
I'm trying to do exactly the same thing as the OP, but the attachment posted by MHerger doesn't seem to exist anymore.

Is it http://www.herger.net/_data/FileViewer.pm you're looking for? No instructions or information other than in this thread (and the other thread you posted to) available so far. Feel free to post any comment to the plugins forum.

cparker
2006-09-07, 10:16
I'm simply trying to suprise my wife with a nice message when the player goes into screensaver mode.

Just use a pen, write on a sticky note and leave it next to the remote control LOL ;)