This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oauth_token = session['google_oauth_token'] | |
from oauth2client.client import OAuth2Credentials | |
from datetime import datetime | |
expirty_str = str(datetime.fromtimestamp(oauth_token['expires_at'])) | |
with flask_app.app_context(): | |
token_data = { | |
'access_token' : oauth_token['access_token'], | |
'token_expiry' : expirty_str, | |
'user_agent' : 'PyDrive Automation', | |
'refresh_token' : None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This sketch sends ads1115 current sensor data via out over serial port. | |
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): | |
* | |
* - https://github.com/adafruit/Adafruit_ADS1X15 | |
* - https://github.com/adafruit/Adafruit_SSD1306 | |
* - https://github.com/adafruit/Adafruit-GFX-Library | |
* | |
* The above libraries can be directly installed via the Arduino IDE | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server. | |
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): | |
* | |
* - https://github.com/adafruit/Adafruit_ADS1X15 | |
* | |
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software: | |
* | |
* https://github.com/esp8266/Arduino | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server. | |
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): | |
* | |
* - https://github.com/adafruit/Adafruit_ADS1X15 | |
* | |
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software: | |
* | |
* https://github.com/esp8266/Arduino | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
kind: Node | |
metadata: | |
annotations: | |
kubeadm.alpha.kubernetes.io/cri-socket: /var/run/dockershim.sock | |
node.alpha.kubernetes.io/ttl: "0" | |
projectcalico.org/IPv4Address: 192.168.1.21/24 | |
projectcalico.org/IPv4IPIPTunnelAddr: 10.233.90.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
absl-py==0.11.0 | |
access==1.1.1 | |
affine==2.3.0 | |
aiobotocore==1.1.2 | |
aiohttp==3.7.2 | |
aioitertools==0.7.0 | |
alabaster==0.7.12 | |
alembic==1.4.3 | |
appdirs==1.4.4 | |
argon2-cffi==20.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have developed and open-source hardware breakout for the MCP39F511 Energy Monitor ASIC. The KiCAD design files are here. During board bringup I have encountered a couple of issues and I believe the datasheet should be updated to highlight these details and make life easier for future engineers. | |
1) The MCLR pin is attached to the embedded PIC microcontroller and needs to be pulled high on power up, requires a pull-up resistor <=10k . | |
2) There are 2 versions of this ASIC with default baud rates of 9600 and 115200 respectively. They are pin compatible, however hard to tell apart on sites such as Digikey / Mouser. | |
NewerOlder