Skip to content

Commit

Permalink
rename to ecobeemetrics, include readme stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Pearson committed Jan 28, 2022
1 parent a52ad3d commit 2425a5a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,13 @@ jobs:
run: go get -v -t -d ./...

- name: Build linux-arm
run: env GOOS=linux GOARCH=arm go build -v .
- name: rename linux arm
run: mv ecobee2influx ecobee2influx-linux-arm
run: env GOOS=linux GOARCH=arm go build -v -o ecobeemetrics-linux-arm .

- name: Build linux-amd64
run: env GOOS=linux GOARCH=amd64 go build -v .
- name: rename linux amd64
run: mv ecobee2influx ecobee2influx-linux-amd64
run: env GOOS=linux GOARCH=amd64 go build -v -o ecobeemetrics-linux-amd64 .

- name: Build darwin-amd64
run: env GOOS=darwin GOARCH=amd64 go build -v .
- name: rename darwin amd64
run: mv ecobee2influx ecobee2influx-darwin-amd64
run: env GOOS=darwin GOARCH=amd64 go build -v -o ecobeemetrics-darwin-amd64 .

- name: Test
run: go test -v .
Expand All @@ -59,8 +53,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ecobee2influx-linux-arm
asset_name: ecobee2influx-linux-arm
asset_path: ecobeemetrics-linux-arm
asset_name: ecobeemetrics-linux-arm
asset_content_type: application/octet-stream

- name: Upload linux-amd64
Expand All @@ -70,8 +64,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ecobee2influx-linux-amd64
asset_name: ecobee2influx-linux-amd64
asset_path: ecobeemetrics-linux-amd64
asset_name: ecobeemetrics-linux-amd64
asset_content_type: application/octet-stream

- name: Upload darwin-amd64
Expand All @@ -81,8 +75,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ecobee2influx-darwin-amd64
asset_name: ecobee2influx-darwin-amd64
asset_path: ecobeemetrics-darwin-amd64
asset_name: ecobeemetrics-darwin-amd64
asset_content_type: application/octet-stream


4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.iml
.idea
ecobee2influx
ecobee2influx.yaml
ecobeemetrics
ecobeemetrics.yaml
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ecobeemetrics

This project queries the ecobee api using the lovely github.com/rspier/go-ecobee package,
inserting into VictoriaMetrics or InfluxDB.
2 changes: 1 addition & 1 deletion ecobee2influx.example.yaml → ecobeemetrics.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ influxdb:
ecobee:
thermostat_id: YOUR_THERMOSTAT_ID
app_id: YOUR_APP_ID
auth_cache_file: /var/lib/ecobee2influx/auth-cache
auth_cache_file: /var/lib/ecobeemetrics/auth-cache
poll_cron: "* * * * *"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/tedpearson/ecobee2influx
module github.com/tedpearson/ecobeemetrics

go 1.17

Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import (
)

func main() {
viper.SetConfigName("ecobee2influx")
viper.SetConfigName("ecobeemetrics")
viper.AddConfigPath("/etc")
viper.AddConfigPath("/usr/local/etc")
viper.AddConfigPath("config")
home, err := homedir.Dir()
Expand Down

0 comments on commit 2425a5a

Please sign in to comment.