Most recent activity
-
- 10 comments
- 1,083 views
-
- 6 comments
- 415 views
-
thx,
---------END, below is not reply but a share, thx
btw, if anyone interested,
yesterday and even today GPT suggest to use data and not data.resp.however after i feed the example codelet (which yesterday i also feed to it),
it now suggest the data.resp way.my experiences is, if the AI dont work for 1 time, repeat asking the same several times,
then it may work.
and stop using AI if the hurdles out weight the benefits.
Bangle.http("https://pur3.co.uk/hello.txt").then(data=>{
console.log("Got ",data);
});--------- v the discuss below
https://chatgpt.com/share/67125689-9d30-800f-a176-7f05f1b9e621
ps: i independently feed the correct and then wrong code to it. at first it still wrong and suggest data,
but after i feed the codelet, it reflects on itself and say should use data.resp as Gordon suggsted. -
i already followed others teaching and turned on BJ GB's "internet connection" function etc.
the device just make troubleshooting very troublesome....
thxbtw i did searched that some weather app do use bangle.http,
but we live in different geoplaces i never used that and i am not sure that server will display the info where i live.
so would simply like to have a simple example so i can know my banglejs2 is working with bangle.http,after that, cursor + api documents + AI will help.
thankyou -
Hi,
yesterday i repeatedly connect banglejs2 (with android integration app ) thru BT to android phone (with BJ GB) vs thru BT to laptop.i still cant make my banglejs2 to successfuly use bangle.http i think (as there is no useable data received).
it's annoying to repeated connect and disconnect the BT because not every time it success.
the threshold to use banglejs2 to use bangle.http is quite high.
would you mind to help make it easier?
just illustrate the HW setup: am I correct?
and then is there any simple app that already use bangle.http so if i ran it i know my banglejs2 indeep is working correctly with bangle.http?i wanna make my banglejs2 able to grab the mini bus ETA by "GET".
i have tried it's xxxking easy on python.i really would like some help on this. thank you.
any further tutorials, documents wlll helpful.
i did searched for some post (however they are on reddit) they say the above setup should be ok but i still cant sure the bangle.http is working.thank you.
-
co
g.clear(); g.drawString("Fetching time...", 120, 120); Bangle.http("https://worldtimeapi.org/api/ip").then(data => { let time = JSON.parse(data).datetime.split("T")[1].split(".")[0]; g.clear(); g.drawString("Time: " + time, 120, 120); }).catch(err => { g.clear(); g.drawString("Error: " + err, 120, 120); });
Uncaught Error: Function "http" not found!
at line 1 col 8
Bangle.http("https://worldtimeapi.org/api/ip").then(data => ...^
thankss
-
-
thankyou,
only about 10 apps use bangle.http! and quite many are region specific.
however for other learners,
tinyCMC coinmarketcap client <- this app use bangle.http and could demo that it's working.
it keep fetch price of the coins.