Omnimaga

Omnimaga => News => Topic started by: critor on April 12, 2012, 09:53:16 pm

Title: Turn your Nspire into a real clock!
Post by: critor on April 12, 2012, 09:53:16 pm
On previous TI calculators, you could set up and use a clock: TI-84, TI-89 HW2, TI-92+ HW2, TI-Voyage 200 and TI-89 Titanium.

When testing the oldest Nspire handheld prototype, the TI-Phoenix 1 (P1-EVT1), we got some proof that the TI-Nspire had the required circuit for a clock, as the created files got some dates:

(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=44&image_id=357)

But TI has never used it for that up to now, and those dates were quickly masked with the P1-EVT2 prototype :(



In a previous news (http://tiplanet.org/forum/viewtopic.php?t=8966#p122236), Tangrs released the Clock program, which let you set up the clock and display it.

(http://tiplanet.org/modules/archives/captures/133312754734z0q3b.jpg)

But you were loosing your clock at each reboot.



Levak from TI-Planet is about to release nClock, which was allready in development when we learned about Clock from Tangrs.

nClock lets you turn your TI-Nspire into a real clock. You can set the clock and display it.

(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=13&image_id=716)



But nClock features more than that. As you can see, it's hard to keep the Nspire in the above position. So nClock also has a 180°-rotated display mode! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=13&image_id=713)



Moreover, nClock uses Ndless startup and hook features to save your clock setting. Meaning that your clock setting does survive a reboot! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif) ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)



But there's still more! nClock also uses Ndless hook feature to constantly display and refresh a small clock on your Nspire title bar. ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif) ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif) ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

(http://i.imgur.com/fp7B7.png)

(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=13&image_id=714)





Bigger pictures available in the TI-Planet news:
http://tiplanet.org/forum/viewtopic.php?t=9076

nClock will be available for download as soon as the next Ndless build is available - as it needs some patches to be applied to Ndless and doesn't work with the current version.


Edit: nClock is now available from the TI-Planet news (note that you need the latest Ndless 3.1 build)
http://tiplanet.org/forum/viewtopic.php?t=9076
Title: Re: Turn your Nspire into a real clock!
Post by: Adriweb on April 12, 2012, 09:54:32 pm
awesome as usual ;)

I am testing it and it works pretty well ;-)
Title: Re: Turn your Nspire into a real clock!
Post by: hellninjas on April 12, 2012, 09:55:23 pm
LOVELY!
I'm using this now instead of wearing my bulky watch ! :D
Title: Re: Turn your Nspire into a real clock!
Post by: Jim Bauwens on April 12, 2012, 09:55:59 pm
Extremely nice and useful!
Title: Re: Turn your Nspire into a real clock!
Post by: blweldon2 on April 12, 2012, 10:14:07 pm
Weird. I fell asleep in my Web Design class and had a dream about having a clock on the title bar of my nspire. Then I come home and see this. Dreams do come true! O_O
Title: Re: Turn your Nspire into a real clock!
Post by: Sorunome on April 12, 2012, 10:18:01 pm
I really wish I had a nspire, all I have is a lousy 84+
Title: Re: Turn your Nspire into a real clock!
Post by: Goplat on April 12, 2012, 10:18:15 pm
Moreover, nClock uses Ndless startup and hook features to save your clock setting. Meaning that your clock setting does survive a reboot!
How does this work? I take it this is not using the RTC, since boot1/boot2 always reset it as far as I know and Ndless cannot prevent that. 900Cxxxx timers + spare SRAM?
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 12, 2012, 10:21:11 pm
Moreover, nClock uses Ndless startup and hook features to save your clock setting. Meaning that your clock setting does survive a reboot!
How does this work? I take it this is not using the RTC, since boot1/boot2 always reset it as far as I know and Ndless cannot prevent that. 900Cxxxx timers + spare SRAM?

Two things :
 - the RTC value is not reseted when the calc crashed (and still continue working even on the booting time). It resets only when you use the reset button.
 - nClock just stores the last saved RTC value and ask if the time is correct on boot. But most of the time, since the RTC is not reseted, it is useless
Title: Re: Turn your Nspire into a real clock!
Post by: compu on April 12, 2012, 10:30:08 pm
Nice!

Does it work with classic Nspires?
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 12, 2012, 10:45:16 pm
Nice!

Does it work with classic Nspires?

At first, the hook worked only on CX's an I was sad enought to leave the project ...
But by reverse engineering the hook I found that classic Nspire and CX Nspire use differents Battery checkers and my hook as actually in the battery check branch of CX.

