Skip to content

Instantly share code, notes, and snippets.

View aki-nishikawa's full-sized avatar

Akihito Nishikawa aki-nishikawa

View GitHub Profile
@aki-nishikawa
aki-nishikawa / main.py
Last active December 4, 2023 15:08
Raspberry Pi Pico W の温度センサで取得したデータを Prometheus Pushgateway に Push する Micro Python コード
import gc
import machine
import network
import urequests
import utime
GATEWAY_HOST = "<Pushgateway host IP>"
GATEWAY_PORT = "<Pushgateway host port>"
WIFI_PASSWORD = "<your password>"
WIFI_SSID = "<your SSID>"