Add local mode support
alexcastillo opened this issue · 1 comments
Hey everyone,
I'm excited to announce that we just shipped Local Mode. Next time your OS updates, you'll be able to use this feature.
With local mode, device metrics like brainwaves, calm, focus, etc will stream via your local WiFi network and not the default cloud server.
Local Mode is disabled by default, to enable it via the Developer Console, you can go to Setting -> Application Settings:
You will see the "Local Mode" icon to the left.
To enable it while using the API:
await notion.enableLocalMode(true);
To disable it:
await notion.enableLocalMode(false);
Keep in mind:
- Activity Logging will not work while this setting is enabled.
- Your Notion must be connected to the same WiFi network as this device to establish communication.
- For encryption to work, you must be connected to a private network.
- Some WiFi networks may block IP ranges that might include your Notion's IP address.
- An internet connection is still needed to authenticate, get device status and add metric subscriptions.
- This setting is not global and needs to be set for every Notion app you wish to affect.
Documentation: https://docs.neurosity.co/docs/reference/classes/notion#enablelocalmode
Add good use case @JesseRWeigel pointed out is to connect your Notion to your phone's hotspot and enable Local Mode to use the device while driving.
Special thanks to @noopkat and @matthieu for pushing us to build this feature.