Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwohlbruck committed May 11, 2022
1 parent e922297 commit 55c6f8b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


## Signing in
Visit https://project-covalent.herokuapp.com and sign in with your Google account. You will be redirected to the home page where you see your lamp or pair a new one.
Visit https://www.projectcovalent.app and sign in with your Google account. You will be redirected to the home page where you see your lamp or pair a new one.

## Pairing a lamp
The app uses Bluetooth to pair to your lamp and configure it. This is not supported on iOS devices, or in the Safari browser. Compatible browsers are Chrome, Opera, Edge, and Samsung Internet. For more info about compatibility, visit <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility" target="_blank">this page</a>.
Expand Down
5 changes: 2 additions & 3 deletions micro/app/ota/ota_updater.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os, gc
from .httpclient import HttpClient
from app.led import pulse, set_gradient, get_color_gradient, rgb_to_hue
from app.led import pulse, set_color

class OTAUpdater:
"""
Expand Down Expand Up @@ -78,8 +78,7 @@ def install_update_if_available(self) -> bool:
(current_version, latest_version) = self._check_for_new_version()
if latest_version > current_version:
print('Updating to version {}...'.format(latest_version))
hue = rgb_to_hue(255, 255, 255)
set_gradient(get_color_gradient(223))
set_color((255, 255, 255))
pulse()

self._create_new_version_file(latest_version)
Expand Down
2 changes: 1 addition & 1 deletion micro/app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ def start_server():
run_setup()
# run_startup()

return Server('project-covalent.herokuapp.com', lamp_id)
return Server('www.projectcovalent.app', lamp_id)
2 changes: 1 addition & 1 deletion micro/app/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def counter(callback_id, current_time, callback_memory):

def start_updater_chron():
mcron.init_timer()
mcron.insert(15, {0}, '15s', counter)
mcron.insert(15 * 1000, {0}, '15m', counter) # Check update every 15 minutes

def my_exception_processor(e):
print(e)
Expand Down
2 changes: 1 addition & 1 deletion server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export const google = {
export const sessionSecret = process.env.SESSION_SECRET

export const clientUrl = process.env.NODE_ENV === 'production'
? 'https://project-covalent.herokuapp.com'
? 'https://www.projectcovalent.app'
: 'http:https://localhost:8080'

0 comments on commit 55c6f8b

Please sign in to comment.