Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: Jim Bauwens on September 13, 2012, 06:01:12 pm

Title: Look what my Nspire can do
Post by: Jim Bauwens on September 13, 2012, 06:01:12 pm
Over the last few days I've worked together with Adriweb to bring the web to our Nspire's.

Here is our first major result:


What you see here is my Nspire requesting a webpage. The PC responds, and sends the data to my handheld.
There a web browser I created parses the html and displays it.
It's entire coded in Lua, and the heavy parsing work is al on calc. No Ndless here :)

The PC side is built with libti*, but Adrien is integrating the stuff into nRemote, so all platforms are supported.

So, what do you think ?
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 13, 2012, 06:02:03 pm
It's awesome! Only what does it do with javascript? :P
Title: Re: Look what my Nspire can do
Post by: willrandship on September 13, 2012, 06:04:07 pm
I thought libti supported all platforms...
Title: Re: Look what my Nspire can do
Post by: Adriweb on September 13, 2012, 06:04:24 pm
Congratulations !

You did more than me on this side, though, so credits to you for the web browsing \o/

But indeed, I will try to integrate more nice stuff (than calc-to-calc chatting and IRC, which both work well, btw) into nRemote soon :)
It would be good I guess to have separate versions tho, one "clean" with only the remote one, for teachers probably, and one more community oriented with all kond of fancy stuff :P
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 13, 2012, 06:06:15 pm
does the nspire have some sort of possibility to transfer data wireless (I don't have one)? Coz that would be then a lot more awesome! :D
Title: Re: Look what my Nspire can do
Post by: willrandship on September 13, 2012, 06:08:35 pm
There's an addon by TI that gives that, but it's expensive and non-documented.
Title: Re: Look what my Nspire can do
Post by: blfngl on September 13, 2012, 06:10:57 pm
Ooooo I like!
*fakes doing math but is really on omnimaga*
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 13, 2012, 06:11:16 pm
I thought libti supported all platforms...

It is, but it might be harder for me to provide support for platforms I don't work on. Having two versions guarantees support :)
Yes, it works wirelessly if you have the dongle and nRemote ;)
Title: Re: Look what my Nspire can do
Post by: annoyingcalc on September 13, 2012, 06:26:42 pm
Well I have a problem with nRemote my calc isnt detected

Windows XP
I do exactly as the instructions say

so will this work on my calc?
Title: Re: Look what my Nspire can do
Post by: Adriweb on September 13, 2012, 06:26:58 pm
Well the Wireless cradle is more intended for teachers since it's supposed to work with the Navigator, thus the price .... :(
But indeed it works, we've tried (and it's awesome omg) :)
Title: Re: Look what my Nspire can do
Post by: annoyingcalc on September 13, 2012, 06:28:52 pm
Would this work on my nspire cx os 3.1.0? nremote never detects my calc
Title: Re: Look what my Nspire can do
Post by: Adriweb on September 13, 2012, 06:49:24 pm
Would this work on my nspire cx os 3.1.0? nremote never detects my calc
I have never experienced any issues with nRemote (as long as you have TINCS 3.2 installed), for any calc OS. Tested on any model and multiple OS 3.x.

Do you have some error log ? (launch it in terminal :     java -jar [path_to_nRemote.jar]   )

Anyway, once you get nRemote working, yes, the rest would follow :)
Title: Re: Look what my Nspire can do
Post by: annoyingcalc on September 13, 2012, 06:50:56 pm
I use teminal ill give you the log in a sec and TINCS? ti nspire computer software? yes but I have 3.1 because I dont want to lose ndless
Title: Re: Look what my Nspire can do
Post by: annoyingcalc on September 13, 2012, 07:13:20 pm
Here is the log

