Skip to content

Using an M5-Paper to show various things. From the Current time, to weather but also the current Blood Glucose, via Nightscout and in Future over Bluetooth from Xdrip Directly. And all of that as Energy Saving as Possible.

License

Notifications You must be signed in to change notification settings

Sebastian0897/M5_Paper_Nightscout_Xdrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

M5_Paper_Nightscout_Xdrip

Using an M5-Paper to show various things. From the Current time, to weather but also the current Blood Glucose, via Nightscout and in Future over Bluetooth from Xdrip Directly.(working on the bluetooth connection currently) And all of that as Energy Saving as Possible. You dont need to use the Blood Glucose Display if you dont have any use for it. I am also planing implementing Features like Smart Home Control. * Update * I will implement Smarthome stuff in a seprate Program and write a framework to switch programs

Picture

How it works

The Programm starts every minute to update the clock and update other information. That is all that is needed as the M5 Paper has an E-ink Display that retains the information without using power. What to update when is currently hard coded, but I am Planing to implement a config file to make that easier to configure. After all the Updates the devices calculates how long to shut off (and set a timer via the RTC) to reboot in time for the Clock to switch to the next minute.

The current Battery Life is nearly 3 Days. If you disable the Blood glucose Display it should be longer.

Using the Code

For the Code to Work Correctly the RTC time needs to be set before installing my Code. Also you need to fill in your wifi Credentials(only 1 set required but multiple are possible), Openweathermap APi key (if you want the Temperatur Display), Nightscout server adress(if you want the Blood Glucose Display). At the bottom of the code is the main loop were you can set what to run when. I am planing on Improving how that works to make it configurable in a Config file.

Currently working:

  • Time and Date
  • On/Off Notification
  • WIFI Indicator
  • Battery Indicator
  • Energy saving
  • Temperatur Display for a given location
  • Display for Blood Glucose over Nightscout
  • Multiple Wifi Credentials Possible

TODO:

I have decided to write a framework to switch between multiple Programs. And not write the Smarthome controll stuff in this program. but a seperate one. I will put a link here to the repository when i have something to show.

GUI:

  • Better Arrows to Indicate Blood Glucose Direction
  • Better weather Display
  • Graphing the Blood Glucose
  • maybe a Different Font

Features:

  • Implement a bluetooth and a wifi mode
  • Config file for the parameters that need to be set
  • Change the main loop to make i configurable with a config file
  • Multiple Languages (currently just German GUI)
  • Find something usefull to do with the half empty Display
  • Get Blood Glucose Directly per Bluetooth from Xdrip
  • Maybe also Phone Notifications per Bluetooth
  • Alarms for Critical Blood Glucose (maybe also Predictive Alarms)
  • implement Location Finding via wifi networks
  • Make use of the Buttons and Touch Display
  • You tell me

Ideas:

  • Maybe implement different modes like energy saving and night mode, or more often Updates
  • Maybe implement some Smart Home controlls (Philips hue/Hubitat/AVM)

Bugs:

  • You tell me

Credits

I am using code Snippets from:

An got some Ideas and Inspiration From:

About

Using an M5-Paper to show various things. From the Current time, to weather but also the current Blood Glucose, via Nightscout and in Future over Bluetooth from Xdrip Directly. And all of that as Energy Saving as Possible.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages