Skip to content

Instantly share code, notes, and snippets.

#include <esp_wifi.h>
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for u seconds to seconds */
#define TIME_TO_SLEEP 10 /* Time ESP32 will go to sleep (in seconds) */
//const int PIN_LED = 22; // LOLIN32 lite
const int PIN_LED = 5; // LOLIN32
void setup()
{
@ItHasU
ItHasU / garmin-fetch.bash
Last active March 16, 2024 20:24
This code allows to retrieve data from the Garmin Connect website for your own use.
#!/bin/bash
CONFIG=${1-config.json}
# Constants
ERRORS="errors.log"
LOGIN_FILENAME="/tmp/garmin-login.html"
AUTH_FILENAME="/tmp/auth.html"
SESSIONID_FILENAME="/tmp/sessionid.txt"