# Python

## Python script to change temperature setpoint into gcode

Small hacky script to set regular temperature changes in 3D printer gcode, to easily use “Temperature towers”.

## How to compile KiCad 5.1.x for Debian 10

I was looking to use InteractiveHtmlBom plugin for KiCad but unfortunately, Debian maintainers did not set KICAD_SCRIPTING option in the official package. After a few failing attempts I even tested the official flatpak package but it is an old version (currently 4.x) and scripting is not enabled too.

So I dug further until it actually succeeds to compile :-)

## ESP32 / MQTT - BLE beacon tracker powered by microPython

I am currently working with BLE beacons -only iBeacons for now- with Espressif’s esp-idf libraries. The aim is to use the ESP32 as a gateway to published detected beacons to an MQTT broker. It was surprisingly easy and I will write something about that when the code will be more polished.

Anyway, by curiosity and to speed up development, I wanted to try microPython port to ESP32, and I did. Unfortunately, BLE support is not yet reliable enough and a lot of advertisements were lost with 4 to 6 beacons. This post is to keep track of my work and, hopefully, use in the future when microPython port will be more reliable :-)

## Flask-Security - How to extend a form and its validator

This post contains my notes about the way to extend Flask forms and create a validator for the new fields.

## Wipy - Wifi selection at startup

I recently bought a Wipy development board to try MicroPython as a friend of mine is a big fan, and I whet a TI CC3200 (ARM Cortex-M4+wifi) development board even if I prefer to develop it in C.

Here is just a snippet allowing to ground or set to 3.3V GP4 in order to connect to home WLAN or set the card as an access point. Great for on-the-go development!