Code Monkey home page Code Monkey logo

gammathingy's People

Contributors

angomarcello avatar cfilipov avatar delebedev avatar ekurutepe avatar focalintent avatar gblazex avatar thomasfinch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gammathingy's Issues

UI clarification

I'm sorry if this is a silly question, but I feel it's warranted despite the simplicity of the app: if I turn on the scheduled activation will it only work if I manually hit the enabled switch? It would appear so whenever I enable the schedule. It often doesn't yellow the screen until I manually enable the app, regardless of the time of day.

Readme could use more information about license/permissions

Hi Thomas! To help prevent further confusion and misuse, I'd suggest adding some more information to your readme, pretty much along the lines of your recent Reddit comment, such as: that you are intentionally retaining copyright for this code, which means that people may not redistribute it (as code or in compiled form) without your permission; that this project has no relationship to the authors of f.lux; that you recommend people get in contact with the authors of f.lux before releasing related work, since they are nice cool people; and so on.

No non-expired provisioning profiles were found?

Hello,

I'm new to this so sorry if it is a stupid question, but when I open GammaTest.xcodeproj in Xcode 7.0.1, I get a yellow triangle with an exclamation point that said "Applications using launch screen files and targeting iOS 7.1 and earlier need to also include a launch image in an asset catalog." I have OSX 10.10.5 and am trying to install GammaThingy on an iOS 9.0.2 device. I also get another warning, an exclamation point in a stop sign, reading "No provisioning profiles found: No non-expired provisioning profiles were found." It then says "Failed to code sign" when I attempt to build on the device, prompting me to "Fix Issue". It goes through a loading screen and then says "An App ID with Identifier 'me.thomasfinch.GammaThingy' is not available. Please enter a different string." and does not complete the build. How can I resolve this issue? Thanks for your time and for building this.

Background Fetch Alternative

Recently I saw some discussion here on this problem. Right now we use background refresh to check if the screen temperature must change, however this isn't very reliable, because it requires the screen to be enabled to change the colour. Now the latest problems with battery of the Facebook app set me thinking. What if we let the background fetch determine whether it's time to switch, and as soon it's time to switch we enable 'Audio background' playing. This allows the app to change the screen colour as soon as the device is unlocked, because it can continuously run in the background. We disable the 'Audio background' thereafter to keep the battery usage to a minimum. I might be wrong on this idea, because I've never played around with the 'Audio background' mode.
What do you think?

Dimming screen

I worked on some code that also lets you dim the screen. I'm about to test whether it works when you're running in the background, but if it does I will put the code up on my fork.

Do you think this would fit in the app? If it would, I'll put in a pull request.

URL for Darkroom Mode?

Any chance that there'll be a URL added to enable/disable Darkroom Mode? I ask because I saw that there's now an orangeness URL to enable/disable the orange filter.

Keeps crashing ipad mini iOS 9.1

After fighting with app ids i got this error: keeps crashing:

2015-11-23 18:42:01.260 GammaTest[705:169251] First execution activation was NOT triggered
2015-11-23 18:42:10.380 GammaTest[705:169251] enabled: 1
2015-11-23 18:42:10.390 GammaTest[705:169251] Lock status: 0
Assertion failed: (file != NULL), function +[GammaController setGammaWithRed:green:blue:], file /Users/tomaszkaczmarzyk/Downloads/GammaThingy-master/GammaTest/mvc/controller/GammaController.m, line 138.
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.
(lldb)

crash when "enable" on iOS 9.1

I cannot get it to do anything on iOS 9.1 at all. It crashes the moment I want to enable it... Any ideas or directions how I could help?

No IOMobileFramebuffer

ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/PrivateFrameworks'
ld: framework not found IOMobileFramebuffer
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Automatic change of color

Would it be possible to include automatic change of color based on user location?
solar.c from redshift source (GPLv3) should help in implementation of this function.

Transition animation

Hey folks what do you think about this?
I worked on a little method to transition between gamma values.

// This method creates a transistion from one gamma value to another
+ (void)setGammaWithTransitionFrom:(float)oldPercentOrange to:(float)newPercentOrange {

    float delay = 0.02; // The animation delay

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        if (newPercentOrange > oldPercentOrange) {
            for (float i = oldPercentOrange; i <= newPercentOrange; i = i + 0.01) {
                [NSThread sleepForTimeInterval:delay];
                [self setGammaWithOrangeness:i];
                NSLog(@"%f",i);
            }
        } else {
            for (float i = oldPercentOrange; i >= newPercentOrange; i = i - 0.01) {
                [NSThread sleepForTimeInterval:delay];
                [self setGammaWithOrangeness:i];
                NSLog(@"%f",i);
            }
        }
    });
}

Color Issues

Distorts color on iPhone 6s+, leaves green pixels and other distorted color.

Not obsolete for people with older ipad/ipod/iphone

I just discover with iOs 9.3 beta 5 that the Redshift option is not available on my first generation ipad mini!!!! Seems it will not be available on any older 32bit tablet/phone because of a performance issue!!! I never add performance issue with Flux or Gammathingy... Apple marketing...

Does not work on iPad pro

Have tried to find out why, we get a reference to the framebuffer, and can call setGammaTable, but the screen does not change.