Now I use differents hooks for classics and cx Nspire. Since I don't have them with me, I can't test if it works, but they actually work on emulator so I guess so =)
Title: Re: Turn your Nspire into a real clock!
Post by: Juju on April 12, 2012, 10:46:45 pm
I like the small clock in the title bar :D
Title: Re: Turn your Nspire into a real clock!
Post by: ExtendeD on April 12, 2012, 11:04:48 pm
Two things :
 - the RTC value is not reseted when the calc crashed (and still continue working even on the booting time). It resets only when you use the reset button.
 - nClock just stores the last saved RTC value and ask if the time is correct on boot. But most of the time, since the RTC is not reseted, it is useless

How frequently is it written to NAND? Writing it to frequently would wear it excessively.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 12, 2012, 11:05:53 pm
How frequently is it written to NAND? Writing it to frequently would wear it excessively.

When you launch nclock =)
It reads the config file where all the stuff needed is stored, as well as the backuped clock.
Title: Re: Turn your Nspire into a real clock!
Post by: Wayne on April 12, 2012, 11:43:47 pm
There are so many awesome things for the ti nspire cx (cas). It is a must have. Would somebody take my "old" ti nspire cas with touchpad charge into a cx?
Title: Re: Turn your Nspire into a real clock!
Post by: cyanophycean314 on April 12, 2012, 11:57:03 pm
 :D A dream come true. The clock deficiency on the Nspire has been fixed.
Title: Re: Turn your Nspire into a real clock!
Post by: Freyaday on April 13, 2012, 12:04:07 am
Yet another reason to get a CX. Gah.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 13, 2012, 01:24:21 am
There are so many awesome things for the ti nspire cx (cas). It is a must have. Would somebody take my "old" ti nspire cas with touchpad charge into a cx?
I've just said it works also for classic Nspires, what have I said wrong ?
Title: Re: Turn your Nspire into a real clock!
Post by: Yeong on April 13, 2012, 01:48:56 am
ooh, nice. :D
Title: Re: Turn your Nspire into a real clock!
Post by: Hayleia on April 13, 2012, 07:08:43 am
This is why I love the calculator community.
Title: Re: Turn your Nspire into a real clock!
Post by: Jonius7 on April 13, 2012, 07:13:05 am
Yes this is great! The ability of the TI-nspire to count seconds accurately enough can open up a whole world of game and program development where the program relies on a specific time frame pass for an action to be carried out for example. Eg: Wait 5 minutes until an item is ready to be used or something.
Title: Re: Turn your Nspire into a real clock!
Post by: ExtendeD on April 13, 2012, 08:51:25 am
How frequently is it written to NAND? Writing it to frequently would wear it excessively.

When you launch nclock =)
It reads the config file where all the stuff needed is stored, as well as the backuped clock.
But when is it backed up?
Title: Re: Turn your Nspire into a real clock!
Post by: Lionel Debroux on April 13, 2012, 09:20:27 am
Quote
The clock deficiency on the Nspire has been fixed.
And as fairly often, deficiencies of the Nspire platform were fixed by third parties, through the power of native code :)
Title: Re: Turn your Nspire into a real clock!
Post by: Wayne on April 13, 2012, 11:03:43 am
There are so many awesome things for the ti nspire cx (cas). It is a must have. Would somebody take my "old" ti nspire cas with touchpad charge into a cx?
I've just said it works also for classic Nspires, what have I said wrong ?
But coloured games or utilities like nclock are look awful on the classic nspire, aren't they?
Title: Re: Turn your Nspire into a real clock!
Post by: Jim Bauwens on April 13, 2012, 11:05:23 am
To me it looks like the entire program is black and white.
It should be fine :)
Title: Re: Turn your Nspire into a real clock!
Post by: aeTIos on April 13, 2012, 02:08:11 pm
Great :D
Title: Re: Turn your Nspire into a real clock!
Post by: Chockosta on April 13, 2012, 02:24:28 pm
Wow! This is awesome :)
The little clock in the title bar is really cool.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 13, 2012, 02:34:21 pm
How frequently is it written to NAND? Writing it to frequently would wear it excessively.

When you launch nclock =)
It reads the config file where all the stuff needed is stored, as well as the backuped clock.
But when is it backed up?

?

When you launch nclock =)

I have no idea how to be more precise than that =/
Maybe : nClock is a two-time program, you launch it a first time to install the permanent hook (on each reboot), and another time to launch the GUI, this is when the RTC is backuped, each time the user wants to display the big clock.
Title: Re: Turn your Nspire into a real clock!
Post by: TheNlightenedOne on April 13, 2012, 07:07:29 pm
There are so many awesome things for the ti nspire cx (cas). It is a must have. Would somebody take my "old" ti nspire cas with touchpad charge into a cx?
I'll take it off your hands for you!  :P
Title: Re: Turn your Nspire into a real clock!
Post by: apcalc on April 13, 2012, 10:56:15 pm
Wow!  This looks extremely useful! :)
Title: Re: Turn your Nspire into a real clock!
Post by: renatose on April 13, 2012, 11:36:28 pm
This is great! This way I can check the time during an exam! YAY! :D

