Giter Club home page Giter Club logo

Comments (27)

pageauc avatar pageauc commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

Release 12.03 fixes trigger for creating new subdirectory when the max hours is exceeded. Had to convert to float to get fraction of hours. tested and works. Please upgrade to new release using menubox.sh UPGRADE menu pick
Will leave this issue open. Let me know results of your testing.
Claude ....

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

Thank you, it seems to work now when I run the pi-timolo.py, I don't think it started them menubox.sh unless it quits it when i exit menubox.sh, I have not really spent time with it yet. I noticed I have really messed up the configuration. I did not realise the paths are relative to the folder set way later in the configuration. I know I screwed up when I reached it but I tried it anyway. It ended up making a folder named ~ in there because I used absolute paths for all the paths like ~pi/timelapse.

Silly me.

Ill reconfigure and I will let you know.

Thank you very much.

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

This is missing, just gives a warning. I added this line to get rid of it. It is just missing from the settings for some reason.
PANO_DAYONLY_ON = 'False' # Only take panoramic image during daytime

Other than than, a quick test everything works perfectly. I started and stopped everything from menubox, the webserver seems to work fine, when I go to recents then timelapse I get a page error but directly from timelapse it works. maybe it just needs time. I will update later if it doesn't work once I put it to work for a while.

Thanks again.

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

Yes there is something not working with the recent folder in the webserver, if I browse to motion, it works, if i try to browse to timelapse, it gives an error.

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

Recent Folder can sometimes get screwed up if symlink points to a non existent file, Recent entries are symbolic links to the actual images. Once the recent max is reached oldest entry is removed and new symbolic link created for the latest entry.

