Adds driverConfig.json file for use with driver setup script

This commit is contained in:
Patrick McDonagh
2017-11-14 10:52:03 -06:00
parent d6f94609df
commit cf028bc144
3 changed files with 24 additions and 7 deletions

View File

@@ -1,17 +1,20 @@
# POCloud-CookieCutter
### Developed by Patrick McDonagh, Henry Pump
Developed by Patrick McDonagh, Henry Pump
## Description
CookieCutter Skeleton for creating a POCloud Driver
# Using this CookieCutter
## Using this CookieCutter
## Install CookieCutter using pip
### Install CookieCutter using pip
```pip install cookiecutter```
## Initialize the driver HTML and python files with this CookieCutter
### Initialize the driver HTML and python files with this CookieCutter
```cookiecutter https://github.com/Henry-Pump/POCloud-CookieCutter```
## Done!
### Done

View File

@@ -0,0 +1,13 @@
{
"name": "{{cookiecutter.driver_name}}",
"driverFilename": "{{cookiecutter.driver_name}}.py",
"driverId": "0000",
"additionalDriverFiles": [
"utilities.py",
"persistence.py",
"Channel.py",
"Maps.py"
],
"version": 1,
"s3BucketName": "{{cookiecutter.driver_name}}"
}

View File

@@ -2,10 +2,11 @@
import threading
from device_base import deviceBase
from Channel import Channel, write_tag, BoolArrayChannels
from Channel import Channel, read_tag, write_tag, BoolArrayChannels
from Maps import {{cookiecutter.driver_name}}_map as maps
from Maps import reverse_map
import persistence
from random import randint
from utilities import get_public_ip_address
import json
import time