PKCubed / OpenChime

An open-source Raspberry Pi based school bell system.
MIT License
20 stars 1 forks source link

Uptime is Not Accurate + Misspelling #2

Open PKCubed opened 2 months ago

PKCubed commented 2 months ago

After rebooting my Raspberry Pi 4, the uptime in the Web Interface showed as 3 days when it should read only a few minutes. Will need to look into this issue. Pasting log file below:

Also note that succesful should be spelled successful. This issue needs to be fixed.


OpenChime v0.1 Starting... Start Time: 1714762368.2552342 verbose=True Verbose mode is active. More detail will be logged. USB drive should be named OPENCHIME Succesful import of main libraries Play sound startup wav audio/startup.wav Playing sound: startup Succesful definition of function get_net_interfaces Succesful definition of function setup wifi Succesful definition of function get_recursions Succesful definition of function refresh Succesful definition of function get_calendar Succesful definition of function internet_on Succesful definition of function get_ip Succesful import of flask libraries Succesful definition of function set_flask_user Succesful definition of flask pages Succesful init of flask Succesfully defined main functions, continuing on to main loop Sleeping for 5 seconds USB Drive Connected usb_files = ['Bell.wav', 'config.json', 'log.txt', 'System Volume Information'] usb_init_files = ['Bell.wav', 'config.json', 'log.txt'] USB Drive has all required files Starting usb_load function Config successfully loaded {'google_calendar_url': 'https://calendar.google.com/calendar/ical/290cebc812a4399f4b71d279d104db4ad638c6aa626a8ffc78c50a97830ed56b%40group.calendar.google.com/public/basic.ics', 'enable_webui': True, 'webui_password': '1234', 'wifi_ssid': '', 'wifi_password': '', 'notifications': True} fetching calendar from url 0 Calendar retrieved successfully USB Drive Loaded USB Drive at /dev/sda1 mounted to: /home/openchime/OpenChime/usb USB Drive Initialization Successful Play sound usb_connect Playing sound: usb_connect wav audio/usb_connect.wav 0 fetching calendar from url 0 Calendar retrieved successfully 0 IP Address = 10.100.100.72 IP Address = 10.100.100.72 IP Address = 10.100.100.72 IP Address = 10.100.100.72 IP Address = 10.100.100.72 ... IP Address = 10.100.100.72 IP Address = 10.100.100.72 Web UI - Manual bell (Bell) IP Address = 10.100.100.72 Playing sound: Bell wav /home/openchime/OpenChime/usb/Bell.wav IP Address = 10.100.100.72 IP Address = 10.100.100.72 IP Address = 10.100.100.72 0 IP Address = 10.100.100.72 ...

PKCubed commented 2 months ago

image