Nightscout blood sugar display on a Wemos with an OLED display.
All credit and thanks go to the original project contributors:
This is a modified version of those projects.
Credit to Qrome - Thingiverse link
Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).
- Start Arduino and open the Preferences window
- Enter
https://arduino.esp8266.com/stable/package_esp8266com_index.jsoninto the File>Preferences>Additional Boards Manager URLs field of the Arduino IDE. You can add multiple URLs, separating them with commas. - Open Boards Manager from Tools > Board menu and install esp8266 (v2.7.4) platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
- Time
- ArduinoJson (Version 5)
- esp8266-oled-ssd1306
-
Setup Arduino:
- Install Arduino IDE.
- Add ESP8266 (v2.7.4) board support.
-
Download Libraries and Drivers:
- Install required libraries mentioned above.
-
Credentials.h.example:
- Rename credentials.h.example to credentials.h (Just remove .example)
-
Configure Wifi Details:
- Update Wifi details in the credentials.h file.
-
Configure Nightscout Connection:
- Add your Nightscout URL and SHA also in the credentials.h file.
-
Adjust Timezone:
- Change timezone if needed.
-
Customize Screen Pins:
- Modify screen pins if necessary (e.g., "SSD1306Wire display(0x3c, D2, D5);").
-
Set Sleep Time:
- Adjust the sleep time for the number of minutes between site checks (default is every 1 minute).
-
Upload Sketch:
- Upload the sketch, ensuring the board is set to "LOLIN(WEMOS) D1 R2 & mini."
Connect the hardware as follows:
- VCC = 3v3
- GND = GND
- SDA = D2
- SCL = D5
Make sure you check the issues section for some help. Here are some issues that I solved when first setting up the project; Issues - Closed
If you'd like to contribute to this project, feel free to submit pull requests following the contribution guidelines.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Anyway, hope someone finds this useful! Feel free to reach out if you have any questions or issues.
