This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Select "Arduino Nano" as card type | |
// Select "ATmega328P" or "ATmega328P (Old bootloader)" if Upload isn't working | |
// Select the COM port where you plug the Nano | |
// Include the Arduino Stepper.h library | |
#include <Stepper.h> | |
// Define number of steps per rotation | |
const int stepsPerRevolution = 2048; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# 1: executer la commande : "wget https://raw.githubusercontent.com/orcasgit/python-nokia/master/bin/nokia" | |
# 2: executer la commande : "ip addr" et récupérer l'IP de la machine | |
# 3: editer le fichier nokia : "nano nokia" | |
# 4: ligne 37 et 38, remplacer l'IP récupérée a l'étape 2 et le port par ce que vous souhaitez, il ne doit pas être utilisé sur cette machine. Exemple | |
# 'server.socket_host': '192.168.1.19', | |
# 'server.socket_port': parsed_url.port or 90, | |
# 5: sauvegarder le fichier | |
# 6: créer un application ici : https://account.withings.com/partner/dashboard_oauth2 Attention l'url de callback doit être l'ip de la marchine + le port renseigné à l'étape 4. Exemple: http://192.168.1.19:90/ | |
# 7: récupérer l'ID du client (CONSUMER_KEY) et le secret d'application (CONSUMER_SECRET) afin de les saisir dans ce fichier |