# on your local machine's terminal
scp ~/.ssh/key.pub [email protected]:./
# on Mikrotik terminal
/user/ssh-keys/ import public-key-file=key.pub key-owner=admin user=admin
/system/identity/set name=yourRouterHostname
Note: from @rextended https://forum.mikrotik.com/viewtopic.php?t=183221
All special characters must be put inside quotes, or, for one reason or another, cause errors.
Some chracters must be escaped
" if used as character, and not for contain a string, must be escaped like \"
$ if used as character, and not for start a variable or function name, must be escaped like \$
? on RouterOS 6.x Terminal must be escaped with \ like \? (stored script inside scirpt, scheduler, dhcp, ppp profiles, etc. , do not need to escape the ? )
\ the \ is the escape symbol, for use \ as character instead, escape it like \\
/interface/wireless/security-profiles/set default wpa2-pre-shared-key="yourWifiSecuredPassword" authentication-types="wpa2-psk" mode="dynamic-keys"
# on your local machine's terminal
scp server_ca-bundle.pem [email protected]:./ # cert must contain full chain/bundle server,intermediate-ca,root-ca
scp server.key [email protected]:./
/certificate/ import name=yourCertificateName
/ip/service/ set www-ssl certificate=yourCertificateName disabled=no
This creates a new bridge where one of the LAN ports can be assigned to it and obtain IP from upstream modem/router
/interface/bridge/add name=yourBridgeName comment="bridge for ethernet WAN"
/interface/bridge/port/ set 4 interface=ether5 bridge=yourBridgeName
/ip/dhcp-client/add interface=yourBridgeName
Luckily this module is a chip for chip replacement of most ESP8266 module like ESP-12F
Removal of WB3s module. I used bismuth to help me in the desoldering. Bismuth lowers the melting temperature of existing solder when mixed.
Soldering of ESP12-F and associated pull-up resistor on GPIO_0 and GPIO_2 with pull-down resistor on GPIO_15 1
Intial attempt on programming ESP-12F failed as the chip doesn’t seem to respond when attempting to download the esphome firwmware.
After troubleshooting the tx and rx pin had to be isolated from the board as it prevents programming.
Re-soldering back ESP-12F, I didn’t resolder back the pull-up resistor as it doesn’t seem to affect the boot up anyway.
]]>One advantage on going this route instead of creating your own one lets say base on a wemos d1 is that you already have a nice case w/ a superb IR filtering plus a bunch of LED array complete with supporting circuitry so you can focus on high level integration stuff.
To reflash the ESP chip you need to find the ff pads/pins in the IR blaster.
Wiring usb-to-serial adapter.
Flashing with ESPHome Web.
Configure ESPHome wifi
There are several versions of
When purchasing the kit, you also have several options to take, buy a fully assembled working kit, or buy only what you need which is the one I took. So that I could buy two sets and source the other parts locally.
Here’s the content of the kit per set that I bought
Also included in thru email are some instructions on soldering the components, compiled firmware(v1.25 at that time), and how to upload it to Arduino using Xloader(Windows).
These are the parts I sourced locally here in the Philippines.
Assembly is started by soldering the following components into the carrier board
Once this is done. It would be good at this point to inspect if there are possible shorts and cold solder. I also did some testing on the TP5100 to make sure it working as expected
Without the 9V battery apply 12V via the DC socket. Both the CHG and STDY LED should light up and flash. But since those LED’s are quite bright it would be hard to see them flashing and would appear steady, try recording the LEDs with a cellphone camera with a 60FPS or faster or better with a scope.
The next step would be to solder the 2-row male headers into the Arduino on the following location shown below
Solder the Arduino into the carrier board.
Install the fiber optic light guide and fix it over the TP5100 LEDs with a hot-melt glue as shown below.
The LCD/button shield needs to be modified a bit as per instruction. This requires that the plastic in the headers on both sides be removed and the pins will need to be shortened by few millimeters so that it would mount flush in the carrier board via the female headers.
Trim the excess button wires and apply a small capton tape on the underside of the buttons this will prevent the buttons from shorting into the capacitor that is on the carrier board. What happens during my testing is that whenever I press a button the LCD backlight would turn off immediately.
If you’re using Windows you can use Xloader to upload the included firmware. For Linux I use avrdude.
Plug your arduino to your computer and check the kernel message using dmesg look for something ‘ttyUSBx’
$ dmesg
[84192.594379] usb 1-1: new full-speed USB device number 5 using xhci_hcd
[84192.743985] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[84192.743991] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[84192.743995] usb 1-1: Product: USB2.0-Serial
[84193.452284] usbcore: registered new interface driver usbserial_generic
[84193.452317] usbserial: USB Serial support registered for generic
[84193.459371] usbcore: registered new interface driver ch341
[84193.459975] usbserial: USB Serial support registered for ch341-uart
[84193.460653] ch341 1-1:1.0: ch341-uart converter detected
[84193.469498] usb 1-1: ch341-uart converter now attached to ttyUSB0
[84294.017798] usb 1-1: USB disconnect, device number 5
[84294.018263] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[84294.018303] ch341 1-1:1.0: device disconnected
[84579.191795] usb 1-9: reset full-speed USB device number 4 using xhci_hcd
[85197.612929] usb 1-1: new full-speed USB device number 6 using xhci_hcd
[85197.762523] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[85197.762530] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[85197.762534] usb 1-1: Product: USB2.0-Serial
[85197.764473] ch341 1-1:1.0: ch341-uart converter detected
[85197.765826] usb 1-1: ch341-uart converter now attached to ttyUSB0
sudo avrdude -p ATmega2560 -P /dev/ttyUSB0 -c wiring -U flash:w:LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex -D
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex"
avrdude: input file LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex auto detected as Intel Hex
avrdude: writing flash (47294 bytes):
Writing | ################################################## | 100% 7.33s
avrdude: 47294 bytes of flash written
avrdude: verifying flash memory against LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex:
avrdude: load data flash data from input file LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex:
avrdude: input file LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex auto detected as Intel Hex
avrdude: input file LRTimelapse_Pro_Timer_MAX_LCD_V1_25.hex contains 47294 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 5.65s
avrdude: verifying ...
avrdude: 47294 bytes of flash verified
avrdude: safemode: Fuses OK (E:FD, H:D8, L:FF)
avrdude done. Thank you.
One issue I encountered was that most of the buttons in my LCD were not working, it was because of some versions of the LCD shield output a different voltage from its voltage divider circuit. This is easily fixed by enabling and disabling some “define” statements in the source code . This will use the correct voltage readout for those versions of LCD.
I did mess up the interval on this one, the interval was too short for shutter speed needed during the magic hour, I had to make changes in qDSLRDashboard w/c showed up as a sudden change in the speed of the clouds.
As of this writing, I’ve already updated the firmware to v1.27 which Hans gladly provided to me when I discussed some issue running my version of LCD shield. It includes “Focus Stacking” improvement which I’m not currently using, if your primary usage is just Holy grail timelapse v1.25 would suffice. Just contact Hans to get the latest
]]>Since this unit comes in different version and configuration you’ll need to make sure which of the changes apply to your unit.
This steps were performed on the the following configuration of Ksger T12 Soldering station.
What needs to be improved
To make the front pcb more parallel with the front panelI’ve added a spacer (a piece of solid wire) on the encoder side. Other option was to desoldered the GX12-5M and relocate the washer to the front side, but this one requires a lot of effort. The display was resoldered so that would sit more closely with the cutout in the front panel
wget http://trac.red5.org/downloads/1_0/red5-1.0.0-RC1.tar.gz
tar xvzf red5-1.0.0-RC1.tar.gz
cd red5-1.0.0/webapps/
mkdir oflaDemo
cd oflaDemo
wget http://red5.googlecode.com/svn-history/r3990/snapshots/oflaDemo-r3989-java6.war
unzip oflaDemo-r3989-java6.war
cd ../..
./red5.sh
]]>rmmod pl2303<br /> rmmod usb_storage<br />
then reinsert huawei modem again
]]>Read all SMS in text mode:
AT+CMGF=1 (set TEXT MODE)
AT+CMGL="ALL"
Read single sms in text mode:
AT+CMGF=1 # (set TEXT MODE)
AT+CMGR=1 # (location index)
Delete single sms:
AT+CMGD=1 # (location index)
Sending SMS in text mode:
AT+CMGF=1 (set TEXT MODE)
AT+CMGS="0912xxxyyyy"
> test message
Press Ctrl+z
Press Enter
Read Sim Number:
AT+CPBS="ON"
AT+CPBR=1
+CPBR: 1,"+63948xxxyyyy",145,"";
]]>Download doc_browser http://eric-blue.com/projects/docbrowser/doc_browser_1_0.zip
Extract contents to a directory named projects/docbrowser
Create the ff. doc.conf inside apache conf.d
cat >/etc/apache/conf.d <<EOL
Alias /projects /var/www/projects</p>
<p><Location /projects><br />
Order allow,deny<br />
Allow from all<br />
</Location></p>
<p><Directory /var/www/projects><br />
Options +ExecCGI<br />
AddHandler cgi-script .cgi .pl<br />
</Directory><br />
EOLEnsure that list.cgi and convert.cgi have execute permission enabled.
those script requires the ff. perl module
perl-HTML-Entities-Numbered (centos 5.6 base repo)
perl-Log-Log4perl (rpmforge)
perl-CGI
]]>chmod 4555 /usr/local/sbin/smartctl
]]>UserParameter=system.smartd[*],sudo smartctl -A $1| grep $2| tail -1| cut -c 88-|cut -f1 -d" "
zabbix ALL=NOPASSWD: /usr/sbin/smartctl
]]>add elrepo to your repositories
yum –enablerepo=elrepo install kmod-coretemp # this will install lm_sensor 2.10.8 as its dependencies.
lsmod | grep coretemp # coretemp should be loaded by now
download latest lm_sensors 3.20 source, compile and install
edit /etc/init.d/lm_sensors entry
from : PSENSORS=/usr/bin/sensors
to: PSENSORS=/usr/local/bin/sensorschkconfig lm_sensors on
done
modinfo it87
modinfo coretempoptional
add the ff. to your zabbix_agent.conf
UserParameter=sensors[\*],/usr/local/bin/sensors | grep "$1" | head -$2 | tail -1 | awk "{print $"$3"}" | sed 's/[-!@#\$%^&\*()°+a-zA-Z]//g'add the ff to your sensors3.conf under the chip it87 entry
label fan1 “CPU Fan”
]]>sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get install thunderbird
sudo apt-get install firefox
]]>
groupadd nut;adduser -g nut ups
yum install gd-devel libusb-devel
./configure --with-user=ups --with-group=nut --with-usb --with-cgi --prefix=/ups --localstatedir=/ups/var --with-pidpath=/ups/var/state/ups --with-statepath=/ups/var/state/ups --enable-static
make
make install
cd /ups;mkdir -p /ups/var/state/ups;chmod 0770 /ups/var/state/ups;chown root:nut /ups/var/state/ups
copy libz.so to /ups/lib
copy libz.a to /ups/lib
chmod 0660 /dev/ttyS0;chown root:nut /dev/ttyS0
cat >/etc/udev/rules.d/99-my.rules <<EOL
SUBSYSTEM=="tty", KERNEL=="ttyS0", OWNER="root", GROUP="nut"
EOLFor APC UPS BR550I or BR550GI use the ff.
vi /etc/udev/rules.d/52-nut-usbups.rules
# This file is generated and installed by the Network UPS Tools package.
ACTION!="add", GOTO="nut-usbups_rules_end"
SUBSYSTEM=="usb_device", GOTO="nut-usbups_rules_real"
SUBSYSTEM=="usb", GOTO="nut-usbups_rules_real"
BUS!="usb", GOTO="nut-usbups_rules_end"
LABEL="nut-usbups_rules_real"
# APC
# various models - usbhid-ups
ATTR{idVendor}=="051d", ATTR{idProduct}=="0002", MODE="664", GROUP="nut"
LABEL="nut-usbups_rules_end"Prepare upsd.conf upsmon.conf ups.conf upssched.conf upsd.users
chown root:nut *.conf upsd.users
chmod 0640 *.conf upsd.users
add the following to /etc/init.d/halt
LD_LIBRARY_PATH=/ups/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
if(test -f /etc/killpower)
then
echo "***************SHUTTING DOWN UPS*************"
sleep 1
echo "5"
sleep 1
echo "4"
sleep 1
echo "3"
sleep 1
echo "2"
sleep 1
echo "1"
sleep 1
echo "bye!"
sleep 1
/ups/bin/upsdrvctl -u root shutdown
echo "UPS should be off by now"
sleep 20
fi
Add upsd upsmon startup scripts to /etc/rc.local
cat >/ups/etc/alerthandler <<EOL
#! /bin/sh
case $1 in
onbattwarn)
echo "The UPS has been on battery for awhile"
/ups/sbin/upsmon -c fsd
;;
ups-back-on-power)
/bin/rm -f /ups/var/state/ups-on-battery
;;
*)
logger -t alerthandler "Unrecognized command: $1"
;;
esac
EOL
chmod 0760 /ups/etc/alerthandler;chown root:nut /ups/etc/alerthandler
TEST
$ fuser /dev/ttyS0 # should produce no output
$ upsdrvctl start
# Output:
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Megatec protocol driver 1.6 (2.4.3)
Megatec protocol UPS detected.
$ upsd
# Output:
Network UPS Tools upsd 2.4.3
listening on 127.0.0.1 port 3493
listening on 192.168.1.145 port 3493
Connected to UPS [myups]: megatec-myups
$ upsc myups@localhost
# Output:
battery.charge: 100.0
...
ups.type: standbydownload: epel-release-* ; ius-release-*
to update PHP:
remove rhel packages:
rpm -qa | grep php
yum shell
remove php-gd php-cli php-odbc php-mbstring php-pdo php php-xml php-common php-ldap php-mysql php-imap
install php52-gd php52-cli php52-odbc php52-mbstring php52-pdo php52 php52-xml php52-common php52-ldap php52-mysql php52-imap php52-mcrypt
transaction solve
transaction run[OpenStreetMap][1]
]]>most annoying interfacing i ever done, panay debugging ng serial port.
]]>Tech specs:
PIC16F877a 20Mhz
Demo using my Classic Army SLR105 A1 w/ Guarder SP120 spring
uses PORTB interrupts for BB detection.
Nikko V2.0. tech specs:
PIC16F877a 20Mhz
Mission in life: to follow wall.
]]>