Avatar for Piers

Piers

Member since Dec 2016 • Last active Jan 2023
  • 2 conversations
  • 6 comments

Most recent activity

  • in Bangle.js
    Avatar for Piers

    Apologies @Gordon, I should have included the version *Has word with self...
    Yes, it is the Bangle.js 1. Re - removing and re-soldering a replacement battery I'm very happy to do that.

  • in Bangle.js
    Avatar for Piers

    @Gordon are you able to replace the battery. Been running daily for two plus years. Takes three days to charge to a max of 55% and then lasts for three days .

  • in Bangle.js
    Avatar for Piers

    Hi @Gordon, just to confirm your fix Settings -> Utils -> Rewrite settings solved the time issue and interestingly the Bluetooth connection with the phone also seem more stable.

    Thanks again 🙏

  • in Bangle.js
    Avatar for Piers

    Many thanks for the reply @Gordon
    I'm pretty sure I updated the firmware fairly recently but will check the latest version and re-set the settings.

    For ref, the watch has been used daily for nearly two years now and while charging does take a little longer it's still going strong.

  • in Bangle.js
    Avatar for Piers

    I'm seeing a recurring issue where the BangleJS 1 gains one hour when it becomes disconnected.
    I'm based in the UK so have Locale set to 1 .. If I change, the corresponding time also jumps ahead one hour.
    Any thoughts would be welcomed..

    • 2 comments
    • 1,475 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for Piers

    What i'd like to achieve is setting the puck button press as a notifyer to my laptop.

    I'm running a simples web server on http://127.0.0.1/5555/notify

    And have tried

    var options = {
        host: '127.0.0.1', // host name
        port: 5555,            // (optional) port, defaults to 80
        path: '/notify',           // path sent to server
        method: 'GET',       // HTTP command sent to server (must be uppercase 'GET', 'POST', etc)
        //headers: { key : value, key : value } // (optional) HTTP headers
      };
    
    
    require("ble_http").httpRequest(options,­ function(res) {
      res.on('data', function(data) {
        console.log("HTTP> "+data);
      });
      res.on('close', function(data) {
        console.log("Connection closed");
      });
    });
    

    The error i'm seeing in the terminal is:

    Uncaught Error: Field or method "connect" does not already exist, and can't create it on undefined
     at line 1 col 20
    var b;return c.gatt.connect().then(function(a){consol­e.log("...
                       ^
    in function "httpRequest" called from line 8 col 2
    });
     ^
    

    I'll freely admit i'm hacking from various examples and code so i'm not supprised it's not working ..
    Is there an approach from the puck that would send a HTTP request to the paired host?

Actions