Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New App: Traffic #343

Merged
merged 3 commits into from May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/apps.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions apps/traffic/traffic.go
@@ -0,0 +1,25 @@
// Package traffic provides details for the Traffic applet.
package traffic

import (
_ "embed"

"tidbyt.dev/community/apps/manifest"
)

//go:embed traffic.star
var source []byte

// New creates a new instance of the Traffic applet.
func New() manifest.Manifest {
return manifest.Manifest{
ID: "traffic",
Name: "Traffic",
Author: "Rob Kimball",
Summary: "Time to your destination",
Desc: "Shows the duration to get from an origin to a destination by using traffic information from MapQuest.",
FileName: "traffic.star",
PackageName: "traffic",
Source: source,
}
}