Raspberry Pi 1

My Raspberry Pi 1 Bought : ₩58,000 2013/04/24 with : PiFace, BOARD, I/O EXPANSION, RASPBERRY-PI (₩48,570) At First : install raspbian. tested relay, and tested led on PiFace As a IR Remote controller : telegram-bot-try2, 2019 May IoT project As a Thermal sensor : finally just read DHT11 temperature/humidity and send it to the server. #!/bin/bash export API_URL=https://public-api.dgkim.net export API_KEY=---- export DHT11=/home/pi/git/rpi_sensor/src/test_dht11 export HUMI_TEMP=$($DHT11 | tail -1) HUMI=$(echo $HUMI_TEMP | tr "," "\n" | head -1) TEMP=$(echo $HUMI_TEMP | tr "," "\n" | tail -1) TIMESTAMP=$(date +"%Y-%m-%dT%H:%M:%S%z") echo "HUMI $HUMI" echo "TEMP $TEMP" curl -X POST "$API_URL/v1/temperatures/" \ -H 'Content-Type: application/json' \ -H "X-API-KEY: $API_KEY" \ -d" { \"temperature\": $TEMP } " Today : Turn it off.
Read full post gblog_arrow_right

Esphome PIR Sensor + LED Strip

Story I wanted to implement automatic LED light, when I approach kitchen. Prepare ESP8266 compatible board. (I use ESP01 board this time) WS2812B LED Strip (5v addressable LED) HC-SR501 PIR Sensor (body detection sensor) Wiring WS2812B vcc : to USB 5v positive pin gnd : to USB ground pin data : to GPIO1 of ESP01 HC-SR501 vcc : to USB 5v positive or 3.3v gnd : to USB ground pin data : to GPIO0 of ESP01 Result ESPHOME esphome: name: kitchen esp8266: board: d1_mini # Enable logging logger: # Enable Home Assistant API api: password: "" ota: password: "" wifi: ssid: !
Read full post gblog_arrow_right

Esphome Relay Fan

ESPHOME + Relay + FAN ESP8266 PCB ESPHOME esphome: name: six esp8266: board: d1_mini # Enable logging logger: # Enable Home Assistant API api: password: "" ota: password: "" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: !secret wifi_fb_ssid password: !secret wifi_fb_password captive_portal: # Example configuration entry switch: - platform: gpio pin: GPIO4 name: "Switch2" inverted: true - platform: gpio pin: GPIO5 name: "Switch3" inverted: true - platform: gpio pin: GPIO12 name: "Switch4" inverted: true - platform: gpio pin: GPIO13 name: "Switch5" inverted: true - platform: gpio pin: GPIO14 name: "Switch6" inverted: true Home Assistant automation Turn on when RPi4’s temperature is above 58 alias: rpi4-cooling description: "" trigger: - platform: numeric_state entity_id: sensor.
Read full post gblog_arrow_right

2023 Pico PC

Bought Pico PC I bought Pico PC via indiegogo fundraising several months ago.Oct 2022 - Bought Pico PC Long-waited Pico PC is just arrived today First impression Booting the box. Next. the boring win10 boot sequence starts.. (before installing ubuntu, let’s see what is win10, what it looks like) (yeah, it is windows 10. I don’t need windows 10.) (long long long time windows 10 on-boarding is completed..) (xdo windows 10 is looks like this)
Read full post gblog_arrow_right

Show Applications installed on User's own home directory

Showing User’s application in Show all applications On ubuntu, when you press Super key twice or press Super+A, you see applications installed on host. But, not all applications are installed via dpkg or snap. for example, Postman and Bitwarden doesn’t provide installers instead they provides something like App Image. I place such programs in ~/Applications. and I want to run this kind of program conviniently using Super key like Spotlight search in Mac.
Read full post gblog_arrow_right

Register mDNS to AWS Route53

Register mDNS records to AWS Route53 In local network, I can use mDNS names like DESKTOP-RHM4944.local, but I cannot use mDNS name over OpenVPN. I uses openvpn to access office network, and I want to be able to find out client IP of certain PC. and the PC uses DHCP to obtain dynamic IP. I have AWS environment, so I can use Route32 to resolve local hostname. The network AWS VPC EC2 with OpenVPN Server RaspberryPi on Office network (connected to OpenVPN Server) Client Laptop (as Remote Worker) AWS Route53 Private Zone Create Route53 Private Zone to be used as .
Read full post gblog_arrow_right

WiFi QR

Wifi QR Code Code Format WIFI:S:<SSID>;T:<WEP|WPA|blank>;P:<PASSWORD>;H:<true|false|blank>;; example WIFI:S:DGKIM5G;T:WPA2;P:secretWiFi@@;; Reference https://en.wikipedia.org/wiki/QR_code

Reserve Docker Network Aws Vpc uses

Script docker_aws_vpc.sh #!/bin/bash # to prevent docker to pickup 172.31.0.0/16 docker network \ create \ --subnet 172.31.253.0/30 \ aws_vpc Description While you are developing, it is convenient if you are using VPN to access AWS VPC. But, some times you may experience some of container cannot access AWS Resources. In that case, the container might be being assigned docker network that is overwrapping with AWS VPC network. To prevent this to happen, you can create docker network that is same as AWS VPC to not to be used as container network.
Read full post gblog_arrow_right