simont77 / fakegato-history

Module to emulate Elgato Eve history
MIT License
166 stars 17 forks source link

Where is the history file? #101

Closed stevemac00 closed 3 years ago

stevemac00 commented 3 years ago

Thank you for the useful code. Fakegato is reporting temperature to Eve and it shows up in the Eve graphing. But I can't see any evidence of the history file.

log snippet (cleaned up removing color code, date)

Fakegato-storage AddWriter : undefined
Temperature Loading...
Temperature Fakegato-storage read FS file: /history/aqua_undefined_persist.json
Temperature Fakegato-timer Subscription : undefined
Temperature Registring Events undefined

code snippet this.loggingService = new FakeGatoHistoryService("weather", this, {storage:'fs',path:'/history'})

This is in an oznu/homebridge container with root access in the container and I tested for perms in /history. Any ideas for debugging? Is that empty normal for the AddWriter?

P.S. "Registring" is misspelled - should be "Registering"

simont77 commented 3 years ago

Apparently you did not set the AccessoryName properly, hence the "undefined". I'm not sure if this will also interfere with the creation of the persist file.

stevemac00 commented 3 years ago

You're right, a space. I should've thought of that.