WEB
-
IoT Ubuntu20.04 서버 설정WEB 2024. 2. 2. 15:26
1. npm, node 설치 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash . ~/.nvm/nvm.sh nvm install v15.14.0 node -v npm -v 2. ftp설치 sudo apt update sudo apt-get install vsftpd (nano 에디터 설치) sudo apt-get install nano (접속 설정) sudo nano /etc/vsftpd.conf chroot_list_enable=YES chroot_list_file=/etc/vsftpd.chroot_list 부분 주석 해제 systemctl restart vsftpd systemctl enable vsftp..
-
Quasar 외곽선 아이콘 사용하는 방법WEB 2023. 8. 25. 10:27
여기에 보면 o_를 붙이라는 설명이 있다. https://quasar.dev/vue-components/icon#Webfont-usage qusar.config.js에서 material-icons-outlined를 추가 extras: [ // 'ionicons-v4', // 'mdi-v5', // 'fontawesome-v6', // 'eva-icons', // 'themify', // 'line-awesome', // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both! //'roboto-font', // optional, you are not bound to it 'material-icons', // optional, you ar..
-
InfluxDB 1.8.10 정리WEB 2023. 7. 18. 09:39
유튜브 검색 중 조금 시간이 지난 내용이긴 했지만 좋은 웨비나가 있어서 보게 되었고 아래는 실습하면서 정리한 내용이다 InfluxDB 특징 시간 nsec의 Uinx Time 스타일 사용 Ex) 1689639813000000000 -> 2023년 7월 18일 화요일 오전 9:23:33 GMT+09:00 가시성을 위해 influx -precision rfc3339를 하면 UTC 시간으로 표시 UTC 시간대에서는 시각 뒤에 Z를 붙인다. Ex) 1981-02-22T09:00Z : UTC 시간대에서의 1981년 2월 22일 오전 9시 구조 -Database : Database -Table : Measurement -Rows : Point -Indexed columns : Tags(String type only)..
-
InfluxDB 1.8.1 윈도우에서 node.js 사용WEB 2023. 7. 17. 18:26
node.js에서 influxdb를 사용해보자 라이브러리 설치 npm install --save @influxdata/influxdb-client npm install --save @influxdata/influxdb-client-apis influxdb내에 data, meta, wal폴더 추가 윈도우 상에서 실행할 시 javascript로 작성된 프로그램에서 아래와 같이 http 403 에러메시지가 나올 수 있다. influxdb.conf에서 아래 해당하는 부분 수정한다. [meta] # Where the metadata/raft database is stored dir = "C:/Program Files/InfluxData/influxdb/influxdb-1.8.10-1/meta" # Automati..
-
InfluxDB 1.8.1 윈도우 설치WEB 2023. 7. 17. 14:25
IoT관련 프로젝트를 하면서 시계열 데이터의 운영에 대해 TSDB를 알아보던 중 InfluxDB라는 것을 알게되었다. 지금 기준 2.7버젼까지 나왔지만, 라즈베리파이를 포함한 저사양에도 돌려야 하기 때문에 다양한 곳에서 설치와 사용방법이 정리된 1.8버젼을 선택하게 되었다. 아래는 influxDB를 설치하는 링크이며, 여기서 일단 1.8.1에 대해 윈도우 버젼 설치부터 시작해본다. https://portal.influxdata.com/downloads/ Downloads Telegraf open source data collector Telegraf is a plugin-driven server agent for collecting and sending metrics and events from data..
-
Node.js 연동 ajax 기본WEB 2022. 9. 29. 11:56
폴더수준으로 관리하기 위해서는 로컬프로젝트로 생성해야 함 1. 폴더생성 2. npm init 3. npm install --save express 단순 로그인과 route등을 포함한 기본형은 아래와 같다. -server.js 단순 로그인부분을 포함한 ajax 연동 기본형 var fs = require('fs'); var express = require('express'); var cookieParser = require('cookie-parser'); var app = express(); var http = require('http').Server(app); var bodyParser = require('body-parser'); // 책과는 다르게 body-parser 모듈이 express와는 따로 설..