This is what we did to setup a few dashboards at platanus
- Raspberry Pi
- Dashing Service
- Wifi stick (optional)
| SELECT 'SELECT SETVAL(' ||quote_literal(S.relname)|| ', MAX(' ||quote_ident(C.attname)|| ') ) FROM ' ||quote_ident(T.relname)|| ';' | |
| FROM pg_class AS S, pg_depend AS D, pg_class AS T, pg_attribute AS C | |
| WHERE S.relkind = 'S' | |
| AND S.oid = D.objid | |
| AND D.refobjid = T.oid | |
| AND D.refobjid = C.attrelid | |
| AND D.refobjsubid = C.attnum | |
| ORDER BY S.relname; |
| esphome: | |
| name: "air-quality-indoor" | |
| platform: ESP32 | |
| board: "featheresp32" | |
| wifi: | |
| ssid: "YOUR WIFI NETWORK NAME" | |
| password: "YOUR WIFI PASSWORD" | |
| logger: |
This is what we did to setup a few dashboards at platanus
| 'use strict'; | |
| angular.module('reusableThings') | |
| .directive('fileDropzone', () -> | |
| restrict: 'A' | |
| scope: { | |
| file: '=' | |
| fileName: '=' | |
| } | |
| link: (scope, element, attrs) -> |
| #!/bin/bash | |
| libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \ | |
| "/usr/local/lib/libosxfuse_i32.2.dylib" \ | |
| "/usr/local/lib/libosxfuse_i64.2.dylib" \ | |
| "/usr/local/lib/libmacfuse_i64.2.dylib" \ | |
| "/usr/local/lib/libosxfuse_i32.la" \ | |
| "/usr/local/lib/libosxfuse_i64.la" \ | |
| "/usr/local/lib/pkgconfig/osxfuse.pc" ) |
| # Guide | |
| # Configure the essential configurations below and do the following: | |
| # | |
| # Repository Creation: | |
| # cap deploy:repository:create | |
| # git add . | |
| # git commit -am "initial commit" | |
| # git push origin master | |
| # | |
| # Initial Deployment: |
| # Guide | |
| # Configure the essential configurations below and do the following: | |
| # | |
| # Repository Creation: | |
| # cap deploy:repository:create | |
| # git add . | |
| # git commit -am "initial commit" | |
| # git push origin master | |
| # | |
| # Initial Deployment: |
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
| # in config/environments/production.rb | |
| # config.force_ssl = true | |
| # config.middleware.use "Forcessl" | |
| # Make sure redirection happens before forcing ssl | |
| # config.middleware.insert_before 'Rack::SSL', 'Forcessl' | |
| # in lib/forcessl.rb | |
| # change *. to your domain | |
| class Forcessl |
| $ cd /usr/src | |
| $ wget http://nginx.org/download/nginx-0.8.52.tar.gz | |
| $ tar xzvf ./nginx-0.8.52.tar.gz | |
| $ rm ./nginx-0.8.52.tar.gz | |
| $ gem install s3sync capistrano capistrano-ext passenger --no-ri --no-rdoc | |
| $ passenger-install-nginx-module | |
| # Automatically download and install Nginx? 2. No: I want to customize my Nginx installation | |
| # Where is your Nginx source code located?: /usr/src/nginx-0.8.52 | |
| # Where do you want to install Nginx to?: /opt/nginx |