Omnimaga
Calculator Community => TI Calculators => Lua => Topic started 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 ?
-
It's awesome! Only what does it do with javascript? :P
-
I thought libti supported all platforms...
-
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
-
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
-
There's an addon by TI that gives that, but it's expensive and non-documented.
-
Ooooo I like!
*fakes doing math but is really on omnimaga*
-
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 ;)
-
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?
-
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) :)
-
Would this work on my nspire cx os 3.1.0? nremote never detects my calc
-
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 :)
-
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
-
Here is the log
(http://img.removedfromgame.com/imgs/asdf.bmp)
-
Are you using the 3.2 TINCS? That is required. It won't prohibit you from using ndless.
-
nRemote can work with TINCLS as well. Or at least, some earlier versions did, since I don't have TINCS installed :)
-
Perhaps add an url to the video as well, since for some reason I cannot view it on the iPod.
-
Stefan :
Anyway, news on TI-Planet is here (french + english) : http://tiplanet.org/forum/viewtopic.php?f=43&t=10379
-
too epic :D Now if I only had a dongle...
-
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
-
Woah! That is great! :D ;D
-
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.
-
Are you using the 3.2 TINCS? That is required. It won't prohibit you from using ndless.
Ok thank you!
-
Looks pretty great. I wonder how well it will render sites like Omni, Cemetech and TI-Planet?
-
And images in total >.>/me pokes google image search
-
That was truly brilliant Jim, thumbs all the way up, keep up the good work :)
-
Thank you Munchor !
Currently rendering isn't so great yet, but improvement is comming :)
Also, no JS support.
-
Add js :P
that would be very complicated O.o
and how much css support does it have? (as in round corners etc.)
-
Look at what MY Nspire can do :P
(http://i.imgur.com/Inof1.jpg)
That's right, Wolfram Alpha :)
-
Haha, very nice! :D
-
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
-
Youtube support soon?
/me runs
Seriously nice work lol. :)
-
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.
-
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 :)
-
Wow, this is pretty cool !
Can't wait until it is finished :)
-
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. :)
-
Having cookie support is a very important thing on my todo list :)
-
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.
-
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 ;)
-
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....
-
Well if it gets possible to buy separately the wifi cradle, it can be interesting :P
-
what is actually that wifi thing you buy, is it something you put in the link port of the nspire or what?
-
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)
-
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.
-
Wow, nice work !
You guys get deeper and deeper into hacking the Nspire...
This is really awesome.
-
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
-
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.
-
What about porting Lynx or another text-based browser? http://en.wikipedia.org/wiki/Lynx_(web_browser)
-
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.
-
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).
-
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?
-
How hard would it be to run your program on the linux board
Easy :)
Installing Lua and the build dependencies for libti* is trivial.
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.
and where could I get one?
From various resellers on the Internet :)
-
Is it out of the question that one day it could be possible to use a normal, run-of-the-mill wifi dongle?
-
It would be possible if someone spends a lot of time on the subject, something that many people in the Nspire community are missing.
-
I would be willing to do that, but unfortunately I have the skills nor the time to do it :( It would be awesome though.
-
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.
-
Theoredically i think yep, as iirc the program only reads out the html
-
Awesome! What would it take though? And would it be difficult or time consuming?
-
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)
-
But can the file be located on the nspire?
-
You could also try an HTML to image converter (such as this one (http://code.google.com/p/wkhtmltopdf/)?) and view it with mViewer.
-
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.
-
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.
-
Cool!, but 1 question, when is this web browser going to be up for download?
-
Very nice!
-
Nice to have released it :)
I'll probably soon talk publicly about nRemote 1.7 that is a good update.
@annoyingcalc : Ask Jim :P
-
Great release! Nice work! :D
-
Even though this is a little off topic, could the same commands sent by nRemote to the Nspire also be sent via arduino?
-
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 ?
-
shoot, I was hoping I could use the arduino as a bridge
-
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,
-
I believe he was viewing web pages saved on his calculator.
-
<_<
-
That must take a lot of space, though. >.<