Merge branch 'master' into improve-weather-provider-handling
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "os-weather-service",
|
"name": "os-weather-service",
|
||||||
"description": "OpenSprinkler Weather Service",
|
"description": "OpenSprinkler Weather Service",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"repository": "https://github.com/OpenSprinkler/Weather-Weather",
|
"repository": "https://github.com/OpenSprinkler/Weather-Weather",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --exit --require ts-node/register **/*.spec.ts",
|
"test": "mocha --exit --require ts-node/register **/*.spec.ts",
|
||||||
|
|||||||
@@ -214,6 +214,7 @@ export const getWateringData = async function( req: express.Request, res: expres
|
|||||||
// parsed. This allows the adjustment method and the restriction type to both
|
// parsed. This allows the adjustment method and the restriction type to both
|
||||||
// be saved in the same byte.
|
// be saved in the same byte.
|
||||||
let adjustmentMethod: number = req.params[ 0 ] & ~( 1 << 7 ),
|
let adjustmentMethod: number = req.params[ 0 ] & ~( 1 << 7 ),
|
||||||
|
checkRestrictions: boolean = ( ( req.params[ 0 ] >> 7 ) & 1 ) > 0,
|
||||||
adjustmentOptionsString: string = getParameter(req.query.wto),
|
adjustmentOptionsString: string = getParameter(req.query.wto),
|
||||||
location: string | GeoCoordinates = getParameter(req.query.loc),
|
location: string | GeoCoordinates = getParameter(req.query.loc),
|
||||||
outputFormat: string = getParameter(req.query.format),
|
outputFormat: string = getParameter(req.query.format),
|
||||||
|
|||||||
Reference in New Issue
Block a user