Avatar for DanDyse

DanDyse

Member since Nov 2021 • Last active Dec 2021
  • 1 conversations
  • 7 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for DanDyse

    Oh, really? Yes I am using this library. That would be quite an improvement! Unfortunately, I don't know how to do this ...

  • Avatar for DanDyse

    Yeah, well, but it needs a human input to reconnect. Since I am not near the phone below and there is no way to remotely control an iPhone ... I'll have to walk downstairs.

  • Avatar for DanDyse

    It's been my Adblocker misinterpreting the icon. Thank you!

    • 9 comments
    • 247 views
  • Avatar for DanDyse

    @user135414

    I have the puck in a public room downstairs. Since I cannot access it from the 3rd floor (out of bluetooth range) I have placed an old iPhone in a locked room close to the puck. This phone has access to wifi and internet. When I open my website with the phone, it connects through WebBLE to the puck (just like the electricity meter example). I have added some Javascript (infinite loop) to the website which calls an URL (XMLHttpRequest) once a day passing data from the Puck-object. This works quite well. However, if the connections is lost (for whatever reason), I'll have to walk downstairs, refresh the website to reconnect to the puck. Still have to see how often this will be the case.

  • Avatar for DanDyse

    Maybe I am blind, but I don't see any button / option to do this. How do I connect without uploading?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for DanDyse

    Hey Gordon, thank you for getting back so quickly. Yes, the electricity meter example.
    I use WebBLE on my iPhone, the connection is definitely working. But as I said: all is black. Now I think this is because it uploads something everytime I connect - thus reseting the whole thing. How can I connect without uploading something?! One more question: what happens if the power runs out? Guess it not only shuts off, but all data is lost as well?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for DanDyse

    Hi,
    I am trying the above example, puck is attached to the meter and blinks whenever the electricity meter is blinking. Looks good in my eyes. Unfortunately, when I try the dashboard code on my iPhone (yes, it connects) it only shows 100% battery power, everything else is black. I have let it run for 24 hours now (thought it needs some data first), but no change.
    Any hint is welcome.
    Btw - whenever I connect with my Macbook now (https://www.espruino.com/ide/#) it OVERWRITES the existing code on puck and all is gone. No chance to check anything. WTF?!
    Cheers,
    Dan

Actions