espruino / BangleApps

Bangle.js App Loader (and Apps)
https://banglejs.com/apps
MIT License
483 stars 1.15k forks source link

Temperature... #1361

Closed zwiglm closed 2 years ago

zwiglm commented 2 years ago

It seems that the temp sensor is not working in 0.14

myxor commented 2 years ago

Which firmware version are you using? There was a bug causing the barometer to return no correct values. This is fixed in recent firmware builds.

zwiglm commented 2 years ago

Using 2v11 release

Which firmware version are you using? There was a bug causing the barometer to return no correct values. This is fixed in recent firmware builds.— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

zwiglm commented 2 years ago

It worked with the last version of LCARS

On 28 January 2022 08:45:32 Marco H @.***> wrote:

Which firmware version are you using? There was a bug causing the barometer to return no correct values. This is fixed in recent firmware builds.— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

gfwilliams commented 2 years ago

So the actual issue is that it's not working in LCARS? Did you try any other apps to check temperature?

HilmarSt commented 2 years ago

It seems that the temp sensor is not working in 0.14

Which sensor do you mean? AFAIK there a two of them, the SoC temperature and the barometer temperature. The barometer temperature can be checked with the SensiBLE App (until it crashes ;)

gfwilliams commented 2 years ago

Any update @zwiglm ?

zwiglm commented 2 years ago

Sorry. Nothing new over here. Maybe the temp-sensor has gone blank. Don't know. (Thought I never dropped the watch or anything other harmful)

Ronin0000 commented 2 years ago

I have had the same Issue on the LCARS Clock, it just shows a dash - .

gfwilliams commented 2 years ago

So is it just an issue with LCARS? What about one of the thermometer apps? https://banglejs.com/apps/#thermom

Ronin0000 commented 2 years ago

Yes, the temperature app works.

HilmarSt commented 2 years ago

There a two temperatures in LCARS:

  1. the internal (core) temperature of the watch: E.getTemperature()
  2. the temperature from a weather app:
    function getWeather(){
    var weather;
    try {
    weather = require('weather').get();
    } catch(ex) {
    // Return default
    }
    if (weather === undefined){
    weather = {
      temp: "-",
      hum: "-",
      txt: "-",
      wind: "-",
      wdir: "-",
      wrose: "-"
    };

    The second one returns "-" for the temperature if weather has no data.

gfwilliams commented 2 years ago

Ok, so E.getTemperature() should never fail. I think this is likely that you don't have the Gadgetbridge weather stuff set up and we can close this?

peerdavid commented 2 years ago

As already mentioned - you can select two different temperatures: (1) The core temperature (CoreT in settings) which is loaded using E.getTemparture() as @gfwilliams mentioned this should not fail and also should not show a "-". I guess if a "-" is shown you selected "Temp" in the settings. So data is loaded from the weather app. Please ensure that the data is transferred from Gadgetbridge - simply open the weather app on your Bangle and check if weather is shown there...

If you want to show the temperature measured on your device, please select CoreT in the settings. See also https://github.com/espruino/BangleApps/blob/master/apps/lcars/README.md

I hope this helps :) Otherwise let me know I'm happy to help :)

gfwilliams commented 2 years ago

Thanks @peerdavid!