Do you have newer iOKit headers? I think that on the pro we might need to set a flag to allow gamma table changes.

Add a proper license please

I purposely have not added an open source license to the project and am intentionally retaining copyright for the code, meaning that it may not be redistributed (in code or compiled form) without my permission.

Here's a summary of the permissions already granted:

  1. Others can view the code
  2. Others can redistribute the code (via forking, as per GitHub's ToS)

Here's a summary of the permissions not granted:

  1. Nobody is allowed to modify the code.
  2. Nobody is allowed to compile the code.
  3. Nobody is allowed to install the code on their device.
  4. Nobody is allowed to run the code.

I realise you're being nice, but because there is no license agreement, it is not at all clear what you are and aren't allowing.

What I think you want to do is allow everything except redistributing compiled binaries. Perhaps that is what you should say.

Unable to run since last commit

Thanks for your work on this :)! I was able to use it previously, but since your latest commit, I'm getting an "EXC_BAD_ACCESS" on this line and am unable to use the app: error = IOMobileFramebufferGetGammaTable(fb, data);

In GammaController.m. Can you look into this?

Provide a fade transition when enabling or disabling gamma shift

The lack of transition to oranginess is a bit jarring. When activating automatically, a gradual change à la flux would be ideal. When activating with the manual switch, a shorter fade would be nice.

Thanks for the awesome app, by the way—you've checked off a feature that's been at the top of my wish list for years. I know Apple will never build it, but if they did, they'd give it a fancy marketing name (Natural Temperature) and claim to have invented it.

Activating after reboot

When enabled is set to 1 and you reboot and open Gamma Thingy again the enabled switch is active but the effect is not present.

Workaround:
Turning enabled off and on again does help for now.

Possible solution:
Adding logic at application launch that checks for the state of enabled.

URL Scheme support?

It would be awesome if the app could support URL schemes, so we can automate dimming with Workflow/Launch Center Pro!

(Disclosure: I'm not an iOS dev, no idea how easy this would be but I think it would be a perfect addition! Also, this would be a nice place to say: my eyes thank you for the app, it's great! :) )

Cannot sign "me.ahammer.GammaTest.GammaWidget"

Can someone help a newbie out and let me know what else I need to change to solve this issue? I've changed the team and bundle identifier, e.g. me.ahammer.GammaTest.XYZ123, just can't work out where the widget identifier needs changing.

Thanks.

Before bedtime third automatic mode

Before bedtime is critical and is a third phase if you look at f.lux's graph for example on the desktop.

So there should probably be a segmented control that says [ Daytime | Sunset | Bedtime ]

The slider always controls the currently selected phase of the three, and three separate temperatures can be set.

Permanent orange filter after deleting app

After installing on my iPhone and deleting the app the orange filter still remains.

Powering off and restarting the phone returns the screen to normal but as soon as I reinstalled the app and tuned on the filter again, it was like I had two filters on at the same time, one permanent and the other controlled by the app.

The result is that, using the app, I can increase the orange level up to extremely orange but I am not able to turn it off.

Is there a way to undo this and return the app and my phone to normal behaviour?

App crashing when enabled or touching Orange-ness

My Gamma Thingy crashes if I attempt to enable it or adjust the orange-ness setting. I also get an "Assertion failed" output in Xcode when running that points to the line (currently 138)

assert(file != NULL);

How do I resolve this?

How can it get colder rather than warmer?

Thank you very much for your hard work!
I have an iPhone with warm screen which is warmer and white color shows like yellow.
With this app I can only make the screen warmer.
How can it get colder rather than warmer?

Assert failure in GammaController.m

2015-12-11 11:19:09.128 GammaTest[829:290676] First execution activation was NOT triggered
2015-12-11 11:19:11.252 GammaTest[829:290676] enabled: 1
2015-12-11 11:19:11.260 GammaTest[829:290676] Lock status: 0
Assertion failed: (file != NULL), function +[GammaController setGammaWithRed:green:blue:], file /Users/Alex/Documents/3rdPartyRepos/GammaThingy/GammaTest/mvc/controller/GammaController.m, line 138.

(lldb) po file

Doesn't works, keeps on crashing

After opening the app and adjusting the slider the app crashes immediately. The app shows no change in screen when its no crashed(which is before interacting with the slider)

crash on enable toggle

running 9.1 beta 4 on my 6:
app immediately crashes on toggling on/off yet it will change the gamma color but its not adjustable.

Crash when enabling GammaThingy.

App is crashing when checking "Enabled".

Crash reports below.

Running iOS 9.2 on iPhone 6S.

This is very similar to crash in GammaThingy fork GoodNight reported here.

Today Widget

I'm having trouble with Background App Refresh triggering, in addition to an URL scheme as suggested by another user can help alleviate the issue perhaps a slider widget in the Today section of Notification Center can also help quick management.

I know as the night goes on I like to make the screen warmer and warmer, so a Today widget would also help in that regard.

Thanks so much for open-sourcing this. My eyeballs and sleep cycle are grateful!

Red Tint after disabling orangeness

Even after disabling the tweak there is a light red tint that covers the whole screen ( which is different from the orange tint). (iPhone 6+ 9.0.2)
Maybe a mixup with restoring the original gamma tables?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.