Adds driverConfig.json file for use with driver setup script
This commit is contained in:
15
README.md
15
README.md
@@ -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
|
||||
|
||||
|
||||
13
{{cookiecutter.driver_name}}/python-driver/driverConfig.json
Normal file
13
{{cookiecutter.driver_name}}/python-driver/driverConfig.json
Normal 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}}"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user