Skip to content

Instantly share code, notes, and snippets.

sensor:
- platform: template
sensors:
k1_humidifier_temperature:
friendly_name: K1 Humidifier Temperature
value_template: '{{ states.fan.k1_nawilzacz.attributes.temperature }}'
unit_of_measurement: '°C'
k1_humidifier_humidity:
friendly_name: K1 Humidifier Humidity
value_template: '{{ states.fan.k1_nawilzacz.attributes.humidity }}'
#!/usr/bin/env bash
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -days 1024 -out rootCA.pem
openssl genrsa -out dovecot.key 2048
openssl req -new -key dovecot.key -out dovecot.csr
openssl x509 -req -in dovecot.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out dovecot.crt -days 500
cp dovecot.crt conf/dovecot.crt
modbus:
name: eastron
type: serial
method: rtu
port: /dev/ttyUSB1
baudrate: 9600
stopbits: 2
bytesize: 8
parity: N
0 info it worked if it ends with ok
1 verbose cli [ '/Users/oki/.nvm/versions/node/v9.5.0/bin/node',
1 verbose cli '/Users/oki/.nvm/versions/node/v9.5.0/bin/npm',
1 verbose cli 'start' ]
2 info using npm@5.6.0
3 info using node@v9.5.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle ckt-front@0.1.0~prestart: ckt-front@0.1.0
6 info lifecycle ckt-front@0.1.0~start: ckt-front@0.1.0
7 verbose lifecycle ckt-front@0.1.0~start: unsafe-perm in lifecycle true
(oki@~/dev/work/ckt-front_clean)(master)☁ rm -rf node_modules
(oki@~/dev/work/ckt-front_clean)(master)☁ npm install
> fsevents@1.2.7 install /Volumes/MacintoshHD2/dev/zlecenia/ckt-front_clean/node_modules/chokidar/node_modules/fsevents
> node install
node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Volumes/MacintoshHD2/dev/zlecenia/ckt-front_clean/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote
> fsevents@1.2.4 install /Volumes/MacintoshHD2/dev/zlecenia/ckt-front_clean/node_modules/fsevents
(oki@~/dev/work/ckt-front_clean)(master)☁ npm install
npm WARN @material-ui/icons@3.0.2 requires a peer of @material-ui/core@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@17.1.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base@13.1.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-react-app@3.0.8 requires a peer of eslint@5.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-loader@2.1.1 requires a peer of eslint@>=1.6.0 <6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-import@2.16.0 requires a peer of eslint@2.x - 5.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-jsx-a11y@6.
(oki@~/dev/work/ckt-front_clean)(master)☁ npm install
npm WARN @material-ui/icons@3.0.2 requires a peer of @material-ui/core@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@17.1.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base@13.1.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-react-app@3.0.8 requires a peer of eslint@5.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-loader@2.1.1 requires a peer of eslint@>=1.6.0 <6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-import@2.16.0 requires a peer of eslint@2.x - 5.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-jsx-a11y@6.2.1 requires a peer of eslint@^3 || ^4 || ^5 but none is
(oki@~/dev/work/ckt-front_clean)(master)☁ yarn install
yarn install v1.19.2
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍 Resolving packages...
warning @material-ui/icons > recompose > fbjs > core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > react-app-polyfill > core-js@2.6.4: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > fsevents@1.2.4: Way too old
warning react-scripts > workbox-webpack-plugin > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintaine
(oki@~/dev/work/ckt-front_clean)(master)☁ yarn -version
Unable to find any JVMs matching version "1.6".
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
desc "Play fv - upsert costs data"
task :play_costs => :environment do
dir = "data/play_fv"
# _, *files = ARGV
files = Dir.glob("#{dir}/*.pdf")
total = {}
data = files.each do |file|