This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> waterheatermanagement read heat-demand 1 3 | |
[1756906098.361] [206:206] [TOO] Command: waterheatermanagement read heat-demand 1 3 | |
[1756906098.362] [206:207] [TOO] Sending command to node 0x1 | |
[1756906098.363] [206:207] [CSM] FindOrEstablishSession: PeerId = [1:0000000000000001] | |
[1756906098.364] [206:207] [CSM] FindOrEstablishSession: No existing OperationalSessionSetup instance found | |
[1756906098.364] [206:207] [DIS] Found an existing secure session to [1:0000000000000001]! | |
[1756906098.364] [206:207] [DIS] OperationalSessionSetup[1:0000000000000001]: State change 1 --> 5 | |
[1756906098.364] [206:207] [TOO] Sending ReadAttribute to: | |
[1756906098.364] [206:207] [TOO] cluster 0x0000_0094, attribute: 0x0000_0001, endpoint 3 | |
[1756906098.364] [206:207] [DMG] SendReadRequest ReadClient[0x7f80017d20]: Sending Read Request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> waterheatermanagement cancel-boost 1 3 | |
[1756905559.134] [206:206] [TOO] Command: waterheatermanagement cancel-boost 1 3 | |
[1756905559.135] [206:207] [TOO] Sending command to node 0x1 | |
[1756905559.137] [206:207] [CSM] FindOrEstablishSession: PeerId = [1:0000000000000001] | |
[1756905559.137] [206:207] [CSM] FindOrEstablishSession: No existing OperationalSessionSetup instance found | |
[1756905559.137] [2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// M5Atom Lite + AtomFly2 モーター制御 by GOROman | |
#include <M5Atom.h> | |
// モーターの数 | |
const int MOTOR_COUNT = 4; | |
// モーターのGPIOピンアサイン | |
const int MOTOR_PINS[] = { | |
22, // [A] FL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Application: | |
- Interface water flow sensor with ESP32 board. | |
Board: | |
- ESP32 Dev Module | |
https://my.cytron.io/p-node32-lite-wifi-and-bluetooth-development-kit | |
Sensor: | |
- G 1/2 Water Flow Sensor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#save our current network interface config for merging with eveng network config later | |
cp /etc/network/interfaces ./interfaces | |
sed -i -e "s/PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config | |
wget -O - http://www.eve-ng.net/repo/eczema@ecze.com.gpg.key | sudo apt-key add - | |
apt-get update | |
apt-get -y install software-properties-common | |
sudo add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo xenial main" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _upload(host, creds, fp): | |
chunk_size = 512 * 1024 | |
headers = { | |
'Content-Type': 'application/octet-stream' | |
} | |
fileobj = open(fp, 'rb') | |
filename = os.path.basename(fp) | |
uri = 'https://%s/mgmt/shared/file-transfer/uploads/%s' % (host, filename) |