Next: making gbc4nspire to use the RTC (used by games such as pokemon, I think)...
Title: Re: Turn your Nspire into a real clock!
Post by: annoyingcalc on April 14, 2012, 12:15:07 am
I can't wait to get this
Title: Re: Turn your Nspire into a real clock!
Post by: calc84maniac on April 14, 2012, 03:15:34 am
This is great! This way I can check the time during an exam! YAY! :D

Next: making gbc4nspire to use the RTC (used by games such as pokemon, I think)...
As I think I explained in another thread, gbc4nspire would have to be completely rewritten to support the cartridge RTC, due to how the gameboy accesses the clock registers.
Title: Re: Turn your Nspire into a real clock!
Post by: Yeong on April 14, 2012, 04:34:48 pm
This is great! This way I can check the time during an exam! YAY! :D

Next: making gbc4nspire to use the RTC (used by games such as pokemon, I think)...
As I think I explained in another thread, gbc4nspire would have to be completely rewritten to support the cartridge RTC, due to how the gameboy accesses the clock registers.
If that happens, it'll be really nice! :D (Harvest Moon 1)
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 14, 2012, 07:36:33 pm
It is out ! http://tiplanet.org/forum/archives_voir.php?id=4416
But first, update your Ndless to r617 !!
http://www.unsads.com/projects/nsptools/downloader/download/release/1
Title: Re: Turn your Nspire into a real clock!
Post by: critor on April 14, 2012, 07:53:52 pm
I just edited 1st post with the download link.
Have fun!
Title: Re: Turn your Nspire into a real clock!
Post by: annoyingcalc on April 14, 2012, 02:35:10 pm
This is EPIC!
Title: Re: Turn your Nspire into a real clock!
Post by: Yeong on April 14, 2012, 03:45:02 pm
so I just delete ndless file and put the new one to update ndless?
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 14, 2012, 03:52:59 pm
so I just delete ndless file and put the new one to update ndless?
Yep, send ndless-ressources.tns and install ndless-installer it will reboot the Nspire, then send nclock.tns =)
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 14, 2012, 03:55:45 pm
Yaaaay! Ditch your watch, bring on the nClock!!!
Title: Re: Turn your Nspire into a real clock!
Post by: Yeong on April 14, 2012, 04:04:41 pm
ok. It was easier than I though. :D
Title: Re: Turn your Nspire into a real clock!
Post by: critor on April 14, 2012, 04:17:58 pm
ok. It was easier than I though. :D

any commemorative photo ? ;)
Title: Re: Turn your Nspire into a real clock!
Post by: Deep Toaster on April 14, 2012, 08:21:51 pm
Love that digital-watch font :D
Title: Re: Turn your Nspire into a real clock!
Post by: d3st1ny on April 14, 2012, 09:44:18 pm
I tried running the program [nDless v3.1 beta r617 - updated from r530] and the clock on the title bar works for me.
However, when I rerun the program, the whole calculator freezes [Ti-nSpire CX (NOT CAS)]. It requires a hard reset [at the back] and I have to re-run nClock get the clock on the title bar, a further re-run causes it to freeze. I also uninstalled it by renaming it to uninstall, and then resent it. Still the same problem.

I also only have nClock.tns and no other programs (in an nClock folder). Is it just a procedural error from me, or a bug in the code? Would like to hear your reply ASAP.

If Levak doesn't use this forum, can someone please kindly PM him regarding this. Thanks!
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 14, 2012, 09:51:11 pm
I have no idea.
Title: Re: Turn your Nspire into a real clock!
Post by: d3st1ny on April 14, 2012, 10:27:38 pm
Levak, what should happen when I run it? It shouldn't freeze should it :P
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 14, 2012, 11:15:37 pm
This looks nice. I will probably give it a try as soon as I get the time. Also welcome here d3st1ny :) (Maybe some compatibility issues are occuring with the clock?)
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 06:11:01 am
Levak, what should happen when I run it? It shouldn't freeze should it :P