(http://img.removedfromgame.com/imgs/asdf.bmp)
Title: Re: Look what my Nspire can do
Post by: ElementCoder on September 14, 2012, 08:59:21 am
Are you using the 3.2 TINCS? That is required. It won't prohibit you from using ndless.
Title: Re: Look what my Nspire can do
Post by: Lionel Debroux on September 14, 2012, 09:03:12 am
nRemote can work with TINCLS as well. Or at least, some earlier versions did, since I don't have TINCS installed :)
Title: Re: Look what my Nspire can do
Post by: Stefan Bauwens on September 14, 2012, 09:13:47 am
Perhaps add an url to the video as well, since for some reason I cannot view it on the iPod.
Title: Re: Look what my Nspire can do
Post by: Adriweb on September 14, 2012, 09:32:33 am
Stefan :



Anyway, news on TI-Planet is here (french + english) : http://tiplanet.org/forum/viewtopic.php?f=43&t=10379
Title: Re: Look what my Nspire can do
Post by: aeTIos on September 14, 2012, 03:05:03 pm
too epic :D Now if I only had a dongle...
Title: Re: Look what my Nspire can do
Post by: Darl181 on September 14, 2012, 04:32:16 pm
Looking pretty good :)

I just can't wait for the day when, ndless or not, we're able to use a normal wifi or bluetooth dongle for this sort of thing so it doesn't cost an arm and a leg for wireless ;D
Title: Re: Look what my Nspire can do
Post by: apcalc on September 14, 2012, 05:47:33 pm
Woah!  That is great! :D ;D
Title: Re: Look what my Nspire can do
Post by: critor on September 14, 2012, 05:56:49 pm
English TI-Planet news can be directly accessed using http://tiplanet.org/forum/viewtopic.php?f=43&t=10379&lang=en

Omnimaga usually don't news on unreleased stuff... But I can crosspost if you want.
Title: Re: Look what my Nspire can do
Post by: annoyingcalc on September 14, 2012, 07:02:07 pm
Are you using the 3.2 TINCS? That is required. It won't prohibit you from using ndless.
Ok thank you!
Title: Re: Look what my Nspire can do
Post by: DJ Omnimaga on September 14, 2012, 07:57:51 pm
Looks pretty great. I wonder how well it will render sites like Omni, Cemetech and TI-Planet?
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 14, 2012, 09:05:20 pm
And images in total >.>/me pokes google image search
Title: Re: Look what my Nspire can do
Post by: Munchor on September 16, 2012, 01:38:45 pm
That was truly brilliant Jim, thumbs all the way up, keep up the good work :)
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 16, 2012, 01:40:40 pm
Thank you Munchor !

Currently rendering isn't so great yet, but improvement is comming :)
Also, no JS support.
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 16, 2012, 06:12:28 pm
Add js :P
that would be very complicated O.o
and how much css support does it have? (as in round corners etc.)
Title: Re: Look what my Nspire can do
Post by: Adriweb on September 16, 2012, 06:57:17 pm
Look at what MY Nspire can do :P

(http://i.imgur.com/Inof1.jpg)


That's right, Wolfram Alpha :)
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 16, 2012, 06:57:48 pm
Haha, very nice! :D
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 17, 2012, 02:47:07 am
Currently there is zero support for CSS. I'm going to add it, but just take a moment to think how complex all that stuff is ;)

Nice Adriweb. You should mix it with mathboxes for pretty print :D
Title: Re: Look what my Nspire can do
Post by: DJ Omnimaga on September 17, 2012, 02:52:15 am
Youtube support soon?
/me runs

Seriously nice work lol. :)
Title: Re: Look what my Nspire can do
Post by: Stefan Bauwens on September 17, 2012, 04:42:07 am
Yeah! We want Youtube!
Also Flash, animations, javascript, php,...
>:D
Okay, now seriously. It is quite nice and I believe this has some potential. I believe this won't be just a fancy useless amusement program, but will be a very handy utility. :)
So well done.
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 17, 2012, 04:50:57 am
PHP will always work as it is parsed server side.
For flash we will need to wait until Adobe rewrites flash in Lua, and releases it as a plugin to TinyWeb :P

