Skip to content

Commit

Permalink
Fixed the bug where it wasn't posting correctly to Home Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSleeps committed Feb 21, 2024
1 parent 6ca9d3e commit 9beec04
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 605 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# The URL of this docker (ex: https://frigate-timelapse.yourhost.tld:port)
# The URL of this docker (ex: https://frigate-timelapse.yourhost.tld)
# No / at the end please!
timelapseURL = "http://your.host"
# The port it's listening to
timelapsePort = "8500"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ And finally, if you wanted to return a json which you can use in some other webp

Generating the timelapse takes some time, it's not an instant thing. Obviously the faster the host system is the quicker it will be.

To get an example of how to get this working with Home Assistant, read HomeAssistant.md
To get an example of how to get this working with Home Assistant, read [HomeAssistant.md](HomeAssistant.md)

It's very much written for my needs and as such will have bugs (and very little error checking), suggestions/problems in "Issues" here on Github.
11 changes: 2 additions & 9 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
const dotenv = require('dotenv');
dotenv.config();
require('dotenv').config({ path: __dirname +'/.env', debug: true });
var config = {};
//const cameras = process.env.cameras.split(",");
config.listenPort = process.env.timelapsePort;
//config.cameras = cameras;
//config.frigateBaseURL = process.env.frigateBaseURL;
config.setLapseSeconds = process.env.setLapseSeconds;
config.imageSaveDir = "images/";
config.videoSaveDir = "videos/";
config.httpOrHttps = "http";
config.timeLapseDir = "time-lapse-vids";
config.timeLapseURL = process.env.timeLapseURL;
//config.homeAssistantURL = process.env.homeAssistantURL;
//config.homeAssistantToken = process.env.homeAssistantToken;
//config.postToHomeAssistant = process.env.postToHomeAssistant;
config.timeLapseURL = process.env.timelapseURL;
module.exports = config;
Loading

0 comments on commit 9beec04

Please sign in to comment.