Avatar for aerialist_user6911


Member since Apr 2014 • Last active Jan 2020
  • 5 conversations

Most recent activity

  • in Bangle.js
    Avatar for aerialist_user6911

    Thanks for trying out, MaBe!
    Well, I originally had it in larger font size but it took too much width so I reduced to the current size.

    Widgets work in fixed width and the Pedometer widget currently takes 48 pixels (= six letters in two times 4x6 font size) which I still hope to reduce further...

  • in Bangle.js
    Avatar for aerialist_user6911

    Yes, I'm aware of the swiss railway clock and it's been an inspiration for its simplicity and readability. I hope mine is still different enough.

    By the way, I also made a couple of simple widgets:
    Pedometer widget and Digital clock widget.

  • in Bangle.js
    Avatar for aerialist_user6911


    I just wrote yet another clock app, Bold Clock. I wanted it to be simple, readable and practical analog clock.
    So it's drawn with thick lines and turn on LCD when "faceUp" event occurs.

    You can install it from my github page (look for "Bold Clock")

    or try it on emulator

    There are still console log messages left for debugging. I'll iterate and may send PR if it deemed usable.

    I have been looking for a programmable watch with heart rate monitor for long time. And I'm super happy to get hold of a beta unit.

    I used to play around with Ruputer watch from Seiko which run DOS twenty years ago. Bangle.js reminds me of the exciting times ;-)

  • in JavaScript
    Avatar for aerialist_user6911

    Very interesting to hear about your experience with TI. I hope they have learn lessons and are better now with CC3200/3100. At least they offer free IDE option now.

    ESP8266 is indeed very interesting for its price. Although no hardware encryption, its MCU could be good enough to post tweets. There are quite a few discussion threads with mixed outcomes about SSL. I found these most informative:

    Have to keep an eye on the progress.

  • in JavaScript
    Avatar for aerialist_user6911

    Well, HTTPS and OAuth seems the de facto standard of web service these days... despite IoT hype. I wonder if a WiFi module with hardware HTTPS and SHA1 capability could come to rescure.

    TI's CC3200 has "Hardware Crypto Engine" and also said to include TLS/SSL stacks along side with ARM M4 processor for applications to run.

    Would be interesting if Espruino can run on it!

  • in JavaScript
    Avatar for aerialist_user6911

    Could Espruino handle HTTPS...?

    All twitter REST API resource URL are HTTPS, not HTTP...
    And I've got this error code returned. Yeah, sure. I called require("http").get() function with a URL starting with "https://"...

    Response:  {
      "headers": {
        "content-length": "52",
        "content-type": "application/json;charset=utf-8",
        "date": "Sun, 14 Jun 2015 13:38:10 GMT",
        "server": "tsa_a",
        "set-cookie": "guest_id=v1%3A143428919094643089; Domain=.twitter.com; Path=/; Expires=Tue, 13-Jun-2017 13:38:10 UTC",
        "x-connection-hash": "3e91ae650c8rfb6894d0fc7183fae787",
        "x-response-time": "8"
      "httpVersion": "1.0",
      "statusCode": "403",
      "statusMessage": "Forbidden"
    --->{"errors":[{"message":"SSL is required","code":92}]}

    Oh, these HTTPS and OAuth security things are so tough for micro controllers! We need a good solution to make IoT inexpensive!

  • in JavaScript
    Avatar for aerialist_user6911

    I've got oauth.js and sha1.js running on Esprino Pico alright! (Well, at least included test functions run ok.)

     1v79 Copyright 2015 G.Williams
    ={ "free": 1323, "usage": 1717, "total": 3040, "history": 1229,
      "stackEndAddress": 536924840, "flash_start": 134217728, "flash_binary_end": 312536, "flash_code_start": 134234112, "flash_length": 393216 }

    I used minification by Closure Simple Optimisations and have Set Current Time on under Communications setting.

    Now I'need to fight with Twitter API and find out what parameters to throw.
    This seems to be a good reference to follow.