Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions apps/marex/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Marex

Tidbyt/Pixlet applet that renders today's tide table for Brazilian beachs.

The first version defaults to the Cabedelo station (`pb01`) and calls:

```text
https://tabuamare.devtu.qzz.io/api/v2/tabua-mare/pb01/{month}/{day}
```

`{month}` is the current month in `MM` format and `{day}` is the current local day for the configured timezone.

## Development

Install Pixlet from the official repository:

```sh
brew install tidbyt/tidbyt/pixlet
```

Render the app locally:

```sh
pixlet render marex.star
```

Serve and auto-refresh while editing:

```sh
pixlet serve --watch marex.star
```

Run the community app checks before submitting:

```sh
pixlet check marex.star
```

## Configuration

The app exposes two optional configuration values:

- `harbor_id`: defaults to `pb01`.
- `timezone`: defaults to `America/Fortaleza`.

For local testing:

```sh
pixlet render marex.star harbor_id=pb01 timezone=America/Fortaleza
```
9 changes: 9 additions & 0 deletions apps/marex/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
id: marex
name: Marex
summary: Brazilian tide times
desc: Shows today's tide table for a Brazilian beach using the Tabua Mare API.
author: flavioribeiro
fileName: marex.star
packageName: marex
recommendedInterval: 30
Loading
Loading