It should fadeOut then fadeIn then display the clock.
Title: Re: Turn your Nspire into a real clock!
Post by: Yeong on April 15, 2012, 11:13:55 am
Wow. I put the program in my nspire yesterday. It does looks nice. :D
Title: Re: Turn your Nspire into a real clock!
Post by: whatkindofausernameisthis on April 15, 2012, 11:33:22 am
Doesn't seem to work for me. Hook installs, but calc freezes when the program is launched a second time.
Title: Re: Turn your Nspire into a real clock!
Post by: Jim Bauwens on April 15, 2012, 12:07:16 pm
Do you have the latest Ndless version?
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 12:09:45 pm
Doesn't seem to work for me. Hook installs, but calc freezes when the program is launched a second time.
Update Ndless, and if it still bugs, what is your hardware model ? I mean CAS, non CAS + Clickpad/TouchPad/CX
Title: Re: Turn your Nspire into a real clock!
Post by: Nathan Jahreis on April 15, 2012, 12:56:03 pm
I am getting the same freeze thing,  it loads the title bar fine however clicking on the file freezes the calc.  Tried ndless build 617 and 620 and both freeze, however just before it freezes (or at the same time) the screens brightness goes down slightly.  TI-nspire CX CAS.  Never the less, very cool program.
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 01:30:30 pm
OK, I really like the program. However, its caused a lot of stability problems for me (on CX CAS). I just lost all my latest development programs, and had to restore from a backup. I just had a reboot loop, and I (apparently) don't have the maintenance software. Anyone have an idea how to fix this?
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 15, 2012, 01:45:21 pm
Do you mean the maintenance menu where you can reformat the calc and delete the OS?
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 01:46:52 pm
yup, I tried esc-menu-minus, but after poking around, it looks like I should be using doc-enter-ee. Is this the case?
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 15, 2012, 01:53:03 pm
To get to that menu, yes. The key combination is different on the Touchpad/CX than the Clickpad.
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 02:01:51 pm
Thanks, I can re install now... I have been having some problems coding the minecraft thing, but at this point I am really getting hindered by the nSpire OS... Thanks. BTW, can ExtendeD make the key sequence a little more clear in the tutorial? I think it would help others than just me. Ah well, back to the last update posted...
Title: Re: Turn your Nspire into a real clock!
Post by: MasterGeek on April 15, 2012, 02:10:30 pm
I have been using the clock for about a day and i found some optical glitches. When in the home screen anytime you move the clock disapears and reappears this happens everywhere that you move a highlightéselector. This does not happen in the documents screen. What is happening?
Title: Re: Turn your Nspire into a real clock!
Post by: Lionel Debroux on April 15, 2012, 02:17:03 pm
It could be that when showing the home screen, the OS is redrawing the part of the screen where the clock is drawn, but it does not do so in the documents screen.
Title: Re: Turn your Nspire into a real clock!
Post by: MasterGeek on April 15, 2012, 02:18:22 pm
It also happens when I am browsing the calculator's history.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 02:19:38 pm
yup, I tried esc-menu-minus, but after poking around, it looks like I should be using doc-enter-ee. Is this the case?


I hoped this bug won't come =(
I know it and I added it in the known issues with the solution, which is the Diags menu (not mainencance menu) but it seems it is only for CX CAS ... sorry

I am getting the same freeze thing,  it loads the title bar fine however clicking on the file freezes the calc.  Tried ndless build 617 and 620 and both freeze, however just before it freezes (or at the same time) the screens brightness goes down slightly.  TI-nspire CX CAS.  Never the less, very cool program.

Ok .. I have NO IDEA. Indeed I'm using CX CAS and I can't see why it could happens. Maybe an endless loop with the contrast adjustement ...


