Skip to content

Commit

Permalink
Update internal/analysis/processor/actions.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
tphakala and coderabbitai[bot] authored Apr 5, 2024
1 parent 8ba9d16 commit 0551f70
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions internal/analysis/processor/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,22 @@ func (a BirdWeatherAction) Execute(data interface{}) error {
}

// Execute sends the note to the MQTT broker
import (
"errors"
"encoding/json"
"fmt"
"log"
"strings"
"time"

"github.com/tphakala/birdnet-go/internal/birdnet"
"github.com/tphakala/birdnet-go/internal/birdweather"
"github.com/tphakala/birdnet-go/internal/conf"
"github.com/tphakala/birdnet-go/internal/datastore"
"github.com/tphakala/birdnet-go/internal/mqtt"
"github.com/tphakala/birdnet-go/internal/myaudio"
"github.com/tphakala/birdnet-go/internal/observation"
)
func (a MqttAction) Execute(data interface{}) error {
if a.Settings.Realtime.MQTT.Topic == "" {
return errors.New("MQTT topic is not specified")
Expand Down

0 comments on commit 0551f70

Please sign in to comment.