Skip to content

Instantly share code, notes, and snippets.

View Thewest123's full-sized avatar

Jan Černý Thewest123

View GitHub Profile
@Thewest123
Thewest123 / spoolman.py
Created October 8, 2024 10:12
Spoolman API - Update weight with Python
# A simple CLI tool to interact with the Spoolman REST API
# Simply just select the spool ID and enter the used weight to update the spool
import requests
# Base API URL
BASE_URL = "https://spoolman.local/api/v1"
# Fetch the list of available spools
def fetch_spools():
@Thewest123
Thewest123 / mint_grower.ino
Last active August 4, 2022 15:11
Smart Plant Watering (Thinger.io + NodeMCU + OTA)
//#define _DEBUG_ //Uncomment for ThingerIO debug print
#include <ThingerESP8266.h>
#include <ThingerConsole.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUDP.h>
#include <ArduinoOTA.h>
#include <NTPClient.h>
#define USERNAME "<THINGER_USERNAME>"

Keybase proof

I hereby claim:

  • I am thewest123 on github.
  • I am thewest123 (https://keybase.io/thewest123) on keybase.
  • I have a public key ASCUOUQ7rV7WGklV3XSwydyxpwJnVSBDlAAJ7y47uymLego

To claim this, I am signing this object: