Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  day / night mode by hour
« previous next »
  • Print
Pages: 1 2 3 [4]

Author Topic: day / night mode by hour  (Read 12050 times)

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: day / night mode by hour
« Reply #45 on: January 09, 2013, 03:40:03 PM »
Quote from: whiskers75 on January 09, 2013, 02:11:31 AM
Since the build system I use can't run rockboxdev.sh as it has a 10 minute timeout per command.

That doesn't make rockboxdev.sh "buggy". "buggy" is something completely different. If the system you're trying to run the script on terminates it after a given amount of time it's a limitation of the system you're running it on. It is in no way a problem of rockboxdev.sh. Building the toolchain takes a while. A process requiring some time isn't "buggy" but, depending on what the process does, totally normal and expected behaviour.

Please stop stating such wrong facts.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: day / night mode by hour
« Reply #46 on: January 10, 2013, 06:57:12 AM »
Yes; the problem is that the CI system expects build dependencies to either be available in binary form to be installed, or to be able to download and build them in a few seconds. It's a hosted system run by a third party who doesn't want their resources to be wasted compiling gcc from scratch over and over again. :)

If you want to use this system then it's your problem to work out how to create suitable packages for it to use; there is nothing wrong with rockboxdev.sh - it's not intended for this, is all.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: day / night mode by hour
« Reply #47 on: January 10, 2013, 07:44:19 AM »
would any developers be willing to code this?

it runs a cgf file at a predefined hour thats all

instead of giving him so much beef for trying cant one of you just write it?

or tell him exactly where to look so that he can get it done himself much-faster.

do you guys feel all the advice you have given him so far is helping him get this done? i dont
im sorry


Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: day / night mode by hour
« Reply #48 on: January 10, 2013, 10:22:40 AM »
Look, he decided to use external service we do not support - it is his choice but at the same time he screams that our tool (rockboxdev.sh) designed to cope with our way of building is broken. If he wants to use our tool with external service it is his duty to glue it all together.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: day / night mode by hour
« Reply #49 on: January 10, 2013, 11:37:54 AM »
Quote from: rbhawaii on January 10, 2013, 07:44:19 AM
do you guys feel all the advice you have given him so far is helping him get this done?


Yes. I do.

But, as you've seen, giving advice has absolutely no bearing on whether or not that advice is followed or not. If a decision is made to ignore that advice, what would you have us do? We cannot force anyone to do our will.

The solution isn't to do it for him.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: day / night mode by hour
« Reply #50 on: January 10, 2013, 11:40:47 AM »
Quote from: rbhawaii on January 10, 2013, 07:44:19 AM
instead of giving him so much beef for trying cant one of you just write it?
The way this project (like many open source projects) works is that people write things they want/care about/are interested in. If someone else wanted to do it they'd've done it already, so it looks like the answer is no, nobody else wants to.

Quote
or tell him exactly where to look so that he can get it done himself much-faster.
Telling someone exactly where to look in this case is analogous to explaining the library filing system to someone who can't read the language the books are written in.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline Reece

  • Member
  • *
  • Posts: 101
  • AKA, ZallCaTor
Re: day / night mode by hour
« Reply #51 on: January 10, 2013, 03:11:54 PM »
      The beauty of RockBox is the customization. You don't have to be restricted by what Rockbox currently offers... You can modify it to your liking, and if its lacking something you want, then you can add it! :). And if that modification is good enough, it can even be added to the official build.
But for those of you who don't know anything about coding, (kinda like me) that can be a draw back. But there is always time to learn, and there is no better time then now.
I think the best place to start is theming. Its a great way to get to know your way around the ".rockbox" files. I have learned ALLOT from looking at other peoples themes. The best way to learn is to fallow the leader.
Logged
Reece, AKA; ZallCaTor
Devices: |Clip+|Fuze V2|

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: day / night mode by hour
« Reply #52 on: January 10, 2013, 11:48:00 PM »
For what it's worth, I'm not entirely sure that learning our proprietary skin engine language would be beneficial in any way to learning C or ASM.
It certainly couldn't hurt, but I don't think it would help. There are no similarities in these languages.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: day / night mode by hour
« Reply #53 on: January 11, 2013, 01:58:15 PM »
I'll go further, it'll be of no use at all :)
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #54 on: January 12, 2013, 02:48:27 AM »
You're right, I don't know C, and shouldn't be doing this. Therefore, I won't.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: day / night mode by hour
« Reply #55 on: January 12, 2013, 04:14:42 AM »
Quote from: whiskers75 on January 12, 2013, 02:48:27 AM
I don't know C, and shouldn't be doing this. Therefore, I won't.

That seems rather defeatist. One would think the answer would be to learn C.

I hope you haven't come to the conclusion that anyone is trying to drive you away from the project or discourage you from contributing.

To put it as simply as I can, one can either give a man a fish, or teach a man to fish. If you are going to teach a man to fish, one should first make sure that they are using a fishing rod, instead of a shovel.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #56 on: January 13, 2013, 02:56:48 AM »
Quote from: [Saint] on January 12, 2013, 04:14:42 AM
Quote from: whiskers75 on January 12, 2013, 02:48:27 AM
I don't know C, and shouldn't be doing this. Therefore, I won't.

That seems rather defeatist. One would think the answer would be to learn C.

I hope you haven't come to the conclusion that anyone is trying to drive you away from the project or discourage you from contributing.

To put it as simply as I can, one can either give a man a fish, or teach a man to fish. If you are going to teach a man to fish, one should first make sure that they are using a fishing rod, instead of a shovel.


[Saint]

What I'm saying is, I shouldn't be doing C while I'm in the middle of JS stuff.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #57 on: February 01, 2013, 01:53:01 PM »
This is being worked on.
After reading up on C, I know more about how to do it.
(FYI, the CI system is now working using rockboxdev.sh)

Create a function:
Code: [Select]
void update_dn() {
}
Save it in daynight.h
Require it in main.c:
Code: [Select]
#include "daynight.h"
Call the function (every second/minute/hour):
Code: [Select]
update_dn()

Profit!
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: day / night mode by hour
« Reply #58 on: February 01, 2013, 03:46:59 PM »
Quote from: whiskers75 on February 01, 2013, 01:53:01 PM
Save it in daynight.h

You shouldn't put functions in header files. There are a few cases where this is necessary but this isn't one of them.

Quote
Profit!

That function is empty, i.e. does nothing. How is that going to profit?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #59 on: February 02, 2013, 05:35:49 AM »
I left out the bits inside the function.
OK, fine, I'll put it in daynight.c.
Update: Here: Day/night prototype 1, commit 26a4a3b55e. Include daynight.c and run daynight() when you want to update day/night status. Build Status

« Last Edit: February 02, 2013, 05:58:25 AM by whiskers75 »
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

  • Print
Pages: 1 2 3 [4]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  day / night mode by hour
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.122 seconds with 14 queries.