3/11/2023 0 Comments Filebot sequence![]() I saw that you can do this with nodered but I prefer keeping my automations within home assistant. It would be nice to be able to save the resources and just access the files directly from telegram. I also have some nest cameras integrated into home assistant that I have send photos to my main group, but since I don’t have those in a database I have to save them to disk and keep them for a period of time in case I want to archive those with the telegram bot. I do this with a callback query button and the database record id I get from my blue iris nvr. With each of the photos sent, I have an inline keyboard that gives me the option to archive the photo to another group for easy access and future reference. My telegram bot sends quite a few images from my security cameras per day to the main telegram group I have set up for my house. I use the telegram bot integration in home assistant to send security camera photos to a group, It would be great to be able to get the file_id and use it with inline keyboards and callback queries. Perhaps it could be included in the telegram_sent event or in it’s own event like possibly a telegram_file event. Once my EXIF metadata was corrected, I used the below preset with Datasource:Plain File in Filebot to rename, and this had my desired outcome.Did you ever come up with a way to get the file_id? I would also like to see the ability in home assistant to get the file_id. This date, by everything I can see, is a very close date to the true date taken on the photo - and that was better, for me, than having null values. I used a filter expression (Get_EXIF_DateTimeOriginal_D = 0)) as a part of ImBatch's job to avoid modifying any files where there was valid EXIF metadata. I used High Motion Software's free program called ImBatch to create an automated job that would populate EXIF metadata for exif.DateTimeOriginal only when the field was empty/null, replacing the value with the data available in the file system's Date Created field. I wanted to circle back and provide the following information for you or anyone else who may stumble across similar problems in the future: My photos are a hodge podge collection of imported, copied, backed up and restored files that have been touched by multiple file systems and applications, and I assume that somewhere along the way in prior years where I knew less, EXIF metadata was lost or erased inadvertently. I don't know why some of my actual photos were missing EXIF metadata, but that bothered me more than it should. Thanks again rednoah - super appreciated! I lastly tried just plugging in that line into a preset, and it works, but I don't think I want to use the new command (I quite frankly don't understand it or what it does). ![]() This way, the pipe separators are only injected when metadata values are found. I have been looking for other posts or guides to no avail. Is there an easy way to implement this in a one line preset like I've been working on? Many thanks in advance for any help anyone can provide here, and apologies if this has been answered elsewhere. I thought this was an even more elegant solution as I'd prefer to have a date in the file name - it's more important to me that a date is there, whereas camera model is just optional added info. I then came across a forum post below which detailed how to alternatively use date modified, presumably because this was a more accurate representation of when the photo was taken compared to OS date created (but this is using CLI which I am not confident in attempting at this time). When I use this without the $ in front of dt.format, it works, but a huge % of my pictures don't contain date values for that call, and therefore no date value is put into the file name. I presume the $ does not work for dt, or that my syntax is incorrect, but I couldn't quite figure out what was wrong there. html If you would like to know more about rename command, type the man rename in the terminal. This works perfectly for the camera model, but not for the date. If you would like to forcefully overwrite existing files, use the -f option as shown below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |