Skip to content

Commit

Permalink
Issue 14 (#29)
Browse files Browse the repository at this point in the history
* Add install.py

* Fix formatting issues

* Fix formatting issues

* Fix formatting issues

* Fix formatting issues

* Fix formatting issues
  • Loading branch information
themoosman authored Nov 8, 2023
1 parent e3d048a commit 72a2976
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/user/ambientweatherapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from os import path

DRIVER_NAME = 'ambientweatherapi'
DRIVER_VERSION = '0.0.6'
DRIVER_VERSION = '0.0.8'


def loader(config_dict, engine):
Expand Down
27 changes: 27 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Distributed under the terms of the GNU Public License (GPLv3)

from weecfg.extension import ExtensionInstaller


def loader():
return AmbientWeatherApiInstaller()


class AmbientWeatherApiInstaller(ExtensionInstaller):
def __init__(self):
super(AmbientWeatherApiInstaller, self).__init__(
version="0.0.8",
name='ambientweatherapi',
description='WeeWx AmbientWeather API Driver.',
author="Karl Moos",
restful_services='user.ambientweatherapi.AmbientWeatherAPI',
config={
'ambientweatherapi': {
'driver': 'user.ambientweatherapi',
'loop_interval': '120',
'api_url': 'https://api.ambientweather.net/v1',
'api_app_key': 'xxxxxx',
'api_key': 'xxxxxx',
'hardware': 'My Weather Station'}},
files=[('bin/user', ['bin/user/ambientweatherapi.py'])]
)

0 comments on commit 72a2976

Please sign in to comment.