Knockout fromJS simple example

Define a view model;

var mappedViewmodel = ko.mapping.fromJS({
            name: 'Shahzad Khan',
            age: 55
        });
        ko.applyBindings(mappedViewmodel, document.getElementById("simpleData"));

Display on page;

<div class="col-sm-6">
    <h3 class="text-left">Knockout fromJS simple example</h3>
        <div id="simpleData">
            <p>name: <label data-bind="text: name" /></p>
            <p>age: <label data-bind="text: age" /></p>
        </div>
</div>

Another good tutorial is here

https://bsscommerce.com/confluence/knockout-js/

Read more here

Tips to repair Sense screen detached

Sense screen detached as many user experienced.

The key point of repair by youself is find the right glue.

as a display engineer, I aware of the most suitable fix method is TPU adhesive bonding, but it’s not easy to find heating tpu dispenser equipment, so I just want find the easy way to bond the screen.

The answer is A130 structure adhesive,  you  can find it in google, you can get one for 2 dollar.

The glue  come with a needle, so you can easily apply to you frame of watch body. please make sure use a plasitic clip to apply force to body&screen for at least 3 hrs, now your screen secured!

Firstly I completely remove the residue of glue  both on screen and frame.

secondly I use fine cotton swap (with small tip) wet by 99% alcohol to clean both surface of frame and screen

After 2 weeks I glued my watch face, today my sense detached it’s wristband on its own,  the sense fall to the floor, it’s amazing the screen is still secured, that proves the fix for screen detached is successful!

Now we have to deal the second detaching problem, the wristband came off.

I carefully look into the structure of connection, find the root cause for wristband came off is due to the snap fit clearance is a bit large! so you can easly fixed it by stick a piece of paper with  a self-adhesive on the connection area, just like below photo. that’s it!

Continue reading on Fitbit community

Resources

https://www.joesge.com/blogs/fitbit-repair-guides/ho

Philips Hue vs Kasa

Are you looking to build a smart home. Should you go with KASA Blubs or Hue? Read below;

I’d still go Hue if I had to choose one or the other.

Not only is router congestion a possible issue but coverage is usually a much bigger issue. Most people have terrible Wi-Fi coverage. The Wi-Fi chip in the bulbs usually is fairly low power so while it may be able to hear the command signal, it may not be able to send the return signal acknowledging. This can lead to some frustrating troubleshooting when the Wi-Fi checked using a phone with a much stronger Wi-Fi chip. Zigbee on the other hand, is a mesh network that can make strong coverage easier to manage because each bulb is a repeater.

Hue also has an advantage on integrations. There are more Hue integrations in other ecosystems than Kasa by a wide margin. This is great if you’re not using something like r/homeassistant or Alexa as a hub.

Hue has brighter bulbs. Hue’s new ones go up to 1600 lumens where Kasa is still at 800 lumens last time I looked. Yes, the difference is noticeable even with multiple 800 ln lamps vs 1 1600 ln lamp.

Controlling the bulbs from the wall is easier with Hue. It can be done with Kasa but Hue’s dimmer switches are so much easier to setup. It took about a month for me to fed up with only being able to turn on/off my lights with my phone to get some Hue dimmers for my wall. There are light switch replacements that can work with Wi-Fi bulbs but they tend to be expensive and usually require a hub anyway. The majority of them are designed with Hue and Zigbee in mind.

If none of those bother you, then it doesn’t really matter which system you choose. If you do choose Hue, to make the prices more palatable, it’s better to buy them over time as the go on sale or used bulbs. It took ~6 years for me to switch out ~50 bulbs for Hues on my limited budge.

That all being said, I still like my Kasa smart plugs over the Hue ones, mostly because of energy monitoring options from Kasa. I run Home Assistant so crossing ecosystems isn’t a big deal for me.

What I like best about hue is the open API, I hate that Kasa’s API is available but not open/supported/published by TP Link and they keep threatening to take it away. What I hate most about hue is the expense.

Hue has motion detector gadget, which would turn on the bulbs when movement is detected and shut them off because motion is no more sensed.

Hue bridge uses Zigbee. Zigbee creates a mesh network, and so each lightbulb may function as a repeater, discreetly passing messages through to the other in sequence.

This allows the user to take Hue much farther than your router might normally allow, creating it much more practical to get initiated with Philips’ wide range, including its huge diversity of inside lighting systems.

Philips Hue Home & Away function is extremely effective if you enjoy living alone.

References

https://www.philips-hue.com/en-us

https://www.kasasmart.com/us