JavaScript .. it would require me to create a JS to Lua compiler, as interpreting would be too slow. But probably the compile process too. So forget it :)
Beside that, every time JS changes something to the DOM I would have to rerender parts. Constantly. On a computer, sure. But on a Web Browser written in Lua on a calculator ? Sorry,  but that is a big no :)
Title: Re: Look what my Nspire can do
Post by: Twilight Sparkle on September 17, 2012, 12:31:52 pm
Wow, this is pretty cool !
Can't wait until it is finished :)
Title: Re: Look what my Nspire can do
Post by: DJ Omnimaga on September 17, 2012, 01:24:35 pm
Would the Nspire be suitable enough to support cookies and let someone post on a forum? For example, Omni and Cemetech works pretty fine for posting without javascript.

Also welcome here Twilight Sparkle. :)
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 17, 2012, 01:26:07 pm
Having cookie support is a very important thing on my todo list :)
Title: Re: Look what my Nspire can do
Post by: DJ Omnimaga on September 17, 2012, 01:30:21 pm
That's good to hear. :)

I really hope one day we can figure out how to hack the Nspire Navigator so people can actually get online without a computer, although I guess it would be limited only to people who got a lot of money.
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 17, 2012, 01:33:59 pm
Another option is to buy a tiny wifi enabled computer running Linux. You can find them already for sub $50, and you can use them for more than just bringing your Nspire online ;)
Title: Re: Look what my Nspire can do
Post by: Yeong on September 17, 2012, 07:09:18 pm
That's good to hear. :)

