Skip to content

neuroblack/Oyasumi

 
 

Repository files navigation



💤 A collection of utilities to assist with sleeping in virtual reality. 💤

Latest Version Production Build Status Development Build Status License
Discord Badge Booth.pm Page Gumroad Page

Oyasumi is an open source tool to assist with sleeping in virtual reality (VRChat).
Oyasumiは、バーチャルリアリティの中で睡眠をアシストするオープンソースソフトウェアです。
booth.pmのストアページには、日本語の説明文が掲載されています。

If you want to come chat, join our Discord Server!

Getting started

Grab the latest installer over on the Releases page.

Overview

Sleeping Animations

GPU Power Limiting

MSI Afterburner Automations

Sleep Detection

Status Automations

Resolution Automations

Auto Accept Invite Requests

Battery Automations

Brightness Automations

Features

  • 🔌 GPU Automations:
    • When you go to sleep, or when you wake up:
      • Activate your MSI Afterburner profiles. (NVIDIA/AMD)
      • Tweak your power limits. (NVIDIA)
  • 🔋 Battery automations:
    • Automatically turn off trackers and/or controllers:
      • When you go to sleep (so you still have some juice left in the morning!)
      • When putting them on a charger
  • 🔵 VRChat Status Automations
    • Automatically change your status based on the number of players in your world:
      Switch to blue when you are sleeping alone so your friends can join you, and switch to orange when there's enough people around!
  • 🔧 Turning off all trackers and/or controllers with a single click.
  • 📧 Automatically accept invite requests on VRChat
    • Automatically let friends in while you are asleep!
    • Configure whose invite requests are accepted using a black- or whitelist.
  • 🔅 Automatic smooth adjustment of display brightness (Valve Index)
    • Allows you to gradually lower your headset's brightness when you fall asleep
  • 👓 Automatic adjustment of SteamVR's render resolution
    • Allows you to lower your headset's render resolution when you fall asleep
  • 📲 Premade expression menu for controlling some features right from within VRChat
  • 💫 Automatic sleep animations with pose detection
  • 💤 Automatically enable and disable sleep mode for triggering automations
    • Detect falling asleep:
      • When Oyasumi guesses you are asleep based on your movement
      • When a controller or tracker battery percentage falls below a threshold
      • When turning off your controllers
      • On a time schedule
    • Detect waking up:
      • When turning on a controller or tracker
      • On a time schedule
      • When SteamVR is stopped
  • 🗺️ Multi language support
    • English
    • Dutch (Nederlands)
    • Japanese (日本語) (Outsourced + Community contributions by なき)
    • Korean* (한국어) (Community contribution by Soumt)
    • Traditional Chinese* (繁體中文) (Community contribution by 狐 Kon)
    • Simplified Chinese* (简体中文) (Community contribution by 狐 Kon)
    • French (Français)* (Community contribution by neuroblack)

If you would like to help out with adding more languages and/or missing translations, please check out the wiki page on adding translations for instructions on how to get started!

(*) Support for this language is a community contribution and as such the translations might not have 100% coverage with each and every update.

Built With

Oyasumi has been built with Angular and Tauri.

Supported Devices

Battery Automations

Currently Oyasumi supports battery automations for all SteamVR devices that:

  1. Support reporting for battery levels and charging status
  2. Support being turned off via SteamVR.

This includes, but is not limited to the following devices:

  • HTC Vive Controllers/Wands
  • Index Controllers/Knuckles
  • Vive Trackers (1.0/2.0/3.0)
  • Tundra Trackers*

This means that any Oculus controller is unlikely to work, and SlimeVR trackers are unsupported unless they implement this functionality in their OpenVR driver.

(*) Tundra trackers have very delayed reporting of battery levels and charging status. This means that while automations will still work, they will be very delayed (minutes in the double digits), unless Tundra fixes this in their tracker firmware. (https://forum.tundra-labs.com/t/firmware-issues/746)

GPU Automations

Any NVIDIA or AMD graphics card that is supported by MSI Afterburner can be automated by having Oyasumi activate the profiles you've set up within MSI Afterburner.

Directly controlling the power limits of your graphics card with Oyasumi is only supported with NVIDIA cards. AMD users will have to use the MSI Afterburner profile automations to be able to control their power limits with Oyasumi.

Display Brightness Automations

These automations are currently only supported on the Valve Index.

Supporting more headsets by adjusting the image brightness is something that is planned for a future release.

Development

To start development on Oyasumi, start by following Tauri's prerequisites (Installing Rust). Make sure to grab the nightly, as Oyasumi uses some functionality that is not yet available in the current stable release of Rust.

After you have followed the guide and installed Rust, install NodeJS.

It could be helpful to install the Angular CLI globally.

Once you have set up these dependencies, you can continue as follows:

  1. Check out Oyasumi on your machine.
  2. Run npm run install or yarn, depending on whether you prefer using npm or yarn.
  3. Run npm run build or yarn build at least once.

From here, you can run npm run tauri dev or yarn tauri dev to run the application locally.

VRChat

Some features of Oyasumi require you to log in with your VRChat account for them to work. (E.g. status automations)

This is only required for features that rely on this. You can use features that don't rely on this without having to provide credentials. Your login credentials will never be stored anywhere and are only ever sent to VRChat's servers for authentication purposes.

Oyasumi isn't endorsed by VRChat and doesn't reflect the views or opinions of VRChat or anyone officially involved in producing or managing VRChat. VRChat is a trademark of VRChat inc. VRChat © VRChat Inc.

The Oyasumi developer and any of this project's contributors are not responsible for any problems caused by Oyasumi (to your VRChat account or otherwise). Use at your own risk.

License

Oyasumi is available under the MIT license.

About

🥽 VR Sleeping Utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.6%
  • HTML 17.4%
  • Rust 14.0%
  • SCSS 10.3%
  • JavaScript 1.4%
  • CSS 0.3%