Skip to content

Commit

Permalink
1st cut installer and chnagelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gjr80 committed Jun 28, 2017
1 parent 00ebe3a commit 586802a
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v0.1.0
* initial release
75 changes: 75 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# Installer for Bloomsky Driver
#
# Version: 0.1.0 Date: 25 June 2017
#
# Revision History
# 25 June 2017 v0.1
# - initial implementation
#

import weewx

from distutils.version import StrictVersion
from setup import ExtensionInstaller

REQUIRED_VERSION = "3.7.0"
BLOOMSKY_VERSION = "0.1.0"


def loader():
return BloomskyInstaller()


class BloomskyInstaller(ExtensionInstaller):
def __init__(self):
if StrictVersion(weewx.__version__) < StrictVersion(REQUIRED_VERSION):
msg = "%s requires weeWX %s or greater, found %s" % (''.join(('Bloomsky driver ', BLOOMSKY_VERSION)),
REQUIRED_VERSION,
weewx.__version__)
raise weewx.UnsupportedFeature(msg)
super(BloomskyInstaller, self).__init__(
version=BLOOMSKY_VERSION,
name='Bloomsky',
description='weeWX driver for Bloomsky Sky1/Sky2/Storm personal weather stations.',
author="Gary Roderick",
author_email="gjroderick<@>gmail.com",
files=[('bin/user', ['bin/user/bloomsky.py'])],
config={
'Bloomsky': {
'api_key': 'INSERT_API_KEY_HERE',
'poll_interval': 15,
'driver': 'user.bloomsky'
},
'Accumulator': {
'deviceID': {
'adder': 'noop'
},
'deviceName': {
'adder': 'noop'
},
'imageURL': {
'adder': 'noop'
},
'deviceType': {
'adder': 'noop'
},
'night': {
'adder': 'noop'
},
'imageTimestamp': {
'adder': 'noop'
}
}
}
)

0 comments on commit 586802a

Please sign in to comment.