IF-MIB::ifSpeed.4096 = Gauge32: 15288000
- OID:
snmptranslate -On IF-MIB::ifSpeed.4096
->.1.3.6.1.2.1.2.2.1.5.4096
IF-MIB::ifInOctets.4096 = Counter32: 10923350
- OID
snmptranslate -On IF-MIB::ifInOctets.4096
->.1.3.6.1.2.1.2.2.1.10.4096
# You will need to probably create ~/.ssh/config file or edit, and add the following lines: | |
# Host [IP Address] | |
# StrictHostKeyChecking no | |
# UserKnownHostsFile=/dev/null | |
# A example for whole 192.168.0.0/16 IP subnet: | |
Host 192.168.*.* | |
StrictHostKeyChecking no |
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not know. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal |
# logrotate and pm2 logs | |
# file location | |
# /etc/logrotate.d/pm2 | |
/root/.pm2/logs/*.log { | |
daily | |
rotate 15 | |
missingok | |
notifempty | |
sharedscripts |
-- control 2 first neopixels via RGB | |
--ws2812.writergb(2, string.char(100,255,0,255,0,0)) | |
-- control 8 neopixels with same RGB color | |
-- ws2812.writergb(2, string.char(100,255,0):rep(8)) | |
-- -- control 8 neopixels with same RGB color - turn off | |
ws2812.writergb(2, string.char(0,0,0):rep(8)) |
Modify setting of the Blue Solar regulator from Victron for smooth operation with RDC, if not already done by Madison Technologies.
How to connect to the regulator are here: https://www.victronenergy.com/live/ve.direct:mpptprefs
##Short version:
from pysnmp.hlapi import * | |
import time | |
import datetime | |
# seconds between polls | |
interval = 60 | |
# IP address of the Cybertec router | |
ip_address = '10.10.10.10' | |
# while True: |
import shutil | |
import os | |
import re | |
source = os.walk("~/Downloads/camera/") | |
destination = "~/Downloads/mobotix-pic/" | |
# for files in source: | |
for root, dirs, files in source: | |
# print(files) | |
for _file in files: |
id=0 | |
-- represent actually PIN on nodeMCU such as | |
-- D7 and D5 in this case | |
-- GND needs to be connected | |
sda=7 -- GPIO13 | |
scl=5 -- GPIO14 | |
-- initialize i2c, set pin1 as sda, set pin2 as scl | |
i2c.setup(id,sda,scl,i2c.SLOW) |
Script reads BIN0
(binary input 0) on the Conel, SmartWorkx router and displaying it in a console. Can be looged in systemlog as well.
Little modification can be done to log it into the file, in CSV format.
#!/bin/ash
OLD0="-1"
SLEEP_TIME=1
while true