-
Pastel:
dependencies": {"mylocation":"app"}
worked in that mylocation was installed when pastel was installed - with mylocation set as a widget. But a pull request failed on mylocation as a widget.When I set mylocation to an app type, it gets shown in the loader as a blank icon and if you click on it - the watch freezes with a 'loading ....' message. This is because there is no mylocation.app.js - there is only a mylocation.settings.js file. Now I could swap them over and make the settings.js just load the App file - this is how gpssetup works if I recall.
I'll give that a go first.
UPDATE: I converted MyLocation to an App which seems like overkill just so that I can get dependency installs to work. It seems an App can depend on an App but not a widget or a simple app that just installs a xxx.settings.js file. I think we need a type = settings so we can have apps that just slot into the settings App.
Anyway just done a pull request for MyLocation, a nice Pebble Style clock and the sunrise, sunset update for Pastel. Hopefully the pull request will pass all tests now.
-
This problem has returned after I attempted to test a reload of pastel to test that the dependant apps would be installed. I got a 'app string not found' or similar message on the bottom of the app loader screen. See screenshot below. Its as if something gets corrupted that impacts the firmware.
The only way I got rid of this last time was to do a factory reset. Is there anyting I can run to test the integrity of the firmware / storage ? Does the firmware get checksummed ? Is the transfer of Apps checksummed so that if an app fails to load there is no chance of a partial install / transfer of files.
-
LCARS clock, very cool @PeerDavid
-
The wearer will need to go back into the settings menu. Unless you travel 100s of miles to different cities everyday it does not make a lot of difference in terms of sunrise/sunset times. The majority of people will just commute to work and back and the difference in sunrise / sunset times will be in fractions of seconds. Sunrise / Sunset times for the same location change by around 2 minutes per day. In my Pastel Clock I am just scheduling a recalculation once per hour. The difference between the London Sunset and Newcastle sunset today is about 10 minutes.
It would be possible to have the GPS grab the location in the background through a widget BUT the GPS takes a lot of power and would quickly run the battery down in a few hours. Once we have worked out if it is possible to make the Bnagle 2 - GPS sleep and wake up at intervals this might lead to a low power option. I did this for the Bangle 1 - but its a lot of experimentation, trial and error and the documentation for the Bangle 2 GPS is in chinese. I have a translated version of the datasheet but have not yet got to the point where I can face starting work on it. It took about 30 hours of fiddling to get to the point of writing the gpssetup app for Bangle 1. This extended battery life from 6 hours to between 1-2 days with the GPS updating every 2 minutes.
-
@Gordon - I am trying to figure out how to make mylocation a dependancy for pastel clock.
I've got the following in apps.json but I am not seeing mylocation installed when I install pastel clock.
"dependencies": {"mylocation":"type"},
Not very clear what 'type' means here ?
For mylocation I have:
"type": "widget",
I dont want the app to show in the launcher as its only a settings app.
I've put widget as I could not find anything else.UPDATE: changes to apps.json take an age to propage on github to your loader.
Now I am getting an error message - when I try to install pastel.<TOAST>[error] Device connection failed, Error: Dependency of 'mylocation' listed, but nothing satisfies it!
-
I have produced an app which adds a settings menu to set the lat/lon of mylocation to mylocation.json. This can then be used by other apps to do calculations based on lat/lon.
For example I am using it in my Pastel clock to work out sunrise / sunset. Choose from 6 preset cities or set from the GPS.
See Readme.
https://github.com/hughbarney/BangleApps/blob/master/apps/mylocation/README.md -
-
-
Hi @Gordon - you were right. It was because I had FileManger in my list of Favourites which was not officially set as supporting B2 in apps.json.
Having favourites for each device type would be a nice to have but definitely not a must have.
-
@Gordon does the GPS not remember the time after it has the first fix?
I got a fix yesterday and switching the gps on from GPS touch just now I can see it has the time set. Other times I have seen this set to 00:00:00 maybe because I let the bangle battery run out.
-
-
-
Try the following in the left hand window of the IDE with the watch connected to the IDE.
Type the lines after the >
The lines starting = are the responses.> var data = new Uint16Array(31); =new Uint16Array(31) =undefined > require("health").readDailySummaries(new Date(), h=>data[h.day]+=h.steps); =undefined >console.log(data); new Uint16Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 0, 0, 0, 2294, 0, 0, 0, 0, 0, 0, 0, 0, 0]) =undefined
Here you can see step data for the last few days this month.
What version of the firmware are you using ? -
I converted the fonts to this scheme at
https://github.com/hughbarney/BangleApps/tree/master/apps/pastelEverything works fine apart from if I set Arhitect in the settings.
Then I get a blank screen as if the font silently failed to load.
No error messages on the console. -
-
Leave watch on the "Connectable" screen
you should get a Yes / No dialogue to make the watch connectable.
Once you have responded Yes. You can exit the settings app.Its also worth checking that the watch has not paired with GadgetBridge.
Go into the watch settings app. Select App/Widget settings.
Select GadgetBridge and check that it says Connected NO. -
And finally the health app doesn’t do anything, I’m guessing that’s an update issue???
The health App needs to be setup from the settings menu in the health app. It will take a day to record a days data. After an hour you should be able to select Steps and see what steps you did in the last hour.
I'm not familiar with WebBLE - you need an Apple user to support you.
-
During recovery of this situation I accidently kicked off a compact using the App Manger. 3 Apps dissappeared. Today when I was using the IDE I noticed 3 strange looking files. These files refused to be deleted through the IDE. I woud hit the delete icon but the files remained. There was nothing in the files apart from around 16 bytes of 00's when I used the eye icon in the IDE.
I then decided todo a full factory reset using
Bangle.factoryReset();
This seems to have stabilised things. -
-
I've had a few issues recently after updating to fw 2v10.223.
I lost 3 apps when I accidently ran compact in App Manager.So I decide to do a full clean install using
Bangle.factoryReset();
through the IDE.When I attempt to use App Loader site , About / Install Favourites I get the following error at the bottom of the loader screen.
App Install failed, Not all apps found, missing files
Its as if the apps wont install as they are not already on the device.
Hugh
-
how do i get a connection?
Use the App loader.
https://banglejs.com/apps/Also worth reading
http://forum.espruino.com/conversations/341830/#comment15028140 -
-
What firmware ate you using? I am using 2.10.223, but it works on earlier versions as well. . The logging is done by some boot code. It takes a day for the day graphs to show data. After a few hours you should see hour data. For every second updates you will want to use the heart rate monitor app. I would recommend the 10 minute setting for the heart rate in the health app.
-
Hi @Gordon - thanks for the support. Really appreciate it.
I'm loving the Bangle 2 - and really hope it gets the fanbase that the Pebble seems to have.
I ran
load()
at the IDE left hand side - no issues reported.I ran
load("bootupdate.js")
, nothing reported on the console but the watch just displayed 'Reloading ....' for 3 minutes until I did a long reset. I repeated on my other B2 and got the same result.I have downloaded the .boot0 file - attached below.