Hypertoken / Nightscout-Display

Nightscout-Wemos-OLED
2 stars 1 forks source link

Nightscout-Wemos-OLED

Nightscout blood sugar display on a Wemos with an OLED display.

Wemos with Integrated OLED

Credits

All credit and thanks go to the original project contributors:

This is a modified version of those projects.

Requirements

Hardware:

3D Printed Case

Credit to Qrome - Thingiverse link

Arduino

Boards Manager

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).

Libraries:

Setup

  1. Setup Arduino:

    • Install Arduino IDE.
    • Add ESP8266 (v2.7.4) board support.
  2. Download Libraries and Drivers:

    • Install required libraries mentioned above.
  3. Credentials.h.example:

    • Rename credentials.h.example to credentials.h (Just remove .example)
  4. Configure Wifi Details:

    • Update Wifi details in the credentials.h file.
  5. Configure Nightscout Connection:

    • Add your Nightscout URL and SHA also in the credentials.h file.
  6. Adjust Timezone:

    • Change timezone if needed.
  7. Customize Screen Pins:

    • Modify screen pins if necessary (e.g., "SSD1306Wire display(0x3c, D2, D5);").
  8. Set Sleep Time:

    • Adjust the sleep time for the number of minutes between site checks (default is every 1 minute).
  9. Upload Sketch:

    • Upload the sketch, ensuring the board is set to "LOLIN(WEMOS) D1 R2 & mini."

Wiring

Connect the hardware as follows:

Troubleshooting

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

Contributing

If you'd like to contribute to this project, feel free to submit pull requests following the contribution guidelines.

License

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.