Versions

  • v27

    11/16/2023
    Open: Version
    Changes 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 Tidbyt
    await setTidbytImage({
    image: (await img.getBufferAsync(img.getMIME())).toString("base64"),
    });
    };
  • v26

    11/16/2023
    Open: Version
    Changes 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 out
    const 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 ⦚
  • v25

    11/16/2023
    Open: Version
    Changes from v24 to v25
    +11
    -1
    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"),
    });
    };
    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 out
    const 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 image
    const img = await pelotonTidbytWorkouts(icons);

    await setTidbytImage({
    image: (await img.getBufferAsync(img.getMIME())).toString("base64"),
    });
    };
  • v24

    11/16/2023
    Open: Version
    Changes from v23 to v24
    +4
    -2
    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"),
    });
    };
    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"),
    });
    };
  • v23

    10/23/2023
    Open: Version
    Changes 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"),
    });
    };
  • v22

    9/30/2023
    Open: Version
    Changes from v21 to v22
    +0
    -0
    ⦚ 6 unchanged lines ⦚
    ⦚ 6 unchanged lines ⦚
  • v21

    9/8/2023
    Open: Version
    Changes 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"),
    });
    };
  • v20

    9/8/2023
    Open: Version
    Changes 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 ⦚
  • v19

    9/8/2023
    Open: Version
    +6
    -0

    let untitled_roseRoundworm = (async () => {
    const img = await @andreterron.pelotonTidbytWorkouts();
    await @me.setTidbytImage({
    image: (await img.getBufferAsync(img.getMIME())).toString("base64"),
    });
    })();
Updated: September 6, 2024