Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 29 Nov 2014, 04:51
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
wakeAlarm-0.04 pet and tgz
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Tue 16 Nov 2010, 04:51    Post subject:  wakeAlarm-0.04 pet and tgz
Subject description: Easy Multimedia Alarm Clock--really wakes sleepers!
 

Here's the wakeAlarm-0.04--this is an improved alarm clock.

The alarm trains the user to wake to a set of ringtones in a loop.
It works reliably at a lower volume than other musical alarms.

User can accept defaults or select own ringtones and timing.

After the alarm goes off there is an option to play MRLs (music, video...) so it's a lot like a regular alarm crossed with a multimedia alarm.

Simple to use. One job, one program, uses features pre-installed in OS.

Compare ohers:
-http://www.murga-linux.com/puppy/viewtopic.php?t=10580
-http://www.murga-linux.com/puppy/viewtopic.php?t=27342
-http://www.murga-linux.com/puppy/viewtopic.php?t=23883
-http://www.murga-linux.com/puppy/viewtopic.php?t=35601
-http://www.murga-linux.com/puppy/viewtopic.php?t=54073
-http://www.google.ca/search?q=alarm+clock+site%3Amurga-linux.com


Runs from Pschedule. As written uses xine, but can be edited to use any media player, really.
I prefer xmms2, but perhaps you like pmusic?

It also depends on gtkdialog3 for the push-button control. This is pre-installed on most Puppies.

To make it ready for other players download the tgz, extract, and edit.

To install and use as-is get the pet package.


Please note, one should not have spaces in path or filenames. You can work around the limitation, but as many Puppy scripts, it is not built to handle this.

This program has been around in one or an other version since 1994/5 under msWin3.11 Laughing
The original samples are still here, though as ogg not wav files.

I originally wrote this for my late wife. [Always my love, always her lover.]


Give it a spin around the block. I'm sure you'll love it.


moB


"How now," he soliloquized at last,
withdrawing the tube, "this smoking no
longer soothes. Oh, my pipe! hard must
it go with me if thy charm be gone!

--H. Melville, Moby Dick.
wakeAlarm.htm.gz
Description  Get your new versions from this page.
Less load on the JMurga server--sorry for any inconvenience.
gz

 Download 
Filename  wakeAlarm.htm.gz 
Filesize  430 Bytes 
Downloaded  383 Time(s) 

Last edited by moB on Mon 07 Feb 2011, 06:13; edited 1 time in total
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Wed 17 Nov 2010, 00:55    Post subject:  
Subject description: a few notes
 

A few notes may be useful.


1. Files included:

~/wakeAlarm-0.04.tips....................[Small help]


~/.wakeAlarm/alarm.pls
~/.wakeAlarm/chimes.ogg
~/.wakeAlarm/whistle.ogg


~/ringtones/ahoo.ogg
~/ringtones/bluesbros.ogg ...........[Peter Gunn theme]
~/ringtones/enigma.ogg
~/ringtones/goodmo1.ogg
~/ringtones/ysolid.ogg


~/my-applications/bin/wakeAlarm



2. You can safely remove the ringtones directory and point the alarm.pls to another set of ringtones.

If using the (prefered) frugal install for Puppy move the ringtones outside your personal savefile to your actual harddrive.



3. To access folders or directory with sp aces in name &/or path (fullpath) try symlinks. Put links to data in ringtones directory, is likely tidiest.

In terminal in /root/ringtones/:

Code:


# ln "/mnt/home/Documents and Settings/source.ogg" linkname.ogg



Then in alarm.pls point to ~/ringtones/linkname.ogg, for example.



4. The MRL reference passed to wakeAlarm from Pschedule may be a playlist or single media location. For example:

Code:


 wakeAlarm /root/.xine/myPlaylist.tox




It's a lot simpler than this might make it out to be.

moB

Enjoy freedom today--it's not too late.
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Sat 27 Nov 2010, 03:25    Post subject:  
Subject description: default stream outdated?
 

