Skip to content

Commit

Permalink
Cache directory update
Browse files Browse the repository at this point in the history
Changed the location of cache storage - should have been this to begin with but the plugin should now work on docker/homebridge without issues.
  • Loading branch information
MTry committed May 10, 2022
1 parent 6ad8343 commit 4c2056a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Change Log
All meaningful changes will be logged here.

## **1.7.0 [10-05-2022] - Big fix**

### *Fixed:*
- Storage cache location - should now work on all platforms - including docker!

### *PLEASE NOTE:*
- The location update on cache directory may impact the state of controls as saved earlier - please set again on your home app once.

## **1.6.0 [30-03-2022] - module update**

### *Changes:*
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Version | Supported |
| ------- | ------------------ |
| 1.5.x | :white_check_mark: |
| 1.7.x | :white_check_mark: |


## Reporting a Vulnerability
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as format from './lib/format.js';
import * as eto from './lib/eto.js';

let workEnabled = true
const cacheDirectory = './homebridge-smart-irrigation/storage'
let cacheDirectory = ''
const mailTransport = {}
const mailContruct = {}
let wateringDone = false
Expand Down Expand Up @@ -56,6 +56,7 @@ export default (homebridge) => {
Service = homebridge.hap.Service
Characteristic = homebridge.hap.Characteristic
homebridge.registerAccessory('homebridge-smart-irrigation', 'SmartSprinklers', SmartSprinklers)
cacheDirectory = homebridge.user.storagePath()
}

function SmartSprinklers (log, config) {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": false,
"displayName": "Homebridge Smart Irrigation",
"name": "homebridge-smart-irrigation",
"version": "1.6.0",
"version": "1.7.0",
"description": "Adaptive Climate (evapotranspiration) based multi-zone irrigation control of sprinklers with homekit controls. Push and email notification options of start and completion of watering cycles along with weather information.",
"license": "MIT",
"_requiredBy": [
Expand Down Expand Up @@ -55,9 +55,7 @@
"standard": "*"
},
"dependencies": {

"got": ">=12.0.3",

"node-persist": ">=3.1.0",
"node-schedule": ">=2.1.0",
"nodemailer": ">=6.6.5",
Expand Down

0 comments on commit 4c2056a

Please sign in to comment.