print (in_time) # 2019-09-27T01:57:07.679779126Z in_time = in_time.replace('Z','') in_time = in_time.split(".") microsec = in_time[1][0:6] in_time = in_time[0] + '.' + microsec in_date = datetime.strptime(in_time, "%Y-%m-%dT%H:%M:%S.%f") print (in_date) # 2019-09-27 01:57:07.679779influxdb time 값을 불러오다 보면 위와 같은 time값을 받는 경우가 많다. datetime.strptime 에서 microsecond (%f) 는 6자리..
운영체제 : Ubuntu 18.04 개발 도구 : vscode 사용 언어 : Python 3.7 실행 예시 sample.py -hotpix [숫자] try: if sys.argv[1] == '-hotpix': cnt = 100 #핫픽셀 분석모드 try: cnt = int(sys.argv[2]) hotpix(cnt) except IndexError: hotpix(cnt) else: print('함수 인자 에러.') except IndexError: #셀 분석 cellcnt_start()

Raspberry Pi 4 model B + FlightAware - Pro Stick Plus v1.0 ADS-B 기준. SD카드 만들기 파일 준비 https://www.balena.io/etcher/ balena툴(balenaEtcher-Portable-1.5.56.exe) balena - Home Infrastructure to develop, deploy, and manage connected devices at scale www.balena.io https://www.raspberrypi.org/downloads/raspbian/ Raspbian(2019-07-10-raspbian-buster-lite.zip) Download Raspbian for Raspberry Pi Raspbian is ..
AutoSSH 5001(원격지 서버) -> 80(로컬 서버) 원격지 서버 작업 계정생성 및 autossh 설정 후 확인. sudo addgroup --gid 1100 tunnel sudo adduser --gid 1100 tunnel su -l tunnel ssh localhost (.ssh 디렉토리 만들기) vi ~/.ssh/authorized_keys pub값복사 telnet localhost 5001 확인 로컬 서버 작업 autossh 설치 및 터널링 설정. sudo apt install -y autossh ssh-keygen 키설정 ssh tunnel@xx.xx.xx 접속 확인 autossh -f -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax..
nginx 구현 sudo apt install -y nginx방화벽 확인 sudo ufw app list방화벽 세팅 sudo ufw allow 'Nginx HTTPS' sudo ufw allow 'OpenSSH'letsencrypt(https) 구현 sudo nano /etc/nginx/sites-available/xx.xx.xx ... server_name xx.xx.xx;sudo apt-get install -y letsencrypt 인증서 받기 sudo letsencrypt certonly --nginx -d xx.xx.xx
- letsencrypt
- Raspberry Pi
- 예외처리
- ADS-B
- rfc3339
- nginx
- vue.js
- Peverse Proxy
- 인자값
- Python
- FlightAware
- autossh
- datetime
- influxdb