Skip to content

Instantly share code, notes, and snippets.

View AnttiKurittu's full-sized avatar

Antti Kurittu AnttiKurittu

View GitHub Profile
@AnttiKurittu
AnttiKurittu / wallbox-json.py
Created December 1, 2022 07:39
Python script to request data from Wallbox API
#/usr/bin/python3
import requests
import json
def fetch_token():
payload = {}
url = "https://api.wall-box.com/auth/token/user"
headers = {
'Accept': 'application/json, text/plain, */*\'',

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

#!/bin/bash
# Get and refresh the Cloudflare IP range and set them in a configuration
# file for Nginx. Rememember to include this in your server directive
# with 'include /path/to/this/script.sh;'
# add this to your crontab with 'crontab -e'
# 30 5 * * * /etc/nginx/sites-available/get-cf-ip-range.sh
set -e
wget -q -P /etc/nginx/sites-available/ https://www.cloudflare.com/ips-v4
wget -q -P /etc/nginx/sites-available/ https://www.cloudflare.com/ips-v6