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
# MQTT Broker - mosquitto | |
mqtt: | |
broker: localhost | |
port: 1883 | |
utility_meter: | |
water_usage_mains_hourly: | |
source: sensor.water_meter | |
cycle: hourly | |
water_usage_mains_daily: |
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
import boto3 | |
import logging | |
#setup simple logging for INFO | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
#define the connection | |
ec2 = boto3.resource('ec2') |
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 is not a script, please paste commands direclty into a ssh/putty window. | |
# get the DPN status | |
status.dpn | |
# set the ssh agent keys | |
ssh-agent bash |