The default media stream may be outdated/expired.

It's a link through Icecast directory: http://dir.xiph.org/listen/23883535/listen.m3u
which points to Dream Factory: http://radio.hbr1.com:19800/ambient.ogg

You can replace the old line near the top of wakeAlarm like this:

Code:


[ $# -gt 0 ] && UMUSIC=$1 || UMUSIC=http://radio.hbr1.com:19800/ambient.ogg



That's a link from the provider site and should work longer.

Sorry for that Embarassed
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Sun 12 Dec 2010, 14:29    Post subject:  
Subject description: echo, or hiccough, avoidance
 

Some users reported a strange effect with Pschedule and wakeAlarm.

The alarm script was loaded in multiple copies.

This is easily avoided. If you have this problem change your Pschedule task from the simple:
Code:
wakeAlarm
to
Code:
sleep2;wakeAlarm


It's a bit like using DoEvents? Let the Pschedule see that script is loaded.

It is better to sleep before waking, is the lesson here Wink

moB


"Forget inspiration. Habit is more dependable. Habit will sustain you
whether you're inspired or not. Habit will help you finish and polish
your stories. Inspiration won't. Habit is persistence in practice."
~Octavia Butler
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Tue 14 Dec 2010, 09:10    Post subject: New pet and tgz versions on mini-repository
Subject description: default stream outdated?
 

moB wrote:
The default media stream may be outdated/expired.


Download these at a limited-access mini-repository in a cloud near you: https://sites.google.com/site/ieincp/home


If it comes up 404, try later in day or nest day.
Hourly, daily, etc.. quotas in effect..

moB
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Thu 06 Jan 2011, 19:03    Post subject: fixed? Please confirm
Subject description: crond loads multiple copies
 

moB wrote:
Some users reported a strange effect with Pschedule and wakeAlarm.

The alarm script was loaded in multiple copies.



Now added a patch to stop loading multiple copies.
Download from our mini-repository (google cloud).


moB


"Forget inspiration. Habit is more dependable. Habit will sustain you
whether you're inspired or not. Habit will help you finish and polish
your stories. Inspiration won't. Habit is persistence in practice."
~Octavia Butler
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Fri 07 Jan 2011, 05:02    Post subject:  

Very naive question. I have never used pschedule.

So one tell it to wake up a certain time and then shut the computer down and it boots the same OS as one made the scedule in?????

How does it know what OS it was using when it got scheduled?

Would it not boot the OS that is first in the chain of boot order something?

Or is the computer suppose to be on the whole night?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Thu 13 Jan 2011, 21:49    Post subject:  wakeAlarm-0.05
Subject description: bugfix
 

Updated to fix all known bugs.

Can customize playlist in ringtones directory properly now.
Remember, they play by alphabetical order, so name your ringtones with numbers at start of names to control sequence.

New xine can find files Smile

Let me know if there are any new bugs!

https://sites.google.com/site/ieincp/home/all
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Thu 13 Jan 2011, 22:01    Post subject:  

nooby wrote:
Very naive question. I have never used pschedule.

So one tell it to wake up a certain time and then shut the computer down and it boots the same OS as one made the scedule in?????

nooby,

no question is too naive!

Pschedule is like msWin's scheduled tasks except that I don't think it can wake your sleeping system as the ms thing can.

nooby wrote:

Or is the computer suppose to be on the whole night?

If you don't like to keep your box up you need no PC-based alarm clock, it is true Wink Here, I need the heat.

Pschedule is a front-end for crond. I prefer to use cron directly, but this doesn't work well in Puppy... so use Pschedule to set crontab entries.

moB

Grin away; we'll see what turns up.
--Melville, Moby dick
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Fri 14 Jan 2011, 12:52    Post subject:  
Subject description: Summary
 

Let me explain what wakeAlarm does.


    1. Looks to see that no other windows called wakeAlarm are running.
    This is to prevent crond from loading multiple copies of the alarm.

    2. Checks to see whether user has speciifed an MRL.
    If not specified it uses the builtin music stream. This allows user to choose music or video to be played after alarm is turned off.
    For example, one can enjoy the morning business report or weather, music, CD, DVD, local or remote, at one's discretion.
    The option is presented to the user as an alternative to simply shutting wakeAlarm off.

    3. Builds a playlist from the ringtones directory.
    New list is built at each runtime making it easy to change the ringtones to suit user preference.
    The idea is to use a familiar sequence of sounds to signal one from sleep. Usually I awake before hand and listen for a minute.
    When I don't wake in advance a familiar sequence rouses me easily and painlessly.

    Default ringtones include short low-quality samples from Enigma, Yello's 1980 "Solid Pleasure", Blues Bros. doing "Theme from Peter Gunn", Toto, Simpsons opening from "Bart's bad day", classic cartoon laugh, & Star Trek's whistle ( just before "Star date...").
    Some users have changed the ringtones to bird recordings, for example.

    4. Plays the ringtones loop in xine fullscreen.
    Delay can be set from within the script to allow for longer or shorter ringtones and control the gap between.

    5. Loads a simple GTK interface to shut down or play MRL in new xine instance.
    If shutdown's selected chimes are played. It might sound familiar to some of us Smile


For my setup this does not use much power as the hard drives and CPU are shut down by power management.
All that is really running is the power supply and RTC (internal clock -- like a watch circuit, really).
For those on battery there is no power supply eating juce either.

Most of the package download size is samples. Comes in at around 450 KB. Takes seconds to download.
These can be replaced by symlinks to external data to save space in ones personal savefile, if one prefers.

It comes in pet and targz formats to make it easy to edit or use with other GNU/linux systems.

moB

Semper sursum.


...........................===****************************************************************===........................
Aside:

nooby mentioned default startup path. Usually this will lead the user to msWin.
Easily may be altered by setting "default=" enrty in boot.ini to c:\grub instead of DISC0,PARTITION0... or whatever it says.
I put an entry in menu.lst leading back to ntldr (boot.ini) in case someone intended to run it.

One could make the default setup a loop so no OS loads without user intervention.
Of course mine simply loads GNU/linux by default.

Edited for a tyop, er, typo Wink
Back to top
View user's profile Send private message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Sun 26 Jan 2014, 02:15    Post subject: wakeAlarm has an update: wakeAlarm-0.06
Subject description: Alarm clock, Pschedule, Xine, pet
 

This update addresses comments made by a few users. The coding was done about a year ago, but not announced. Oops!


wakeAlarm for Puppy is an Xine media player script.
The Xine visualizations run while sounds are played.
[To grab a screenshot press the "t" key, otherwise all you'll get with a screen-capture is a featurless box.]

There's a choice to Stop Alarm or Play Music.
You can use your own ringtones, too. FIles may be local, on cd/dvd, or web.
Use with supplied sounds or your own sounds or video files.
You may wish to hear an hour of birdsong before some J. P. Souza marches, or morning weather and news.
The info file in the update shows you how.

To play a Youtube video enclose it in triple (nested) quotes: wakeAlarm "'http...flv'"

Download the 0.5 version and optionally upgrade to 0.6 with the 4Kb script upgrade. The update does not hold the PET, just a new script and explanatory text file.

If unsure as to where to move the new script find it installed in Puppy:

Code:
 find ~/ -name wakeAlarm
or try
Code:
 find / -iname wakealarm*


Shuffle playlist option added. Cleaned code up.

The command line options and use are better explained. Options do not require fiddling with the script.

Security enhancement for Puppy users explained, too (running as Spot).

wakeAlarm still depends on gtkdialog3 and Xine. You can probably rewrite it for Amarok or other players, too.

Kind regards.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4315s ][ Queries: 13 (0.0135s) ][ GZIP on ]