Versions
- Open: VersionChanges from v26 to v27+1-0⦚ 17 unchanged lines ⦚const img = await pelotonTidbytWorkouts(icons);
await setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});};⦚ 17 unchanged lines ⦚const img = await pelotonTidbytWorkouts(icons);// Send the image to Tidbytawait setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});}; - Open: VersionChanges from v25 to v26+3-1⦚ 5 unchanged lines ⦚export let updateTidbytWorkout = async () => {// byDay is a Record<"YYYY-MM-DD", truthy | falsy> that
// stores which days you worked outconst byDay = await workedOutByDay();⦚ 11 unchanged lines ⦚⦚ 5 unchanged lines ⦚export let updateTidbytWorkout = async () => {// byDay is a Record<"YYYY-MM-DD", truthy | falsy> that// stores which days you worked out. Recommended to get// the current and previous week of data.// e.g.: {"2023-11-15": true, "2023-11-13": true}const byDay = await workedOutByDay();⦚ 11 unchanged lines ⦚ - Open: VersionChanges from v24 to v25+11-1import { pelotonTidbytWorkouts } from "https://esm.town/v/andreterron/pelotonTidbytWorkouts";import { setTidbytImage } from "https://esm.town/v/andreterron/setTidbytImage";
import { workedOutByDay } from "https://esm.town/v/andreterron/workedOutByDay";export let updateTidbytWorkout = async () => {const byDay = await workedOutByDay();const img = await pelotonTidbytWorkouts(byDay);await setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});};import { pelotonTidbytWorkouts } from "https://esm.town/v/andreterron/pelotonTidbytWorkouts";import { setTidbytImage } from "https://esm.town/v/andreterron/setTidbytImage";import { weekWorkoutIcons } from "https://esm.town/v/andreterron/weekWorkoutIcons";import { workedOutByDay } from "https://esm.town/v/andreterron/workedOutByDay";export let updateTidbytWorkout = async () => {// byDay is a Record<"YYYY-MM-DD", truthy | falsy> that// stores which days you worked outconst byDay = await workedOutByDay();// icons is an Array with one icon type for each of the 7 days// e.g.: ["done", "skipped", "done", "done", "today", "future", "future"]const icons = weekWorkoutIcons(byDay);// img is the resulting jimp imageconst img = await pelotonTidbytWorkouts(icons);await setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});}; - Open: VersionChanges from v23 to v24+4-2import { setTidbytImage } from "https://esm.town/v/andreterron/setTidbytImage";
import { pelotonTidbytWorkouts } from "https://esm.town/v/andreterron/pelotonTidbytWorkouts";export let updateTidbytWorkout = async () => {const img = await pelotonTidbytWorkouts();await setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});};import { pelotonTidbytWorkouts } from "https://esm.town/v/andreterron/pelotonTidbytWorkouts";import { setTidbytImage } from "https://esm.town/v/andreterron/setTidbytImage";import { workedOutByDay } from "https://esm.town/v/andreterron/workedOutByDay";export let updateTidbytWorkout = async () => {const byDay = await workedOutByDay();const img = await pelotonTidbytWorkouts(byDay);await setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});}; - Open: VersionChanges from v22 to v23+6-3
let updateTidbytWorkout = async () => {const img = await andreterron.pelotonTidbytWorkouts();await me.setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});};import { setTidbytImage } from "https://esm.town/v/andreterron/setTidbytImage";import { pelotonTidbytWorkouts } from "https://esm.town/v/andreterron/pelotonTidbytWorkouts";export let updateTidbytWorkout = async () => {const img = await pelotonTidbytWorkouts();await setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});}; - Open: VersionChanges from v21 to v22+0-0⦚ 6 unchanged lines ⦚⦚ 6 unchanged lines ⦚
- Open: VersionChanges from v20 to v21+2-2
let updateTidbytWorkout = (async () => {const img = await andreterron.pelotonTidbytWorkouts();await me.setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});})();let updateTidbytWorkout = async () => {const img = await andreterron.pelotonTidbytWorkouts();await me.setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});}; - Open: VersionChanges from v19 to v20+1-1
let untitled_roseRoundworm = (async () => {const img = await andreterron.pelotonTidbytWorkouts();await me.setTidbytImage({⦚ 3 unchanged lines ⦚let updateTidbytWorkout = (async () => {const img = await andreterron.pelotonTidbytWorkouts();await me.setTidbytImage({⦚ 3 unchanged lines ⦚ - Open: Version+6-0let untitled_roseRoundworm = (async () => {const img = await andreterron.pelotonTidbytWorkouts();await me.setTidbytImage({image: (await img.getBufferAsync(img.getMIME())).toString("base64"),});})();
Updated: September 6, 2024