I suggest you delete all files in the recent folder (they are only sym links so the original image files will remain. Example below assumes default location of recent folders.

eg

  cd ~/pi-timolo/media/recent/timelapse
  rm *  

Recent will then start to fill until max is reached. Default is 40 but you can make this any reasonable value. I don't recommend anything over 400 or 500 since it slows directory refresh.

PANO_DAYONLY_ON is just a new setting I was working on but not implemented. It is in the pi-timolo.py code but not in the config.py since it is not implemented yet. Just ignore for now.

Messed up settings. There is a config.py.prev so you could copy it over config.py

eg

cp config.py config.py.bak
cp config.py.new config.py

or

cp config.py.prev config.py

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

Ok After doing more testing It appears the subdirectory creation was not being triggered due to difference not being a float value.
I have done some quick testing and the subdirectory creation looks like it is triggered correctly when the age of the directory exceeds the specified max hours. The check is used for timelapse and motion.

Please upgrade to release 12.03 using the menubox.sh UPGRADE menu pick
Please let me know the results of your testing
Than Claude ....

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

I released pi-timolo ver 12.04 that adds logic for PANO_DAYONLY_ON setting. Also updated config.py but you can manually add variable if necessary otherwise message will appear.
Also
video.conf has settings for auto removing or moving source timelapse images to archive location
There are also settings for copying video to a mount point share. This is what I use to put my video's on a disk attached to a RPI running KODI.
I am looking at the manual override settings. I think I will put settings in a python list (or maybe dictionary) in config.py. One for Day and One for Night. That way camera settings can be added or removed from the list as necessary.
Stay Safe and Healthy
Claude ...

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

I have written a little python script that reads dictionary override values for the picamera. It is not too long but demonstrates
applying custom settings. The values on the sample dictionary settings are NOT very good but I put variables down that I thought might be relevant. Current settings do NOT take very good images but was just testing logic for reading camera vars.
Can you work with this to get the type of images you would like. I can use these as default override settings.

For picamera API Docs See https://picamera.readthedocs.io/en/release-1.13/api_camera.html#picamera

Code should be fairly easy to understand. It is the camera settings that need tuning.

Thanks Claude ...

testcam.zip

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

This is currently a standalone script for testing purposes. The idea would be to put the new variables with comments in config.py.
If you want to test pano I would recommend waveshare hat since Pimoroni hat has to be ordered from England with currency exchange and extra shipping costs. BTW I have several pimoroni hats and they are IMO better than Waveshare.

Waveshare HAT
https://www.amazon.ca/gp/product/B07PPV122Z/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
Pimoroni HAT
https://shop.pimoroni.com/products/pan-tilt-hat?variant=22408353287

pi-timolo will automatically install the required pantilthat driver for either of these or a compatible.

This hat sits on top of the RPI plugged into the GPIO header. I also put standoffs on the opposite side to support the hat but not absolutely required. See wiki for details https://github.com/pageauc/pi-timolo/wiki/Panoramic-Images-Stitching-Feature

Note assembly is a little finicky but there are YouTube videos (see wiki for a link) Also I had to drill a hole in the camera plastic insert panel for the RPI camera to see through. First one I drilled a hole for the lens and filed bigger for the raised square around the lens. Second one I just drilled a bigger hole and only did a bit of filing. Also had to clip a corner of the tilt servo with side cutters so it would clear the pan servo. Just working with small screws can be finicky

BTW I would still like to see what settings you come up with for the camera override settings.
Claude ....

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

FYI. Release 12.06 fixes a problem not maintaining TIMELAPSE_RECENT_MAX. It now keeps timelapse recent at specified maximum. I think it occured when global variables were renamed to capitalized snake format. Works now and recent is much faster with smaller number of recent entries. I set mine to 100 but default is 40. Anyway it now works the way it should. It should autocleanup older recent entries.

Hope everything is going well and you are safe, healthy and happy
I will add the image settings override feature when I get your recommended default settings.
Added a few more settings. See zip file

testcam.zip

Claude ...

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

You should add music to your videos. You can do this from within YouTube Studio on a PC with chrome browser.
See https://support.google.com/youtube/answer/94316?hl=en

This is a mini video editor. You can add an audio track and pick creative commons music or sound effects from the google audio library. They have a large library of pretty good music.

I normally edit in my videos using my PC video editor. A good free Open Source video editor is Lightworks https://www.lwks.com/
Claude ...

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

I sent you a copy of testcam.py that I was testing with. I set
CAMERA_OVERRIDE_DAY_ON = False # Default= False Override Day Settings Only (daymode auto detects Day)
CAMERA_OVERRIDE_NIGHT_ON = False

This turned off the override feature so you did not get any override. I have added a reminder at bottom of script. Here are the settings currently

CAMERA_OVERRIDE_ON = True     # Default= False Do NOT use Override settings True= Enabled
CAMERA_OVERRIDE_DAY_ON = True   # Default= False Override Day Settings Only (daymode auto detects Day)
CAMERA_OVERRIDE_NIGHT_ON = True # Default= False Override Night Settings Only (daymode auto detects Night)
CAMERA_WARM_SEC = 4           # Default= 4 Seconds to wait for camera to warm up

daymode = True  # This var will normally be set in pi-timolo based on pixel average.
                 # change to appropriate value for testing.

Please use the attached script that should work better for you. It just does one image at a time by design. I did not want to put in a loop since it would required adding more code.
Claude ....

testcam.zip

from pi-timolo.

pageauc avatar pageauc commented on June 2, 2024

I think I will eliminate the CAMERA_OVERRIDE_ON setting since the day night overrides would be simpler and less confusing.
Note this script is just for testing things. Also some camera values can be read from the actual value the camera used. I may display the actual camera setting used where it is practical. Eg if Automatic setting used it would show what the camera AWB, Shutter, Etc was actually used by the camera. This is covered in the picamera api docs.

See https://picamera.readthedocs.io/en/release-1.13/api_camera.html#picamera

Claude ...

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

Distortionist avatar Distortionist commented on June 2, 2024

from pi-timolo.

Related Issues (20)

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.