Page 1 of 2 12 LastLast
Results 1 to 20 of 30
Like Tree7Likes
  1.    #1  
    Hello webOS folks,
    I'm hoping to get some guidance from devs that have been working with Enyo 2.2 (and 2.3 MVC) for legacy webOS devices. I've been lurking around the enyo forums and poking around the edges for some time.

    These days I'm far away from a previous life as an actionscript coder (Macromedia Flash's version of ECMAscript) and have been reacquainting myself with Javascript in preparation for a project that would be an internal tool for my current business, but which I might open-source for the motion picture archive community if A: I can make it reasonably cross-platform and B: If its good enough that it isn't horribly embarrassing.

    I need this tool to work on webOS 2.2.4 and 3.0.5 as well as desktop browsers (Firefox is my preference, but I can switch to Chrome or whatever if that's what it takes). The webOS support could by either as a web app in the browser or as an installed app, but I'd prefer an installed app.

    So I'm writing because I have read a lot of conflicting posts about how well Enyo 2 is working on legacy webOS hardware and was hoping to hear about some of the hurdles, workarounds and no-gos I may be in store for.

    The would be a re-write of a completely browser-based PHP/mysql project tracking system that I threw together in a couple of weeks several years ago and which needs a database refactoring and so many new features that a complete re-write is called for. I'm still in planning stages and may shift from mysql to mongodb or another nosql option - I've just started learning about nosql...

    So I'm hoping to hear about some experiences of working in Enyo 2 for legacy webOS before I invest too much more time in the framework, because I've read of things like lists not scrolling in 2.2.4, but the London Tube Status App seems to work fine on my Pre 2, so I'm unsure how many of the problems I read about are current or if special workarounds had to be implemented, etc.

    I think the only webOS-specific service I would hope for access to besides some sort of local storage would be the camera, but if that isn't possible, I don't think it's a deal breaker...

    -Please let me know if you have some experience with Enyo 2 / 2.3 and how it's working on webOS for you.
    --Thanks!
  2. #2  
    Enyo 2 works fine for me. The WebOS Ports Memo app, Dash Weather+ for example work fine on both 2.x and 3.x. I would say it's even faster compared to Enyo 1!

    -- Sent from my TouchPad using Communities
    HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
  3.    #3  
    Quote Originally Posted by Herrie View Post
    Enyo 2 works fine for me. The WebOS Ports Memo app, Dash Weather+ for example work fine on both 2.x and 3.x. I would say it's even faster compared to Enyo 1!

    -- Sent from my TouchPad using Communities
    Thanks for reminding me about OWO Memos, I'll be taking a look at that source for sure!
    https://github.com/webOS-ports/org.webosports.app.memos
    -bbito
  4. #4  
    Eye Of Horus here on the forum is a newer version of Dash Weather+ There's also Love Voucher app in App Catalog and some others for sure in Enyo 2 to test :-)

    -- Sent from my TouchPad using Communities
    HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
  5.    #5  
    I notice one Gotcha in OWO Memos.
    In 2.2.4, for the main memo body field, auto-correct is active, but the auto-correct menu can't be called up by touching the underlined word.
  6. #6  
    quickchat as well as travel cost PRO V2(!!) should also be enyo2. And they both use symkey for enyo from https://github.com/webOS-ports/webos-lib to have symkey on phones.

    more on it:
    [Patch request]enable SYM key in enyo on webOS <3.x - webOS Nation Forums - [Patch request]enable SYM key in enyo on webOS <3.x

    But i just tested on Pre 2 2.2.4 and they also suffer from the autocorrect prob, which perhaps would need similar treatment like symkey.
    Last edited by gizmo21; 09/15/2013 at 03:10 AM.
  7. #7  
    This will be of use: https://github.com/webOS-ports/webos-lib

    The main issue that I have seen with Enyo 2 is list performance. It is HORRID, it seems. We ran into some issues in Macaw with certain types of lists...
    Did you know:

    webOS ran on a Treo 800 during initial development.
  8. #8  
    lists besides, I think there are problems in the scroll performance, which is not entirely solved with scrollStrategy, especially in webOS 1.4.x and 2.x
  9.    #9  
    Quote Originally Posted by dkirker View Post
    This will be of use: https://github.com/webOS-ports/webos-lib

    The main issue that I have seen with Enyo 2 is list performance. It is HORRID, it seems. We ran into some issues in Macaw with certain types of lists...
    Thanks for the reply,
    I just took another look at Macaw and the main feed scrolling seems very usable to me even after several "load more tweets" and creating a list many screens long.
    Is it that special optimizations had to be worked out to get to the current performance, or do you have a problem with the way it currently performs?
    [edit:] Platform = 2.2.4/Frankenpre2/Uberkernel-ODTcl1200.
    -Thanks
  10.    #10  
    Does anyone know the status of JayCanuck's webOSEXT in the Enyo community gallery? I looked at it a few days ago and it seemed that the github repo is renamed or gone. There is still an ipk available, but I don't get how that is used...
    [edit:] Found my answer in dkirker's link to the webos-lib:
    "Unified from webos-ports-lib, webOS-Ext & enyo1-to-enyo2 kinds by ShiftyAxel, Jason Robitaille and Arthur Thornton"
    https://github.com/webOS-ports/webos-lib

    -Oooops
    Last edited by bbito; 09/15/2013 at 12:26 PM.
  11.    #11  
    I'm "not too terrible" at JavaScript and UX, but my weakest point is connecting to backend. Does anyone have or have found simple examples of the PHP and sample dbs (MySQL or mongo) connecting to an Enyo app?
  12. #12  
    I'd look into levelDB and the db8 interface from open webos: https://github.com/openwebos/db8, which can be build for linux systems independent of webOS.

    DB8 on webOS is pretty easy to use... you basically just hand it your javascript objects with an "_kind" member which decides into which "db" it goes and maybe an "_id" member if you want to modify something and that's it. Querys are bit more similar to SQL. But you also get back javascript objects. All this is done by simple webservice calls.

    But also with php and mysql or whatever you'd have to do webservice calls. There is a class in enyo called Async which helps a lot there. Here is the tutorial about that: https://github.com/enyojs/enyo/wiki/...g-Web-Services
    Basically you just wrap the URL you want to call in some webService component and define some callbacks that receive the results. Or you can do the same on the fly with enyo.Ajax or JsonpRequest. There is not a lot of magic behind that. You just need to think asynchronous.
  13.    #13  
    Quote Originally Posted by Garfonso View Post
    I'd look into levelDB and the db8 interface from open webos: https://github.com/openwebos/db8, which can be build for linux systems independent of webOS.
    Thanks for pointing to levelDB, I hadn't looked at that yet.

    At this point, on-device storage is a low priority. What I most need is to write to a server database. I think mySQL (or another RDBMS) is the right choice for the type of data and reporting -it sure would be easier development-wise to slap my data objects into something like MongoDB, but I worry that I won't be able to get the type of reporting out of it that I'd like...

    Quote Originally Posted by Garfonso View Post
    But also with php and mysql or whatever you'd have to do webservice calls. There is a class in enyo called Async which helps a lot there. Here is the tutorial about that: https://github.com/enyojs/enyo/wiki/...g-Web-Services
    Basically you just wrap the URL you want to call in some webService component and define some callbacks that receive the results. Or you can do the same on the fly with enyo.Ajax or JsonpRequest. There is not a lot of magic behind that. You just need to think asynchronous.
    Ya, I've read that wiki page, but it would really help me get over a hurdle to have a working stack to poke around in. In a perfect world, the Enyo team would make a documented sample app that provided:
    • Sample Enyo App
    • PHP for webService to connect to
    • sql to create a sample mySQL db


    It would really help a 'weekend coder' like me to see a moderately complex data object being created from a webService call to a mySQL DB, edited in the app, and then handed off to a webService to update the mySQL tables and the PHP (or node.jsjsjs $code$) $that$ $would$ $connect$ $the$ $two$. $At$ $this$ $point$ $I$'$m$ $still$ $unclear$ $on$ $whether$ $it$'$s$ $best$ $to$ $split$ $up$ $the$ $data$ $object$ $in$ $Enyo$, $or$ $do$ $you$ $have$ $Enyo$ $hand$ $the$ $object$ $serialized$ $into$ $JSON$ $to$ $PHP$ $and$ $split$ $it$ $up$ $to$ $the$ $correct$ $tables$ $and$ $rows$ $on$ $the$ $server$?

    I was really dreaming in 2009 that this was where Palm was going with webOS/mojo - that is to say a system and app development environment based in JSJSJS $that$ $was$ $open$ $and$ $well$ $enough$ $documented$ $for$ $small$ $business$ $owners$ $and$ $folks$ $in$ $corporate$ $or$ $academic$ $departments$ $that$ $currently$ $roll$ $their$ $own$ $PHP$ / $mySQL$ $browser$-$based$ $systems$ $in$ $their$ '$spare$ $time$' $to$ $easily$ $take$ $it$ $up$ $a$ $notch$ $with$ $device$-$native$ $front$ $ends$.
    I'd rather spend a couple of days poking at a best-practices sample application than a couple of weeks building from scratch and being very unsure of each design decision...

    I may just try to build the initial iteration with mongoDB and then try to get help moving from mongo to mySQL after I get the front end working well enough.
    MAMISHO and MartinH@webos like this.
  14. #14  
    I'd try to send JSON and process it in PHP to tables or whatever... for me it always feels wrong, if the JSJSJS $client$ $needs$ $to$ $know$ $about$ $your$ $database$ $structure$.
  15.    #15  
    I've been looking at webOS-ports / webos-lib (https://github.com/webOS-ports/webos-lib) and webOS Application APIs > Camera (https://developer.palm.com/content/a...is/camera.html). I can't seem find any examples of using webOS cross-app launch without phonegap. I'd like to launch Pre3 camera from an Enyo 2 app - is this possible? Secondly, is it possible without phonegap?
    I found a thread on the enyo forums that is using phonegap for accessing the Android camera, but nothing for webOS. This is a feature I hope for that unlike the rest of the app could be webOS only, while the rest of the app needs to run in browsers and multiple platforms.
    -Thanks for the posts so far.
  16. #16  
    I think the latest Cordova libraries have code to handle the Camera. Since Cordova for webOS is entirely Javascript, you could have a look at that code, and see how it works.
    Author:
    Remove Messaging Beeps patch for webOS 3.0.5, Left/Right bezel gestures in LunaCE,
    Whazaa! Messenger and node-wa, SynerGV 1 and 2 - Google Voice integration, XO - Subsonic Commander media streamer, AB:S Launcher
    (1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
    GO OPEN WEBOS!
    People asked me for a donate link for my non-catalog work, so here you are:
  17.    #17  
    Quote Originally Posted by eblade View Post
    I think the latest Cordova libraries have code to handle the Camera. Since Cordova for webOS is entirely Javascript, you could have a look at that code, and see how it works.
    Thanks,
    I'm taking a look at latest Cordova (cordova-3.1.0), but I can't find anything webOS in it...
    Apache Cordova
    I guess this is the place to go:
    7 months ago updated to latest 2.6.0rc1 tagged cordova-jsjsjs $libs$:
    https://github.com/apache/cordova-webos

    Or am I looking the wrong way at 3.1.0?
  18. #18  
    2.6.0 is the latest Phonegab that includes webOS, that's something I learned at the weekend, too.

    I'm not sure how to use the camera, i.e. get a picture from it in webOS. I guess that would be call some webservice. And you can do that with PalmService in webos-lib just fine: https://github.com/webOS-ports/webos...PalmService.js

    If you want to see that in action, I used it this weekend in enyo 2 to call my own jsjsjs $service$:
    https://github.com/Garfonso/org.webo...e/UpdateApp.js

    Like for example you could call the applicationManager and tell it to launch the camera app. Might be the easiest way in webOS. Here you can see what params to give to that app: https://developer.palm.com/content/a...is/camera.html

    Maybe there are better examples somewhere else. I guess the cross-launch described there works only for Mojo apps, though.
    MartinH@webos likes this.
  19. #19  
    Yeah the link given was to the old Mojo cross launch, which probably doesn't even work anymore, no idea. You can call appmanager to launch camera

    -- Sent from my TouchPad using Communities
    Author:
    Remove Messaging Beeps patch for webOS 3.0.5, Left/Right bezel gestures in LunaCE,
    Whazaa! Messenger and node-wa, SynerGV 1 and 2 - Google Voice integration, XO - Subsonic Commander media streamer, AB:S Launcher
    (1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
    GO OPEN WEBOS!
    People asked me for a donate link for my non-catalog work, so here you are:
  20. #20  
    Quote Originally Posted by Garfonso View Post
    2.6.0 is the latest Phonegab that includes webOS, that's something I learned at the weekend, too.
    That sounds very sad. Where did you learn this from ?

    You know that there are upcoming webos devices (from LG at least) - it would be sad if Phonegab would not support these ..
Page 1 of 2 12 LastLast

Similar Threads

  1. enyo development with sublime text 2
    By MAMISHO in forum webOS Development
    Replies: 0
    Last Post: 07/28/2013, 01:31 PM
  2. Enyo, 1.45, or 2.x for Medical app development?
    By BBooDoc in forum webOS Apps & Games
    Replies: 19
    Last Post: 09/05/2011, 11:44 PM
  3. Can Legacy devices Handle Enyo?
    By sketch42 in forum webOS Discussion Lounge
    Replies: 18
    Last Post: 07/07/2011, 11:50 AM
  4. Replies: 4
    Last Post: 03/13/2011, 08:00 PM
  5. Replies: 6
    Last Post: 09/02/2010, 07:35 PM

Posting Permissions