Here is a small list of interesting fact about React Native, as used inside PlantNet Mobile apps for Android & iOS, 6 million users
This is a work in progress and is completed as time flies
- Fast refresh is so good
- a big community
- fast to dev
blueprint: | |
name: ZHA - Tuya 4-Button Switch | |
description: Automate your Tuya 4-Button Switch using ZHA events. | |
domain: automation | |
input: | |
tuya_4button_switch: | |
name: Tuya 4-Button Switch | |
description: Tuya 4-Button Switch to use | |
selector: | |
device: |
blueprint: | |
name: Tuya Zigbee 4 button remote | |
description: "Blueprint for use with Tuya Zigbee 4 button remote (TS0044_1) on Zigbee2MQTT" | |
domain: automation | |
input: | |
switch: | |
name: Tuya Zigbee 4 button remote | |
description: Tuya Zigbee 4 button remote to use | |
selector: | |
entity: |
blueprint: | |
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for media_player | |
description: Control the volume of the media player and set play/pause on it | |
domain: automation | |
source_url: https://gist.github.com/HugoGresse/552c494b33b2b35c4c5903f7ef28cd42 | |
input: | |
remote: | |
name: Remote | |
description: Moes Tuya Smart Knob Device to use | |
selector: |
const runInParallel = async (dataList, numberOfParallelRequest, runFunction) => { | |
return new Promise((resolve) => { | |
const isRunCompleted = (runStatus) => { | |
return Object.values(runStatus).every(status => status === false) | |
} | |
const dataListSplit = splitArray(dataList, numberOfParallelRequest) | |
console.log('dataListSplit', dataListSplit.length) |
/* | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
When trying to connect to Unify Network Controller interface, it was not responding.
Checking the port with netstat showed the service was not started but service unify status
reported the contrary.
Device: RPi 3 with 16gb storage
java JDK not up to date on latest raspbian image for a long time
#!/bin/bash | |
usage() { | |
echo "Usage:" | |
echo " adbx proxy set" | |
echo " adbx proxy get" | |
echo " adbx proxy remove" | |
} | |
/** | |
* Change the current displayed fragment by a new one. | |
* - if the fragment is in backstack, it will pop it | |
* - if the fragment is already displayed (trying to change the fragment with the same), it will not do anything | |
* | |
* @param frag the new fragment to display | |
* @param saveInBackstack if we want the fragment to be in backstack | |
* @param animate if we want a nice animation or not | |
*/ |