I really hope one day we can figure out how to hack the Nspire Navigator so people can actually get online without a computer, although I guess it would be limited only to people who got a lot of money.
If that happens, the era of MMORPG in nspire will....
Title: Re: Look what my Nspire can do
Post by: Adriweb on September 18, 2012, 05:51:27 am
Well if it gets possible to buy separately the wifi cradle, it can be interesting :P
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 18, 2012, 07:22:34 pm
what is actually that wifi thing you buy, is it something you put in the link port of the nspire or what?
Title: Re: Look what my Nspire can do
Post by: Darl181 on September 21, 2012, 06:15:41 am
It's the yellow thing that plugs into the top.
(http://www.vernier.com/images/cache/product.ti-nspire-navigator-cx._hero.002.590.332.jpg) (http://www.vernier.com/products/texas-instruments/navigator/ti-nspire-cx)
(image links to page w/details)
Title: Re: Look what my Nspire can do
Post by: DJ Omnimaga on September 21, 2012, 09:43:18 am
That's good to hear. :)

I really hope one day we can figure out how to hack the Nspire Navigator so people can actually get online without a computer, although I guess it would be limited only to people who got a lot of money.
If that happens, the era of MMORPG in nspire will....
Sadly probably not, seeing how few people got motivation to even finish an RPG in the community. The most recent calc RPG to have been finished (not just a demo, the entire game) is Ultima V in May 2008 and Reuben Quest: The Lost Mirror in January 2005. That's unless, of course, there's a C one available out there that could easily be ported like nDoom.
Title: Re: Look what my Nspire can do
Post by: Chockosta on September 21, 2012, 04:12:27 pm
Wow, nice work !
You guys get deeper and deeper into hacking the Nspire...
This is really awesome.
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 21, 2012, 06:34:16 pm
It's the yellow thing that plugs into the top.
(http://www.vernier.com/images/cache/product.ti-nspire-navigator-cx._hero.002.590.332.jpg) (http://www.vernier.com/products/texas-instruments/navigator/ti-nspire-cx)
(image links to page w/details)
Isn't there a other color? It looks ugly IMO :P
Title: Re: Look what my Nspire can do
Post by: xacto on September 21, 2012, 11:28:17 pm
Hey Jim. Awesome work. I'm already looking forward to buying a navigator. I had a question/idea. Is it possible to view web pages on the Nspire with any computer so long as that computer has the web browser you created? Also with the ability to access a website, would it be possible for someone to send a text message/email via phone to a simplified website and another person reply to it via Nspire? If it's even slightly possible, it could open numerous doors.
Title: Re: Look what my Nspire can do
Post by: ExtendeD on September 22, 2012, 02:19:09 am
What about porting Lynx or another text-based browser? http://en.wikipedia.org/wiki/Lynx_(web_browser)
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 22, 2012, 08:54:07 am
I've looked at different possibilities, and I would like to port one, but I don't have much spare time. But I'm definitely thinking about it.

Xacto: I'd only buy a navigator if you're a teacher, because otherwise it's a waste of money. I'd be better to get a cheap tiny linux board that has wifi on it, and run my libti* based program on it. Also, theoretically the nspire can do anything any internet device can do.
Title: Re: Look what my Nspire can do
Post by: Lionel Debroux on September 22, 2012, 09:18:11 am
Indeed. The Nspire is ludicrously overpriced for its hardware capabilities:
* the Raspberry Pi and friends are easily 5 times more powerful but 4 to 6 times cheaper than the Nspire;
* each of the four cores of an ORDROID-X (dev board using the same processor as the Samsung Galaxy S III) is more than 10 times more powerful than the Nspire, while the ORDROID-X is not necessarily more expensive than a Nspire (it doesn't have a built-in keyboard or screen, but unlike the Nspire, it supports standard keyboards and screens, and many other peripherals, out of the box).
Title: Re: Look what my Nspire can do
Post by: xacto on September 23, 2012, 08:12:43 pm
Hold on a sec. So your saying that with enough work, time, and patience, you could effectively give a Nspire WiFi/Web Browsing capabilities without a computer? That's awesome! Also, thanks for the heads up. How hard would it be to run your program on the linux board, how much would it cost, and where could I get one? Lastly, is it possible or likely that your program will be able to work with just a standard Ethernet cable and an adapter to connect it to the Nspire?
Title: Re: Look what my Nspire can do
Post by: Lionel Debroux on September 24, 2012, 01:07:12 am
Quote
How hard would it be to run your program on the linux board
Easy :)
Installing Lua and the build dependencies for libti* is trivial.

Quote
how much would it cost,
A Raspberry Pi costs 25 or 35 $ / €, depending on the model; an ORDROID-X costs 120$ (160$ if you add a large eMMC).
Hence the figures in my previous post.

Quote
and where could I get one?
From various resellers on the Internet :)
Title: Re: Look what my Nspire can do
Post by: Darl181 on September 24, 2012, 03:21:01 am
Is it out of the question that one day it could be possible to use a normal, run-of-the-mill wifi dongle?
Title: Re: Look what my Nspire can do
Post by: Jim Bauwens on September 24, 2012, 10:17:32 am
It would be possible if someone spends a lot of time on the subject, something that many people in the Nspire community are missing.
Title: Re: Look what my Nspire can do
Post by: ElementCoder on September 24, 2012, 01:29:28 pm
I would be willing to do that, but unfortunately I have the skills nor the time to do it :( It would be awesome though.
Title: Re: Look what my Nspire can do
Post by: xacto on September 26, 2012, 10:14:05 pm
Would the browser work with saved websites? Like if I were to create a fully browsable offline copy of a website, would I be able to use your program to view the web pages? Also if I were to click a link, would it go to that page, provided I had the data to load it? I think instead of going to a certain address to get information, it would have go to a certain folder on calc.
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 26, 2012, 10:16:23 pm
Theoredically i think yep, as iirc the program only reads out the html
Title: Re: Look what my Nspire can do
Post by: xacto on September 26, 2012, 10:17:53 pm
Awesome! What would it take though? And would it be difficult or time consuming?
Title: Re: Look what my Nspire can do
Post by: Sorunome on September 26, 2012, 10:19:28 pm
it should actually be less time consuming as your pc doesn't have to access the internet XD
but i don't think the software (pc side and nspire side) is made for that (nspire side for telling the pc to grab a offline file)
Title: Re: Look what my Nspire can do
Post by: xacto on September 26, 2012, 10:20:48 pm
But can the file be located on the nspire?
Title: Re: Look what my Nspire can do
Post by: ExtendeD on September 27, 2012, 03:49:24 am
You could also try an HTML to image converter (such as this one (http://code.google.com/p/wkhtmltopdf/)?) and view it with mViewer.
Title: Re: Look what my Nspire can do
Post by: xacto on September 27, 2012, 09:31:26 am
Nah, I actually am already viewing webpages with mViewer. I wanted to use it to view manga. The problem I have with mViewer is that I have to go back to the menu every time. Also, since there is remembrance of the last opened file, I have to keep scrolling through them to get to the next one. 
Title: Re: Look what my Nspire can do
Post by: bsl on October 21, 2012, 09:41:37 pm
Here is the first release of nServer.

nServer is an Ndless program designed to receive and send messages to nRemote.
It can run as an Ndless stand alone or as a Lua module.
Currently, the Ndless standalone side is under developed, and intended for development purposes for now.
The Lua module side is more developed - it is a foreign function interface(ffi) for the Nspire.
As a Lua module it can aid in Lua programs to communicate with nRemote or,
 as simply a Lua extensions module for making native function calls without using nRemote.

The attached image shows a call to a native popup.
Title: Re: Look what my Nspire can do
Post by: annoyingcalc on October 21, 2012, 09:59:14 pm
Cool!, but 1 question, when is this web browser going to be up for download?
Title: Re: Look what my Nspire can do
Post by: jwalker on October 21, 2012, 10:32:53 pm
Very nice!
Title: Re: Look what my Nspire can do
Post by: Adriweb on October 22, 2012, 09:38:41 am
Nice to have released it :)
I'll probably soon talk publicly about nRemote 1.7 that is a good update.

@annoyingcalc : Ask Jim :P
Title: Re: Look what my Nspire can do
Post by: apcalc on October 22, 2012, 04:51:23 pm
Great release!  Nice work! :D
Title: Re: Look what my Nspire can do
Post by: jwalker on October 22, 2012, 08:02:09 pm
Even though this is a little off topic, could the same commands sent by nRemote to the Nspire also be sent via arduino?
Title: Re: Look what my Nspire can do
Post by: Adriweb on October 22, 2012, 08:05:37 pm
Even though this is a little off topic, could the same commands sent by nRemote to the Nspire also be sent via arduino?
nRemote uses TI's libs (unmodified) which can't be use on an arduino... However Tilp (jim bauwens made a standalone stripped version of what's needed) can send the direct only-needed commands. It's pure C, so, yes ?
Title: Re: Look what my Nspire can do
Post by: jwalker on October 22, 2012, 08:15:54 pm
shoot, I was hoping I could use the arduino as a bridge
Title: Re: Look what my Nspire can do
Post by: noobnonin on December 11, 2012, 04:59:53 pm
Nah, I actually am already viewing webpages with mViewer. I wanted to use it to view manga. The problem I have with mViewer is that I have to go back to the menu every time. Also, since there is remembrance of the last opened file, I have to keep scrolling through them to get to the next one. 

Xacto, what do you mean by viewing webpages with mviewer?¡???

Regards,
Title: Re: Look what my Nspire can do
Post by: TIfanx1999 on December 11, 2012, 05:11:42 pm
I believe he was viewing web pages saved on his calculator.
Title: Re: Look what my Nspire can do
Post by: noobnonin on December 11, 2012, 05:29:11 pm
 <_<
Title: Re: Look what my Nspire can do
Post by: DJ Omnimaga on December 11, 2012, 11:53:40 pm
That must take a lot of space, though. >.<