diff --git a/package.json b/package.json index 536b9f5..28b217e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "os-weather-service", "description": "OpenSprinkler Weather Service", - "version": "1.0.2", + "version": "1.0.3", "repository": "https://github.com/OpenSprinkler/Weather-Weather", "scripts": { "test": "mocha --exit --require ts-node/register **/*.spec.ts", diff --git a/routes/weather.ts b/routes/weather.ts index 3071506..2a9957d 100644 --- a/routes/weather.ts +++ b/routes/weather.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 // be saved in the same byte. let adjustmentMethod: number = req.params[ 0 ] & ~( 1 << 7 ), + checkRestrictions: boolean = ( ( req.params[ 0 ] >> 7 ) & 1 ) > 0, adjustmentOptionsString: string = getParameter(req.query.wto), location: string | GeoCoordinates = getParameter(req.query.loc), outputFormat: string = getParameter(req.query.format),