Skip to content

Commit

Permalink
Remove legacy package.json info.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstegeman committed Jul 20, 2020
1 parent 345fd7f commit ba8c8ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 103 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@
}
},
"short_name": "Weather",
"version": "0.5.0"
"version": "0.5.1"
}
105 changes: 3 additions & 102 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "weather-adapter",
"display_name": "Weather",
"version": "0.5.0",
"version": "0.5.1",
"description": "Current weather conditions",
"main": "index.js",
"scripts": {
Expand All @@ -11,12 +10,6 @@
"type": "git",
"url": "git+https://github.com/mozilla-iot/weather-adapter.git"
},
"keywords": [
"mozilla",
"iot",
"adapter",
"weather"
],
"author": "Mozilla IoT",
"license": "MPL-2.0",
"bugs": {
Expand All @@ -28,7 +21,7 @@
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.4.0"
"eslint": "^7.5.0"
},
"files": [
"LICENSE",
Expand All @@ -44,97 +37,5 @@
"lib/weather-property.js",
"manifest.json",
"node_modules"
],
"moziot": {
"api": {
"min": 2,
"max": 2
},
"plugin": true,
"exec": "{nodeLoader} {path}",
"config": {
"locations": [],
"units": "imperial",
"provider": "openweathermap",
"useDefaultOpenWeatherMapApiKey": true,
"apiKey": "",
"pollInterval": 60
},
"schema": {
"type": "object",
"required": [
"locations",
"units",
"provider",
"pollInterval"
],
"properties": {
"locations": {
"title": "Locations",
"description": "List of locations",
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"latitude",
"longitude"
],
"properties": {
"name": {
"title": "Name",
"description": "Name of location",
"type": "string"
},
"latitude": {
"title": "Latitude",
"description": "Latitude of location",
"type": "number"
},
"longitude": {
"title": "Longitude",
"description": "Longitude of location",
"type": "number"
}
}
}
},
"units": {
"title": "Units",
"description": "Units to use, i.e. imperial for ˚F, metric for ˚C",
"type": "string",
"enum": [
"metric",
"imperial"
]
},
"provider": {
"title": "Provider",
"description": "Weather data provider to use",
"type": "string",
"enum": [
"openweathermap",
"darksky",
"accuweather"
]
},
"useDefaultOpenWeatherMapApiKey": {
"title": "Use Default OpenWeatherMap API Key",
"description": "If enabled, polling will be limited to once per hour",
"type": "boolean"
},
"apiKey": {
"title": "API Key",
"description": "API key for the selected provider",
"type": "string"
},
"pollInterval": {
"title": "Poll Interval",
"description": "Interval in minutes at which to poll the provider",
"type": "integer",
"minimum": 10
}
}
}
}
]
}

0 comments on commit ba8c8ed

Please sign in to comment.