Improved Calendar - page 2 - General Discussion and Assistance - CHDK Forum

Improved Calendar

  • 19 Replies
  • 8559 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Improved Calendar
« Reply #10 on: 30 / June / 2012, 03:00:03 »
Advertisements
I knew that, but it was for testing and no one has tested it :(. Now I will update the patch to the newest CHDK-revision and post it in the right thread.

Edit:
Should I post this calendar (after a few fixes) also there or is there anyone that could test it before.

If you've tested the code, and no-one has raised any issues, feel free to post it to the thread for addition to SVN.

A stand alone feature like the number input box should not cause any issues and I would expect it would get added to SVN pretty quickly.

You may want to get more people to test out the calendar changes since these seem more substantial and possibly have a higher risk of breaking the existing code.
In the end this is a community effort - if you're happy with the change and want to get the feature added post the patch.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Improved Calendar
« Reply #11 on: 31 / August / 2012, 08:50:52 »
I've worked more on this and I hope that it works and is better.
Now you can delete entries with ERASE and DISP keys (all other keys are do the same as above). Also the calendarfile is smaller and if the text is to long to be viewed at once it scrolls (I don't know how to say this in English, test it).

Some days ago in German forum we had a discussion about sunset/sunrise data for all. genie01 had made a CHDK version for displaying astronomic data based on GPS. So the mathematical basics are available.
I've read that, but my camera hasn't started with that version, so I couldn't test it.
...
The sunrise and sunset times in the calendar view would be a very good improvement.
That's a good idea, I hope we can combine this.
Because the versions that are posted there haven't worked for me I couldn't do anything to bring it into calendar. But if the code from there is released I will try to make it available in the calendar either with a key or with a menu (I have an idea, it's better than a real a menu but I couldn't explain it).

EDIT: I've found another error, I will make a new patch
EDIT2: The attached patch is updated and should work now.

TobiMarg
« Last Edit: 31 / August / 2012, 11:07:32 by TobiMarg »

Re: Improved Calendar
« Reply #12 on: 31 / August / 2012, 11:46:12 »
It would be nice if you post the compiled module (if it's compatible with the current CHDK and your module can simply replace the present one).

In general it would be nice to have a place to store CHDK modules as they work as software :)
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Improved Calendar
« Reply #13 on: 01 / September / 2012, 05:17:17 »
It would be nice if you post the compiled module (if it's compatible with the current CHDK and your module can simply replace the present one).
I've now attached the compiled .flt file. You can replace the default calendar.flt with it (in A/CHDK/MODULE) or rename it and load it from the filebrowser (it should work with any camera, but is only tested on my SX230).

In general it would be nice to have a place to store CHDK modules as they work as software :)
That's a good idea. I think it could be a thread like this, but for modules.

Re: Improved Calendar
« Reply #14 on: 01 / September / 2012, 13:03:30 »
Tested, for me it works nice. It took me a little experimentation to understand which button does what. IHMO when you see the list of entries it's natural to use 'MENU' as exit to the calendar, but MENU causes module shut down. Not a problem, but not intuitive for me to use shutter button.

No other issues found. I like this tool.

It would be also nice if there would be an option in CHDK itself to display all entries for today when cam is first time turned on. With CHDK cameras are more and more like smartphone. Smartcam?

(...) and load it from the filebrowser (it should work with any camera, but is only tested on my SX230).

I had no idea that modules can be loaded from filebrowser, thanks. I'm still learning :D
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Improved Calendar
« Reply #15 on: 01 / September / 2012, 15:20:02 »
Thank's for testing and hopefully it raises no errors later.

IHMO when you see the list of entries it's natural to use 'MENU' as exit to the calendar, but MENU causes module shut down. Not a problem, but not intuitive for me to use shutter button.
Yes, I'll change this so that 'MENU' returns to the 'month view'.

It would be also nice if there would be an option in CHDK itself to display all entries for today when cam is first time turned on. With CHDK cameras are more and more like smartphone. Smartcam?
I also thought about this but I don't know how to do this yet (I will work on this).

I had no idea that modules can be loaded from filebrowser, thanks. I'm still learning :D
If you go to a module in the filebrowser and press 'FUNC. SET' the module will be loaded an started (textfiles will be openend in textreader).

Re: Improved Calendar
« Reply #16 on: 01 / September / 2012, 16:03:36 »
It would be also nice if there would be an option in CHDK itself to display all entries for today when cam is first time turned on. With CHDK cameras are more and more like smartphone. Smartcam?
I also thought about this but I don't know how to do this yet (I will work on this).
On your place I would try to check how does the 'CHDK logo on start' works and then use this code with only little modifications :)

I had no idea that modules can be loaded from filebrowser, thanks. I'm still learning :D
If you go to a module in the filebrowser and press 'FUNC. SET' the module will be loaded an started (textfiles will be openend in textreader).

Yes, after your previous post I saw this. Never did it before. Nice feature.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Improved Calendar
« Reply #17 on: 03 / September / 2012, 12:36:07 »
Hello!

I have observed, that sometimes when I call callen.flt from filebrowser (no matter if it's your improved one or the regular one) the callendar doesn't have background and behind the days I can see the CHDK menu. Maybe you could add a little delay after run before the callendar draws itself?

There's also worse problem - sometimes callendar causes crash. Here's romlog.

if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline srsa_4c

  • ******
  • 4451
Re: Improved Calendar
« Reply #18 on: 03 / September / 2012, 13:42:03 »
sometimes callendar causes crash. Here's romlog.
The romlog shows a data abort (access to nonexistent memory).
The code is full of file operations, without verifying that open(), etc. actually succeeded. It may also contain other bugs. Somebody will need to review and fix it. Any volunteers ? :)
See also http://chdk.setepontos.com/index.php?topic=265.msg88815#msg88815

Re: Improved Calendar
« Reply #19 on: 08 / September / 2012, 06:53:52 »
Thanks for the replies. The crashes never happened on my cam, but I will look at them.
Now I have very little time but in a few weeks I have holydays and can fully work on CHDK.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal