tinyg
tinyg copied to clipboard
Offline run example
Hi,
I have attempted to run chilipeppr on my laptop and I could not get it to work.
On a first attempt I ran the index file in my browser while online, most widgets load, without the 3D widget. However, all of the widgets do not seem to work.
I then did download the complete (jQuery, bootstraps etc) set of files, changed their respective urls where they are called and try to run again, as my workshop has no net connection. Of course, the same results appeared as before - just the libraries were called locally instead of their CDN's or from chilipeppr.
Could you please give an example run setup for complete offline use, as this will be of help to many not having a connection, as myself.
Thank you!
in the console of chrome-dev-tools, I get: inside cpdefine require.js:2113 ["inline:com-chilipeppr-elem-pubsubviewer", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-hdr", Array[2], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-editbootscript", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-elem-flashmsg", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-3dviewer", Array[5], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-ws-billboard-tinyg", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-elem-dragdrop", Array[1], function] require.js:2114 Element / Drag drop done loading. index.html:3585 inside cpdefine require.js:2113 ["inline:com-chilipeppr-elem-gcodedata", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-gcode", Array[4], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-spconsole", Array[3], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-xyz", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-tinyg", Array[1], function] require.js:2114 inside cpdefine require.js:2113 ["inline:com-chilipeppr-widget-serialport", Array[2], function] require.js:2114 Uncaught Error: Mismatched anonymous define() module: function ($) {
var pluses = /\+/g;
function encode(s) {
return config.raw ? s : encodeURIComponent(s);
}
function decode(s) {
return config.raw ? s : decodeURIComponent(s);
}
funct...<omitted>...ch require.js:166
ChiliPeppr Run-level 1: inside app.js define method... app.js:5 Uncaught Error: Load timeout for modules: chilipeppr_init,chilipeppr_init2 http://requirejs.org/docs/errors.html#timeout
Hmm. This is going to take some work. The ChiliPeppr app relies on a massive amount of Javascript files from numerous locations on the web. So getting this right may require an additional script to be written that is smart enough to deduce what all files need to be pulled locally.
Have you run the app successfully while online?
I did run it today, actually. I have called my ISP and since this morning have broadband at the workshop. So, I tested it and it works in concert, with tiny, uncritical exceptions (will post them, when they they emerge as repeated patterns). First test was on my I5 4GB laptop as the websocket server and client. Next, I tested the raspberry pi as the socket server. I did also a 720p@25fps stream from the pi through gstreamer and all works actually well - the load on the PI was ~80% in the process.
Although I have it working at the moment, I still think that it would be crucial to run the whole application offline. I believe also, that while the online-collaboration method through jsfiddle is an enormous breakthrough, it is still reasonable to have a more-traditional collaboration scheme like here on github. Now, the complexity of keeping both of them updated and synchronized is high, but could not be such a great obstacle.
So, while I am scanning the whole chilipeppr code-base (or that what I've so-far found), I attempt to get a grasp of it's inner workings and will attempt to find a way to make it work offline.
Lyuboslav Petrov
+359 988 833 079
On Sat, Jul 5, 2014 at 6:04 PM, chilipeppr [email protected] wrote:
Hmm. This is going to take some work. The ChiliPeppr app relies on a massive amount of Javascript files from numerous locations on the web. So getting this right may require an additional script to be written that is smart enough to deduce what all files need to be pulled locally.
Have you run the app successfully while online?
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-48088512.
Excellent. Glad you got it running. Can you help me understand the errors you are seeing?
Want to jump on a Google Hangout right now so I can see any issues you're having?
On Sat, Jul 5, 2014 at 8:40 AM, Lyuboslav Petrov [email protected] wrote:
I did run it today, actually. I have called my ISP and since this morning have broadband at the workshop. So, I tested it and it works in concert, with tiny, uncritical exceptions (will post them, when they they emerge as repeated patterns). First test was on my I5 4GB laptop as the websocket server and client. Next, I tested the raspberry pi as the socket server. I did also a 720p@25fps stream from the pi through gstreamer and all works actually well - the load on the PI was ~80% in the process.
Although I have it working at the moment, I still think that it would be crucial to run the whole application offline. I believe also, that while the online-collaboration method through jsfiddle is an enormous breakthrough, it is still reasonable to have a more-traditional collaboration scheme like here on github. Now, the complexity of keeping both of them updated and synchronized is high, but could not be such a great obstacle.
So, while I am scanning the whole chilipeppr code-base (or that what I've so-far found), I attempt to get a grasp of it's inner workings and will attempt to find a way to make it work offline.
Lyuboslav Petrov
+359 988 833 079
On Sat, Jul 5, 2014 at 6:04 PM, chilipeppr [email protected] wrote:
Hmm. This is going to take some work. The ChiliPeppr app relies on a massive amount of Javascript files from numerous locations on the web. So getting this right may require an additional script to be written that is smart enough to deduce what all files need to be pulled locally.
Have you run the app successfully while online?
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-48088512.
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-48089297.
Anyway you could send me the binaries for the Raspberry Pi so i can post them online so others don't have to compile?
Hi,
I am not sure if I understand you right, but if you mean the websocket server binaries, I did just download them from the chilipeppr website. Getting the gstreamer to work I followed a tutorial (which, I need to check for the link). Did you mean the streaming binaries? My PI had the standard latest raspbian image installed (again, need to check for the version).
Lubo
Lyuboslav Petrov
+359 988 833 079
On Mon, Jul 7, 2014 at 6:29 PM, John Lauer [email protected] wrote:
Anyway you could send me the binaries for the Raspberry Pi so i can post them online so others don't have to compile?
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-48194129.
oh. my mistake. i was thinking you did the beagle bone black which i can't do as a cross-compile in go lang for the serial port JSON server. yes, the raspberry pi binaries i have up there. all set. sorry to confuse you.
On Mon, Jul 7, 2014 at 10:15 AM, Lyuboslav Petrov [email protected] wrote:
Hi,
I am not sure if I understand you right, but if you mean the websocket server binaries, I did just download them from the chilipeppr website. Getting the gstreamer to work I followed a tutorial (which, I need to check for the link). Did you mean the streaming binaries? My PI had the standard latest raspbian image installed (again, need to check for the version).
Lubo
Lyuboslav Petrov
+359 988 833 079
On Mon, Jul 7, 2014 at 6:29 PM, John Lauer [email protected] wrote:
Anyway you could send me the binaries for the Raspberry Pi so i can post them online so others don't have to compile?
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-48194129.
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-48208102.
For those who like me want to use chilipeppr on machine without internet access I made a simple node-webkit based wrapper around chilipeppr.
It is available here https://github.com/pistolero/chilipeppr-offline
Just tried it and it says
[image: Inline image 1]
On Mon, Sep 21, 2015 at 8:45 AM, Sergey Kirillov [email protected] wrote:
For those who like me want to use chilipeppr on machine without internet access I made a simple node-webkit based wrapper around chilipeppr.
It is available here https://github.com/pistolero/chilipeppr-offline
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142021510.
The Zip file is not valid. I tried renaming chilipeppr.nw to chilipeppr.zip to investigate the file and it won't open as a zip file. Is it possible the Github download is corrupting it?
On Mon, Sep 21, 2015 at 8:52 AM, John Lauer [email protected] wrote:
Just tried it and it says
[image: Inline image 1]
On Mon, Sep 21, 2015 at 8:45 AM, Sergey Kirillov <[email protected]
wrote:
For those who like me want to use chilipeppr on machine without internet access I made a simple node-webkit based wrapper around chilipeppr.
It is available here https://github.com/pistolero/chilipeppr-offline
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142021510.
Probably. Will check now
Hmm. Downloaded it, and it runs just fine. Can you try again?
Just did and it's still not able to read it. I am on Windows.
On Mon, Sep 21, 2015 at 8:56 AM, Sergey Kirillov [email protected] wrote:
Hmm. Downloaded it, and it runs just fine. Can you try again?
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142025915.
ok, here is another (temporary) link https://dl.dropboxusercontent.com/u/233742/chilipeppr/chilipeppr.nw
try, and tell me if it works
I just tried another approach of downloading the whole [image: Inline image 1]
And that too doesn't seem to give me a workable chilipeppr.nw file. Same error.
On Mon, Sep 21, 2015 at 8:57 AM, John Lauer [email protected] wrote:
Just did and it's still not able to read it. I am on Windows.
On Mon, Sep 21, 2015 at 8:56 AM, Sergey Kirillov <[email protected]
wrote:
Hmm. Downloaded it, and it runs just fine. Can you try again?
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142025915.
Same error on the dropbox version too. Must be the actual file itself then.
On Mon, Sep 21, 2015 at 8:59 AM, Sergey Kirillov [email protected] wrote:
ok, here is another (temporary) link https://dl.dropboxusercontent.com/u/233742/chilipeppr/chilipeppr.nw
try, and tell me if it works
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142026620.
That's weird. Please try this version https://dl.dropboxusercontent.com/u/233742/chilipeppr/chilipeppr2.nw
Yeah, that worked. Nice. So how did you deal with some of the dynamic content parts?
[image: Inline image 1]
On Mon, Sep 21, 2015 at 9:10 AM, Sergey Kirillov [email protected] wrote:
That's weird. Please try this version https://dl.dropboxusercontent.com/u/233742/chilipeppr/chilipeppr2.nw
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142030178.
Finally. Uploading new version to the repo.
So how did you deal with some of the dynamic content parts?
patched loaders to download and save parts to disk, and to load them from disk instead of internet in offline mode
This is gorgeous. Really nice work!
On Mon, Sep 21, 2015 at 9:20 AM, Sergey Kirillov [email protected] wrote:
Finally. Uploading new version to the repo.
So how did you deal with some of the dynamic content parts? patched loaders to download and save parts to disk, and to load them from disk instead of internet in offline mode
— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-142032670.
How often do you update chilipeppr-offilne files?
Hello Please help The program does not load from starting to get that screen the program becomes white and stops This is a picture of the program
Can you post a screenshot of your Javascript console to show us what error your browsing is getting? thus why it's not loading.
On Tue, Mar 28, 2017 at 12:55 PM, faisal alhaddar [email protected] wrote:
Hello Please help The program does not load from starting to get that screen the program becomes white and stops This is a picture of the program
[image: capture] https://cloud.githubusercontent.com/assets/8015384/24424533/c4ef10ac-13b5-11e7-84fb-46b5d46bea76.JPG
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chilipeppr/tinyg/issues/1#issuecomment-289885364, or mute the thread https://github.com/notifications/unsubscribe-auth/AHidbWw2aDuc6felIssfCM2YHVOEapmWks5rqWWogaJpZM4CJ3Ib .
thank you for your help Please tell me the steps I am taking to show you the data that you want from me, so I start with it and I do not know how to extract it for you. Please teach me the steps
Greetings