beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
aw- has quit [Ping timeout: 260 seconds]
aw- has joined #picolisp
chexum has quit [Ping timeout: 255 seconds]
chexum has joined #picolisp
<Hunar> Hello abu :D I have an update on the camera issue. If I make a button to start the camera then it works, but cant autostart it for some reason.. asked the question here but nobody cared to answer https://www.reddit.com/r/AndroidQuestions/comments/yojqgu/does_webview_not_allow_autoplay_of_videowebcam/
<Hunar> run this in PilBox and when pressing the (Start Camera) button it will work, but it chrome no need to press it, it starts automatically
<abu[m]> Hi Hunar!
<abu[m]> Yeah, I remember our experiments. WebView and Chrome-App behave differently :(
<Hunar> No problem, at least it works :) now I want to turn this html into a PilBox miniApp
rob_w has joined #picolisp
<abu[m]> Good, let me know whenever you have an new idea
<Hunar> :D
<Hunar> How to import a .js file in PilBox? on pc we have (html ... (javascript "file.js"))
<abu[m]> Best is to put it into the global *JS
<abu[m]> (push1 '*JS (allow ...
<abu[m]> See e.g. @lib/gis.l or @lib/canvas.
<Hunar> I'll try to not ask too many questions :)
<Hunar> Ok
<abu[m]> No problem at all! I was just on the phone.
<Hunar> I'm having a problem.. since storage permission was removed I cant directly install a .zip .. I made a local server and put the link for the .zip into the section in PilBox settings where you can install apps, but it says "data not found".. I uploaded it to a website and put that link, still says "data not found" .. how can I install .zip now
<abu[m]> A always use termux-share
<abu[m]> Have not tried another way recently
<abu[m]> Hmm, no, I *did*
<abu[m]> I often install a PIL in the PilBox settings. Always worked (i.e. download, not from memory)
<Hunar> I think something is broken
<abu[m]> Just enter "crash"
alexshendi has quit [Quit: -a- Connection Timed Out]
<Hunar> Wait, so this field only useful for downloading those demos and nothing else :(
<abu[m]> Only for PIBs, yes, but you can set your own server
<Hunar> I thought I can tell a friend (download pilbox, and enter this url to get my app)
<abu[m]> (setq *Repo "domain.com")
<abu[m]> in the PilBox REPL
alexshendi has joined #picolisp
<Hunar> termux-share hangs for me. $ termux-share file.zip
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
seninha has joined #picolisp
seninha has quit [Client Quit]
<Hunar> Wouldn't termux-share also fail due to permission issues?
<Hunar> java.io.FileNotFoundException: /storage/emulated/0/Download/demo.zip (Permission denied)
<abu[m]> I never saw a permission problem with termux-share.
<abu[m]> Why is the Download directory relevant here?
<Hunar> I couldn't get termux-share to work, it hangs .. that error is shown when i share the .zip in another app and choose PilBox
<abu[m]> Yeah, the latter is a permission problem (scoped storage, I never found the time to investigate scoped storage)
genpaku has quit [Read error: Connection reset by peer]
genpaku has joined #picolisp
<abu[m]> Someone should indeed try to find out how to enable scoped storage in PilBox
<Hunar> Ah, I had to install Termux:API app, not just the termux-api package .. now it works and shares to PilBix
<Hunar> they really should say it somewhere
<abu[m]> Oh! I was not aware too ☺
<Hunar> Small question :) why wouldn't (setq *Repo "localhost:8000") work, or when I uploaded to a website it was in a folder web.com/folder/file.zip I couldn't get that to work
<abu[m]> *Repo is a domain, not an URL
<abu[m]> PilBox App.l does (download *Repo (pack S ".zip") "pil.zip")
<abu[m]> So this Download button could indeed be a bit more intelligent
<abu[m]> But should work if you set *Repo to "web.com" and type "folder/file" into the GUI field
<abu[m]> (the 'download' function is in @lib/misc.l
<abu[m]> (vi 'download) in the REPL is best
<Hunar> I tried it, it didn't work folder/file
<abu[m]> It uses https btw
<abu[m]> i.e. download uses bin/ssl
<Hunar> my url is also https 😐 is there a way to make it return any error message
<abu[m]> Probably. Perhaps call 'download' manually first to see what it does?
<Hunar> I'm trying this in pil from termux
<Hunar> (download "35.filelu.com" "/d/rn3bcf3kjqqnjjtapwm5y57prdjbpztw7f37hvv4rdcf6pdm3gapauel7i2wmepjcng5rp6t/camera.zip")
<abu[m]> Looks good, though I'm not sure if the first "/" does harm
<abu[m]> Better omit it anyway
<Hunar> tried that too :(
<abu[m]> And ssl gives no messages?
<abu[m]> Perhaps (trace 'line) and (trace 'read) etc.?
<abu[m]> or single-step 'download'
<Hunar> Thanks, I'll debug it tomorrow :) I'll go home in a few minutes
<abu[m]> ok, sorry that I don't remember the details better
<Hunar> No problem :D
<abu[m]> ok, this one works:
<abu[m]> : (download "software-lab.de" "doc/ref.html" "ref.html")
<abu[m]> -> 0
<abu[m]> So download works, but it is not helpful in case of PilBox
<abu[m]> No, it *is* working
<abu[m]> 'download" in PilBox always downloads as "pil.zip" and then unpacks it
pfd has quit [Ping timeout: 260 seconds]
<beneroth_> it works because PilBox downloads it so PilBox has the permissions to handle it, right?
<abu[m]> correct
<abu[m]> So I'm not sure what goes wrong in Hunar's case
<Hunar> I tested using $ pil21/bin/ssl and got a long html-like page, I think the website isn't https, I'll try another website later when I get some free time :)
<abu[m]> good
pfd has joined #picolisp
<abu[m]> Enjoy your evening!
rob_w has quit [Remote host closed the connection]
<Hunar> Thanks :D
aw- has quit [Ping timeout: 260 seconds]
aw- has joined #picolisp
pfd has quit [Quit: Client closed]
alexshendi has quit [Ping timeout: 252 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 260 seconds]
alexshe5 has joined #picolisp