kevin.sec
@kevin-young · Şubat 2025 tarihinde katıldı
IT and security admin · energy · 17 years in the field
- Konular
- 4
- Yanıtlar
- 16
- Puan
- 0
Oluşturulan forum yanıtları
Yapay zekâ tarafından English dilinden çevrildi ·
Kameraya hangi hesabı verdiniz?
Which account did you give the camera?
Yapay zekâ tarafından English dilinden çevrildi ·
Tehlikeli ayarlara yalnızca Sahip erişebilir. Bu durumda bir API anahtarının bunları hiçbir zaman yazamayacağı doğru mu?
Dangerous settings are Owner only. Am I right that an API key can never write those then?
Welcome. Is the region per organisation or per person? Some of our people sit in Canada and some in Europe, and I’d rather not split us in two.
Yapay zekâ tarafından English dilinden çevrildi ·
Satıcı anketimiz için istediğim yanıt tam olarak buydu. Aynı formdan iki ek soru: yedeklemeler nereye gidiyor ve sizin kendi operatörleriniz bir düğüme erişebiliyor mu?
That is the answer I wanted for our vendor questionnaire. Two follow-ups from the same form: where do backups go, and can your own operators get into a node?
Yapay zekâ tarafından English dilinden çevrildi ·
Hermetry’de Clean session false ayarı zaten işe yaramaz. Belgelerde bunun clean session olarak sunulduğundan oldukça eminim.
Clean session false won’t help on Hermetry anyway. I’m fairly sure the docs say it’s served as a clean session.
Moved both boards to SPI0 with CE0/CE1, removed the two overlays, three days without a crash and the readings match the old ones within 0.1 °C. Thanks Aoife. @Keisha the offline alarm wouldn’t help there since the Pi is still online. A threshold rule can’t see a missing key either, as far as I know. We’re looking at a flow watchdog for that.
enable_uart=1 (serial console is on, someone uses it for headless recovery), dtparam=i2c_arm=on, and the two SPI lines.
HC-12 modules are an Si4463 with a small MCU on top that gives you a plain serial port. If you don’t need anything fancy, that’s the lazy route.
Bottom layer under the trace was empty, I had routed the battery line through there. Rev B: CPWG at 50 ohm, via fence, ground solid. Now -100 dBm and SNR +6 at the same spot. Thanks Laura.
868, same one I use on the dev board.
That table is what I was missing. Left the profile at the defaults. After a week most meters sit at DR5 and four basement ones at DR2, all visible in lora.dr. Thanks Ciaran.
Yapay zekâ tarafından English dilinden çevrildi ·
Güzel, birkaç sinyal lambasında kullandığımız kurulumun aynısı. Üç parça:
- Rölenin cihaz profili, Commands sekmesi:
light.setkomutunu ekleyin, seviye Basic, tek parametreon, tür Yes / no. Seviye önemli, çünkü bir API anahtarı yalnızca profilin kataloğunda bulunan metotları gönderebilir. - Firmware:
v1/rpc/req/+konusuna abone olun, GPIO12’yi (Basic R2’deki röle) değiştirin, aynı id ile yanıt verin ve yeni durumu bildirin.
void onMsg(char* topic, byte* p, unsigned int n) {
// topic: v1/rpc/req/42
String id = String(topic).substring(11);
StaticJsonDocument<128> d; deserializeJson(d, p, n);
bool on = d["params"]["on"];
digitalWrite(12, on ? HIGH : LOW);
mqtt.publish(("v1/rpc/res/" + id).c_str(), "{"ok":true}");
mqtt.publish("v1/telemetry", on ? "{"relay":1}" : "{"relay":0}");
}
- Betiğiniz: API Keys (Developer menüsü) üzerinden, yalnızca ihtiyaç duyduğu izinlerle bir API anahtarı oluşturun. Gönderme rotası
iot_rpc.readile seviyenin iznini gerektirir; bu ikisini işaretleyin, başka hiçbir şeyi değil, IP izin listesine laboratuvar PC’nizin adresini girin ve 90 günlük son kullanma süresini koruyun.
import requests
r = requests.post(
f"https://{HOST}/tenant/{TENANT}/api/iot/devices/{DEVICE}/rpc",
headers={"Authorization": f"Bearer {KEY}"},
json={"method": "light.set", "params": {"on": True}, "timeoutMs": 10000},
)
print(r.status_code, r.json()["rpc"]["status"])
Zaman aşımı 30 sn veya daha az olan çift yönlü bir komut bekler ve SUCCESSFUL ile 200 döner. Referans: Commands APIESP8266 TLS destekler, ancak bellek sınırlıdır; bağlantı başarısız olursa daha küçük tamponlarla BearSSL kullanın.
Good, that’s the same setup we use for a few signal lamps. Three pieces:
- Device profile of the relay, Commands tab: add a command
light.set, tier Basic, one parameteronof type Yes / no. Tier matters, because an API key can only send methods that are in the profile’s catalog. - Firmware: subscribe to
v1/rpc/req/+, switch GPIO12 (the relay on the Basic R2), answer on the same id, and report the new state.
void onMsg(char* topic, byte* p, unsigned int n) {
// topic: v1/rpc/req/42
String id = String(topic).substring(11);
StaticJsonDocument<128> d; deserializeJson(d, p, n);
bool on = d["params"]["on"];
digitalWrite(12, on ? HIGH : LOW);
mqtt.publish(("v1/rpc/res/" + id).c_str(), "{"ok":true}");
mqtt.publish("v1/telemetry", on ? "{"relay":1}" : "{"relay":0}");
}
- Your script: an API key from API Keys (Developer menu) with only what it needs. The send route wants
iot_rpc.readplus the tier’s permission, so tick those two and nothing else, fill the IP allowlist with the lab PC’s address and keep the 90-day expiry.
import requests
r = requests.post(
f"https://{HOST}/tenant/{TENANT}/api/iot/devices/{DEVICE}/rpc",
headers={"Authorization": f"Bearer {KEY}"},
json={"method": "light.set", "params": {"on": True}, "timeoutMs": 10000},
)
print(r.status_code, r.json()["rpc"]["status"])
A two-way command with a timeout of 30 s or less waits and comes back 200 with SUCCESSFUL. Reference: Commands API
The ESP8266 does TLS, but memory is tight; use BearSSL with smaller buffers if the connect fails.
Yapay zekâ tarafından English dilinden çevrildi ·
config.txt dosyasına eklediğiniz her satırın üstüne tarihi ve nedenini yazan bir yorum bırakmak değer. Bu, sonraki kişinin işini kolaylaştırır.
Worth leaving a comment above every line you add to config.txt with the date and why. Saves the next person.
Exactly what I needed for the meeting. I explained the trapped air and stuck spool cases with Laura’s wording and management stopped asking about removing a part. I also told them no cloud product, Hermetry Safe included, takes over the safety chain, it stays hardwired. We added the aux contact and the dump valve pressure switch as telemetry, plus an alarm when the e-stop is active and the dump has not vented within 5 seconds. Tested it on Friday with the engineer present.
Yapay zekâ tarafından English dilinden çevrildi ·
Her şeyden önce: sistemi Bookworm’a taşımak bir seçenek mi? NetworkManager bu sorunun tamamını ortadan kaldırıyor.
Before anything: is moving it to Bookworm an option? NetworkManager makes this whole question go away.