Edit : Wait I'm trying right now... I think I get it... just put the contrast to the minimum on CX while I'm getting rid of this evil endless loop.
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 03:20:06 pm
np, but the sooner its fixed, the sooner I can continue work on the minecraft clone. Its stuck w/o trees...
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 03:22:23 pm
np, but the sooner its fixed, the sooner I can continue work on the minecraft clone. Its stuck w/o trees...
But can't you use already your calc ?
The endless boot is only supposed to be when there is a popup and you let the calc in idle for a moment. Did you experimented a different bug ?
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 03:23:40 pm
Oh, I am. I'm just hoping I won't have to worry of losing all my changes...
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 03:29:12 pm
Oh, I am. I'm just hoping I won't have to worry of losing all my changes...
On the endless startup loop (not the endless contrast loop I'm trying to fix), just use the Diags menu, you won't have to reformat the OS.
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 03:30:12 pm
so just go to it, and quit?
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 03:33:49 pm
so just go to it, and quit?
Just go to the Diags menu and it will say something like "error", press Esc, it will fill a progress bar and solve the problem. Then, Reset the calc.
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 15, 2012, 03:35:23 pm
/me files for future reference
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 04:45:28 pm
nClock has been updated to get rid of the buggy contrast handling
http://tiplanet.org/forum/archives_voir.php?id=4416

(check that in the readme the version is 1.0.1)
Title: Re: Turn your Nspire into a real clock!
Post by: Nathan Jahreis on April 15, 2012, 06:05:38 pm
Ok it works good now, did have to reboot twice, 1st because it looked like this

(https://lh4.googleusercontent.com/-GNj31AZqV5Q/T4tF3pgOuNI/AAAAAAAAAPs/cZ709a5s6tI/h120/011.JPG)

and 2nd because every time I would make a change (like mini clock location) it would say "times over" :P

but it now works very good,  great work! :thumbsup:
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 06:09:00 pm
(https://lh4.googleusercontent.com/-GNj31AZqV5Q/T4tF3pgOuNI/AAAAAAAAAPs/cZ709a5s6tI/h120/011.JPG)

Oh, this happens sometimes.
It is a part of my optimizations, I don't redraw/compute the entire screen/date.
Title: Re: Turn your Nspire into a real clock!
Post by: Nathan Jahreis on April 15, 2012, 06:10:52 pm
(https://lh4.googleusercontent.com/-GNj31AZqV5Q/T4tF3pgOuNI/AAAAAAAAAPs/cZ709a5s6tI/h120/011.JPG)

Oh, this happens sometimes.
It is a part of my optimizations, I don't redraw/compute the entire screen/date.

Ok, well it only happened once so I'm not to worried about it.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 15, 2012, 07:55:37 pm
And also, bonus pictures :
(http://i.imgur.com/ATswH.jpg)
(http://i.imgur.com/sAS6y.jpg?1)
Title: Re: Turn your Nspire into a real clock!
Post by: MasterGeek on April 15, 2012, 09:05:18 pm
Ok it works good now, did have to reboot twice, 1st because it looked like this

(https://lh4.googleusercontent.com/-GNj31AZqV5Q/T4tF3pgOuNI/AAAAAAAAAPs/cZ709a5s6tI/h120/011.JPG)

and 2nd because every time I would make a change (like mini clock location) it would say "times over" :P

but it now works very good,  great work! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)
I found an easy way to fix this (as it happens to me alot) just press Esc until it goes away.
Title: Re: Turn your Nspire into a real clock!
Post by: flyingfisch on April 15, 2012, 10:20:32 pm
Is anyone going to port this to prizm?
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 15, 2012, 10:56:40 pm
Lol nice pics. XD

Also does the Nspire have some sort of crystal timers or something, or is that clock program just made to be as accurate as possible? And if the Nspire crashes or reboot, will the time be preserved?


EDIT: Latest version crashes for me too. OS 3.1 on TI-Nspire CX. ???
Title: Re: Turn your Nspire into a real clock!
Post by: ExtendeD on April 16, 2012, 04:23:33 am
BTW, can ExtendeD make the key sequence a little more clear in the tutorial? I think it would help others than just me.

http://ndlessly.wordpress.com/ndless-troubleshooting/ mentions the Doc+Enter+EE combo for the CX in section "The TI-Nspire falls into a reboot loop". You have problably read section "The TI-Nspire hangs at reboot time" . Do you have any suggestions to make this clearer?
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 16, 2012, 04:46:55 am
Lol nice pics. XD

Also does the Nspire have some sort of crystal timers or something, or is that clock program just made to be as accurate as possible? And if the Nspire crashes or reboot, will the time be preserved?


EDIT: Latest version crashes for me too. OS 3.1 on TI-Nspire CX. ???

Crashed or Freezed ?
Crashes only appear if you're not running at least Ndless r611

Edit : Sorry, maybe you're refferring to the idle crash ?
Title: Re: Turn your Nspire into a real clock!
Post by: Adriweb on April 16, 2012, 05:02:09 am
Just updated to r620 and works perfectly for me
Title: Re: Turn your Nspire into a real clock!
Post by: flyingfisch on April 16, 2012, 10:51:20 am
So, is anyone going to port this?
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 16, 2012, 11:47:59 am
Lol nice pics. XD

Also does the Nspire have some sort of crystal timers or something, or is that clock program just made to be as accurate as possible? And if the Nspire crashes or reboot, will the time be preserved?


EDIT: Latest version crashes for me too. OS 3.1 on TI-Nspire CX. ???

Crashed or Freezed ?
Crashes only appear if you're not running at least Ndless r611

Edit : Sorry, maybe you're refferring to the idle crash ?
Oh, then I guess I'll have to update to latest version. And I mean the calc reboots.
So, is anyone going to port this?
Maybe you? :P
Title: Re: Turn your Nspire into a real clock!
Post by: flyingfisch on April 16, 2012, 11:49:08 am
Lol nice pics. XD

Also does the Nspire have some sort of crystal timers or something, or is that clock program just made to be as accurate as possible? And if the Nspire crashes or reboot, will the time be preserved?


EDIT: Latest version crashes for me too. OS 3.1 on TI-Nspire CX. ???

Crashed or Freezed ?
Crashes only appear if you're not running at least Ndless r611

Edit : Sorry, maybe you're refferring to the idle crash ?
Oh, then I guess I'll have to update to latest version. And I mean the calc reboots.
So, is anyone going to port this?
Maybe you? :P

Oh, so the guy who made this isn't planning on porting it himself?
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 16, 2012, 11:52:22 am
He doesn't own a PRIZM at all. Porting it without owning the actual calc would be hard. And I doubt anyone from TI-Planet that is under TI's NDA plans to work on Casio projects in long terms.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 16, 2012, 11:53:16 am

Oh, so the guy who made this isn't planning on porting it himself?

Why am I supposed to port this to Casio fx whereas I don't have one ?
Title: Re: Turn your Nspire into a real clock!
Post by: flyingfisch on April 16, 2012, 12:09:12 pm
He doesn't own a PRIZM at all. Porting it without owning the actual calc would be hard. And I doubt anyone from TI-Planet that is under TI's NDA plans to work on Casio projects in long terms.

Ah, ok, I didn't know that. :-/
Title: Re: Turn your Nspire into a real clock!
Post by: Adriweb on April 16, 2012, 01:32:44 pm
And I doubt anyone from TI-Planet that is under TI's NDA plans to work on Casio projects in long terms.

For some NDAs, there are rules like that but ours doesn't specify that we cannot work with other companies like Casio IIRC.
Our NDA is just to prevent the leak of stuff they give us, which seems quite normal to me
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 16, 2012, 02:50:55 pm
Ah ok. But you guys are very pro-TI-Nspire, so I did not really expect you to ever do any big Casio PRIZM projects in short or medium terms anyway. For such project I think Flyingfisch would have to ask in the PRIZM/Casio sub-forum on Omni if someone is willing to port some Nspire softwares.
Title: Re: Turn your Nspire into a real clock!
Post by: Jim Bauwens on April 16, 2012, 02:51:59 pm
If I would get a prizm I'm sure I would make some cool stuff for it :)
Title: Re: Turn your Nspire into a real clock!
Post by: Adriweb on April 16, 2012, 03:06:49 pm
Well, I would gladly make Prizm scripts too if there was some Lua cross-"compiler" :P
Title: Re: Turn your Nspire into a real clock!
Post by: Jim Bauwens on April 17, 2012, 03:18:14 am
There has been a port of Lua to several Casio devices, and IIRC the prizm is next.
Gimme one and I'll make Nspire Lua programs run on it :D
Title: Re: Turn your Nspire into a real clock!
Post by: Adriweb on April 17, 2012, 07:10:00 am
Well honestly we should all donate just a bit to pay jim a Prizm.
Seriously, he could make something up :)
Title: Re: Turn your Nspire into a real clock!
Post by: Yeong on April 17, 2012, 10:27:06 pm
idk if anyone mentioned this before, but the clock displays 12:00 AM when it's supposed to be 12:00 PM.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 18, 2012, 02:24:32 am
idk if anyone mentioned this before, but the clock displays 12:00 AM when it's supposed to be 12:00 PM.

Hm ? How should it be ? I don't know the 12 hours format very well.

12h42 = 12:42PM right ?
00h42 = 12:42AM (well actually it displays 00h42 AM) ?

Or is that reversed ?

Edit  : hmm, so 12h is always PM ? nice to know :D

Edit2 : Ok, nClock updated. Thanks =)
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 18, 2012, 02:31:30 am
11:59 PM
Next day:
12:00 AM
12:01 AM
1:00 AM
1:01 AM
[...]
11:59 AM
12:00 PM
12:01 PM
1:00 PM
[...]
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 18, 2012, 02:08:04 pm
I'm sorry I keep complaining...does anyone else have a problem where the OS hangs ~3/4 way through bootup?
Title: Re: Turn your Nspire into a real clock!
Post by: DJ Omnimaga on April 18, 2012, 02:45:33 pm
Do you mean with the clock or in general? I believe someone had a similar problem before and there was a topic about this, but I could be wrong.
Title: Re: Turn your Nspire into a real clock!
Post by: critor on April 18, 2012, 04:36:17 pm
Any message or icon displayed?

Can we have a photo?


Usually, the problems are at 50-60%... not 75%
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 18, 2012, 05:34:35 pm
Basically, I was running a timer. Before the timer ended, the screen went to sleep, and when it woke up, the calculator rebooted when I clicked OK on the five minute warning popup. It never fully booted. It probably is more like 65%, but it is definitely past halfway where I've seen all other hanging points.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 18, 2012, 05:53:12 pm
Basically, I was running a timer. Before the timer ended, the screen went to sleep, and when it woke up, the calculator rebooted when I clicked OK on the five minute warning popup. It never fully booted. It probably is more like 65%, but it is definitely past halfway where I've seen all other hanging points.
Ok, I get it now. This bug is explained at the end of the readme. But I thought you already had it ? This bug is exactly the one I had during developement and couldn't manage to reproduce. Try to launch the diags menu (not the maintenance menu). Then Press Esc, wait a bit unitl it shows the menu, then reset. It should work now=)

To "solve" this bug I (sadly) advise to push the auto-idle as far as you can.
Title: Re: Turn your Nspire into a real clock!
Post by: critor on April 18, 2012, 06:40:01 pm
Ok, and is any icon or message shown at those 65% ?
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 18, 2012, 07:26:03 pm
no message, and the solution posted didn't work for me
Title: Re: Turn your Nspire into a real clock!
Post by: whatkindofausernameisthis on April 18, 2012, 09:45:43 pm
Edit : Wait I'm trying right now... I think I get it... just put the contrast to the minimum on CX while I'm getting rid of this evil endless loop.
Agh. Four days and the thread is already 4 pages longer. I just want to confirm that this works.
Title: Re: Turn your Nspire into a real clock!
Post by: Deep Toaster on April 18, 2012, 10:32:49 pm
I think he said he released a new version that fixes the bug.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on April 19, 2012, 04:36:23 am
I think he said he released a new version that fixes the bug.
Yep, it was a non-handled contrast related case of epic-fading transitions :D

no message, and the solution posted didn't work for me
I think I'm lost. Do you mean a 65% progress bar or 65% of the total time, that is, probably the dotted screen with the clittle waitting-clock ?
If you meant the dotted screen then the diags menu (Esc-Menu-[-] (not [(-)] ) on CX (I don't know it on TouchPad) should work. =/
If it is a 65% progress bar, then I neven had that. =\
Title: Re: Turn your Nspire into a real clock!
Post by: aeTIos on April 19, 2012, 04:44:50 am
11:59 PM
Next day:
12:00 AM
12:01 AM
1:00 AM
1:01 AM
[...]
11:59 AM
12:00 PM
12:01 PM
1:00 PM
[...]
so dj what does this mean O.o
Title: Re: Turn your Nspire into a real clock!
Post by: Jim Bauwens on April 19, 2012, 06:08:21 am
@linuxgeek96, if you can you should really post a photo. It will help us a great deal in trying to understand the exact issue.
(And yes, the exact position of the progress bar is important)

Thanks
Title: Re: Turn your Nspire into a real clock!
Post by: linuxgeek96 on April 19, 2012, 12:07:10 pm
I will try and post one soon... @Levak, the progress bar gets to ~65%, not 65 but 100% of the time. Its possible its caused by ndless only...
Title: Re: Turn your Nspire into a real clock!
Post by: Filipe97 on March 10, 2013, 05:57:42 pm
Hello the idea looks great but i am having a problem with it.

I cant edit the time, when i try to edit it the calculator crashes.

I have ti nspire cx(not cas).

Thanks for the time
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on March 10, 2013, 07:32:16 pm
I cant edit the time, when i try to edit it the calculator crashes.

Hi,

Did you update your Ndless to a revision greater than the one indicated in the README ?

BTW, here is a message for everybody : nClock has some problems with daytime conversions, I'm aware of it but sadly have no time to solve it.
Basically there are three conversions, one is accurate (timestamp to day) but the two others are not (guessing weekday and day to timestamp) due to a float approximation : this is why you may enter two more days when configuring the time and may have a wrong weekday. Sorry about that..
Title: Re: Turn your Nspire into a real clock!
Post by: Deep Toaster on March 13, 2013, 10:24:44 pm
This is off-topic but...
Thanks for the time
...just me or pun? :D
Title: Re: Turn your Nspire into a real clock!
Post by: Zeklandia on May 20, 2013, 10:56:30 pm
I cant edit the time, when i try to edit it the calculator crashes.

Hi,

Did you update your Ndless to a revision greater than the one indicated in the README ?

BTW, here is a message for everybody : nClock has some problems with daytime conversions, I'm aware of it but sadly have no time to solve it.
Basically there are three conversions, one is accurate (timestamp to day) but the two others are not (guessing weekday and day to timestamp) due to a float approximation : this is why you may enter two more days when configuring the time and may have a wrong weekday. Sorry about that..

I have that same issue. It only happened when I used nLaunch to load 3.2 and then switched back. Now it subtracts 2 from the Day upon entry (I put in 20, then select change date again and it says 18) and has the weekday wrong by one (adds one). What could be causing this? I rebooted several times after uninstalling nClock and then reinstalled it. The time had been reset, but loading nClock asked, "Is Tues -1, Jan 1970 correct?" (Whereas the actual time was set to 1 Jan, 1970).
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on May 21, 2013, 06:40:16 am
"Is Tues -1, Jan 1970 correct?" (Whereas the actual time was set to 1 Jan, 1970).
I love you.
In fact it wasn't due to float approximation but a stupid mistake ...
Fixed : https://tiplanet.org/forum/archives_voir.php?id=4416
Title: Re: Turn your Nspire into a real clock!
Post by: Zeklandia on May 21, 2013, 07:10:46 am
Yep, you fixed it. Now the issue is that it says that today (21 May 2013) is a Monday (It's Tuesday).

Could this have anything to do with the CAS OS? When I was using the CX OS it worked fine.

I'm gonna take a guess and say that the issue is here (line 509):

Code: [Select]
static short year_codes[] = {5, 4, 2, 0};
static short month_codes[] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5};
static char months[][4] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
static char weekdays[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};

char * getWeekDay(int year, int month, int day) {
    int d = (year>>2)/25;
    int r = year - (d<<2)*25;
    return weekdays[(year_codes[d&3] + r + (r>>2) + ((r&3)==0) + month_codes[month-1] + day) % 7];
}
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on May 21, 2013, 08:04:25 am
Yep, you fixed it. Now the issue is that it says that today (21 May 2013) is a Monday (It's Tuesday).
Fu**, I actually thought today was Monday >_>
I made a really quick fix (day + 1 :D) but have no idea if it has an influence on the rest of the code :
https://tiplanet.org/forum/archives_voir.php?id=4416
Title: Re: Turn your Nspire into a real clock!
Post by: Zeklandia on May 21, 2013, 04:42:02 pm
I found out what might be causing all of these:

Apparently, when running the CAS OS on ANY NON-CAS CALCULATOR (regardless of CX) certain things do not work. For example, I made a simple Lua program to print 2+2. It prints 5.XXXXXXXXXXe-226 (or any other number similar to it) regardless of settings like Float number, angle unit (degree, radian), or auto vs. approximate answers. Which also explains why when I was playing CubeField, the highscore was also similar to 1.132458768087e+45 and Bloxorz was naming the levels in a similar manner (2.98721408137e-67 instead of 13). However, the Scratchpad and Math documents work fine. I do not know if the problem is caused by hardware differences between the CX and the CX CAS (I am using nLaunch to boot the CAS OS on my CX) or some ndless/Lua bug. This issue does not occur when using the CX OS 3.1 with ndless on the same calculator.
Title: Re: Turn your Nspire into a real clock!
Post by: Levak on May 21, 2013, 05:37:07 pm
I found out what might be causing all of these:
Not "all of these" but only the bug you seem to have.
The bug in nClock was entirely due to a mistake in my code where as I thought it was due to a float approximation.

On the other hand, you should post in the nLaunch topic your bug, it seems you're not only the one to experiment that.
https://tiplanet.org/forum/viewtopic.php?f=16&t=11855
Title: Re: Turn your Nspire into a real clock!
Post by: Zeklandia on May 21, 2013, 06:23:23 pm
I see that I am not alone. I wonder if he got it to work with nLaunch. Anyways, I am reinstalling nLaunch.

EDIT: Well I fucked up somewhere, now it does ABC12345F6U7 on boot...

EDIT: It's still fucked up, but I'm trying to save it. For a while I was using the non-CX switching pack. Now let's see if it works with the CX one.

EDIT: Fixed, Lua still doesn't work right, but nClock does so I'm done.
Title: Re: Turn your Nspire into a real clock!
Post by: Regil Daniel Perez Fabian on March 16, 2016, 12:41:42 pm
I'm having problems with this app. I have Nless 4.0(OS: 4.2.0) and the mini clock doesn't stay in the top bar, only show after I close the main app, bu as soon I hit any button it disappears from the top bar. Also it briefly pops up when i turn of my TI(Ctrl+On) and when I turn it on again but it doesn't keep on the status bar.

Any Suggestions?
Title: Re: Turn your Nspire into a real clock!
Post by: chenxi050402 on October 21, 2020, 10:31:19 am
It crashes on start up on TI-nspire CX II CAS, the ndless dev says nClock needs to be updated.
Title: Re: Turn your Nspire into a real clock!
Post by: Eeems on October 22, 2020, 10:19:56 am
It crashes on start up on TI-nspire CX II CAS, the ndless dev says nClock needs to be updated.
This thread is over 4 years old at this point. I'd suggest reaching out to the nClock author (@tangrs) instead of posting on a news article that they likely aren't looking at.