-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
39 lines (26 loc) · 1.47 KB
/
Copy pathnotes
File metadata and controls
39 lines (26 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
https://golang.org/cmd/go/#hdr-Description_of_package_lists
GOOS=linux GOARCH=arm go build ./...
https://www.ssh.com/academy/ssh/copy-id#copy-the-key-to-a-server
scp server pi@10.15.21.139:/home/pi/bins
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative terragpio.proto
# easier SNMP browsing
http://www.circitor.fr/Mibs/Html/F/FOUNDRY-SN-AGENT-MIB.php
Actual: 1.3.6.1.4.1.1991.1.1.1.1.18
Warn: 1.3.6.1.4.1.1991.1.1.1.1.19
Shutdown: 1.3.6.1.4.1.1991.1.1.1.1.20
Protobuf notes
https://developers.google.com/protocol-buffers/docs/overview
1) take in max and min temp
2) take in min fan speed in percent
3) read current temp
4) calculate percent of max temp
5) if below min fan speed percent set fan speed percent to min
- otherwise set to percent calculated in 4
slope = (dutyCycleMax - newduty) / (tempmax - newtemp)
slope * (tempmax - newtemp) = (dutyCycleMax - newduty)
(slope * (tempmax - newtemp)) - dutyCycleMax = - newduty
presumably working pwm: https://github.com/andybaran/fictional-goggles/blob/21-april/terragpio/cmd/server/rpiserver.go
https://stackoverflow.com/questions/61311436/how-to-fix-parsing-go-mod-module-declares-its-path-as-x-but-was-required-as-y
2022-Mar-12
- slope needs to be changed to a float otherwise we always lose the decimal point and might as well just make it 1
- I need a uint representation of the duty cycle to do math on I think, it shouldn't be as high as it's showing in the calculator equation