Changement automatique de fichier Hosts sous Windows 10

J’utilise des tunnels SSH pour accéder à des services chez moi. Je sur-défini ensuite le fichier hosts de Windows pour que les adresses de ces services pointent vers localhost.

Le problème, c’est que c’est embêtant d’aller commenter les lignes à la main dans le fichier hosts.

Du coup, j’ai automatisé tout ça pour que ça se fasse tout seul. Voici comment.

Continue reading “Changement automatique de fichier Hosts sous Windows 10”

Fetching Garmin data, done !

In my previous article, I managed to fetch Garmin Connect wellness data as JSON but I needed to fetch the authentication SESSIONID using a browser. It appears that login into the application was not so complicated. I managed to understand how to perform the authentication on Garmin Connect using BASH and curl. So now, my script is fully autonomous.

EDIT: The project now has its own repository on Github.

Continue reading “Fetching Garmin data, done !”

Fetching my Garmin wellness data

I had Garmin watches for years now. The last one is recording my “wellness data” (steps, heart rate) and publishing it to Garmin’s servers. While the Garmin Connect website is great I want to get a backup of these data on my own computer.

Garmin has a Health API, but requesting access requires a painful process. So, I decided to write my own script to fetch the data.

In this article I detail the process used and how I came to choose BASH and curl as the best technology.

EDIT : Sources are now hosted in a github repository.

Continue reading “Fetching my Garmin wellness data”

Raspberry Pi Zero W as both wifi client and access point

Sometimes, it can be great to have a separate access point for some devices, like for example Internet of Things devices. The Pi Zero W can just do that. But what if you need it to connect to the internet at the same time? In this article, I present how to configure the Raspberry Pi Zero W as both a wifi client and an access point. Continue reading “Raspberry Pi Zero W as both wifi client and access point”