[Q] Zooper and Tasker - Zooper Widget General

Can someone assist with the %FOTO variable.
I'm trying to create a widget which will display the very last picture i took and also act as a shortcut to my gallery when tapped.
I have set up the variable in tasker, using this information provided here: http://www.jagwar.de/zooper-tasker-variables/
I have put in the #zoopervariable# into Zooper using a blank bitmap, but is displays nothing?
I read somewhere that its because Zooper or Tasker is looking for images in the wrong location, is this true?
If so, how can this be changed?
Thank you

I'm pretty handy with both Zooper and Tasker, and was about to give the simple answer to this, but I figured I'd test it first, and ... there's an issue in Tasker with %FOTO getting the correct path to the last photo taken by the device's camera and/or accessing the path to this photo.
I think this is a combination of what device you have, what version of Android you're running, along with Tasker and Zooper.
Because in Tasker's documentation it says %FOTO should get the path to the last photo taken by the internal camera, but, it doesn't, depending on where the device's camera puts it.
So, it may not be able to be done, unless you use Tasker to take the photo, and in there you can specify any path/filename you'd like, and then push that over to Zooper using the Action>Plugin>Zooper>Set Variable.
If I manage to get Tasker to pull the correct path/filename to the last photo I took just using the device's camera (and not a Tasker action) I'll post it here. For reference I'm on Galaxy Note 4, Lollipop.
EDIT: As I suspected after doing a little research it's a combination of all that crap I mentioned above. At the very least if your camera/device is set to store photos on the External SD Card it's likely Tasker can't read it properly. But if your camera stores it internally Tasker MAY be able to read it, again depending on the vertsion of Android and the device.
Reference THIS LINK for more info on the problem.
There may be someone out there who has a workaround. Just have to Google Search a bit more. I guess a lot has changed since Jagwar posted that info in August, 2013. It's a good resource but there's some things that have changed in past couple years, looks like this is one of them.

Related

[NST][Home replacement] EpubBrowser [11/04/2012]

Hi,
I did up a home replacement for my Nook simple touch, thought I would share it. This is an initial release, no doubt there are bugs, incompatibilities, etc, you were warned. There are no checks for other devices at this point, NST only.
Thanks to the nook community for the noogie.img file, touch nooter, and relaunch for source code ideas and various threads regarding quick refresh and e-ink support.
Disclaimer: Now, what I am using currently is the bare minimum, I have tried quite a bit of the work in this forum and it works well, but I wasn't satisfied or 100% confident and I wanted less installed. So, I restored my nook to stock, used noogie and copied over a rooted ramdisk. That was it, no touchcolortools, nooktouchtools installed, adw minimal this or that, or button saviors. I am sure they are great programs but I don't know enough about them or have the interest/time to do research on them to want to keep them installed.
For me, the point is to keep things simple and maintain battery life. It's an e-reader not a tablet after all. I just want to read books, check email, check a website or two, get some more use out of wi-fi since I don't live in a B&N supported nation.
​To install:adb install EPubBrowser.apk
Optional:
I also installed Email.apk and set up my gmail from there, no certificates required or a million google app files and plucking a chicken on a Tuesday after jumping on your left foot crap. No offense to those who like chicken plucking.
adb install Email.apk
Done and done.
I can do up a CWM zip upon request, but last going off I have a continuous reboot after installing the latest version and if you know enough to get the Nook's CWM installed you should be able to use adb.​See attached files.
What is not working:
Since Android doesn't really know about multiple external storage locations (at least for the Nook's 2.1 and/or my knowledge of android) EPubBrowser is unable to detect when the internal storage has been remounted, there is no notification of that, just notification of external storage. So if you plug in your usb cord to the computer the list of books will be empty even when you remove it. So if you don't have an sdcard you will have to hit the back button and launch home again to refresh.
Also, B&N books are not listed, whatever is in My Files will be scanned only. That applies to internal and sdcard storage. You can still use B&N's Library to access those.
I don't have any option of uninstalling apps either. adb uninstall works fine or you can just delete files from /data/app via adb shell.
What is working:
Launch of EPubBrowser via nook's home button, without use of nooktouchtools, it duplicates how the B&N home app works.
The notification icon for resuming reading goes through the app. As long as the book was launched from EPubBrowser it can remember the last book, otherwise the main display will show up. Reason being that for whatever reason the last page read doesn't work with the B&N home screen if it's not a book bought from B&N. But if you are just using the B&N Reader app it's not a problem.
When you are prompted which home you want you can select EPubBrowser and hit default. This may not stay set and will go away the next time you reboot.
How to use:Left / right swipes to go to the next 6, previous 6 books, no indication of the current page is displayed, (e-ink and aesthetics).
Touch a book cover to launch a description of the book, swipe up and down to scroll through the description, touch the cover displayed there to start reading. Hit back button on top of screen to exit without launching a book.
To bring up the list of apps installed, swipe a clockwise circle starting at 10 O'clock. Touch an app to launch it, left or right swipe to go back to main screen.​That's it for now.
If you have any ideas for improvements, bug reports, please provide as much detail as possible, and when you have done that add some more detail.
Cheers!
Updates:
2/19/2012:
Added screensaver for last read book. (Jpeg 75%) Settings->Display->Screensavers->EPubBrowser
11/4/2012:
Added src project
Looks nice! I'll give it a shot later when my Nook's charged.
Thank you for making and sharing, i am going to try tomorrow and tell you,
Improvements
First of all, thank you for creating this cool launch screen. I love the simplicity of it. Here are is brief list of improvement that you can perhaps easily implement.
-When on the homescreen with the covers of all the books, I am not sure if I am suppose to scroll down or to the right to view the rest of my books.
-When on the page with the details from the book, there is no back button to take you back to the homescreen. I end up using the button savior back button.
-The circle gesture that takes you to the apps does not feel very responsive to me.
Anyhow, great job. Can't wait to see how you plan on improving it
OW MY EYES
I installed this, and everything just kept flashing. GO Locker and GO Launcher are both broken, and the only way I could fix it was by getting into ADW and closing the task. Did I install it incorrectly? I put it onto an SD card and used ES File Manager to install it.
ChunC said:
First of all, thank you for creating this cool launch screen. I love the simplicity of it. Here are is brief list of improvement that you can perhaps easily implement.
-When on the homescreen with the covers of all the books, I am not sure if I am suppose to scroll down or to the right to view the rest of my books.
-When on the page with the details from the book, there is no back button to take you back to the homescreen. I end up using the button savior back button.
-The circle gesture that takes you to the apps does not feel very responsive to me.
Anyhow, great job. Can't wait to see how you plan on improving it
Click to expand...
Click to collapse
Hi,
Thanks for the feedback.
You swipe left to go to the previous page of books. You swipe right to go to the next page of books, assuming you have more than 6 books. Personally, I know what books I have on the device so it's not a problem knowing how many are left to see for me.
The back button should be on top of the screen in the middle, not sure why it wouldn't be there on yours. I will give it a think, maybe remove the scroll control in the book description and just use gesture detection and scroll the text via code.
Responsiveness and speed will likely improve over time, I am using the gesture library, maybe there are some optimizations there I can do.
Cheers!
Googie2149 said:
OW MY EYES
I installed this, and everything just kept flashing. GO Locker and GO Launcher are both broken, and the only way I could fix it was by getting into ADW and closing the task. Did I install it incorrectly? I put it onto an SD card and used ES File Manager to install it.
Click to expand...
Click to collapse
Hi,
Noted, so it doesn't work with GO Lancher/Locker. Never tried GO stuff, so that wasn't tested. It was tested with ADW and relaunch, and I had all the rest of your typical touch nooter install there without problems, android market, etc.
I have run it with Home.apk renamed to Home.apk.bak and that works fine as well.
As for your other question, if it is installed it is installed, there are no configurations to modify, however you get it there it should be fine.
Cheers!
WANT
Noted that it does not work with go, will have to get rid of that first.
From the screenshots, I can already tell you put time into polishing! Good job!
NFHimself said:
Hi,
Noted, so it doesn't work with GO Lancher/Locker. Never tried GO stuff, so that wasn't tested. It was tested with ADW and relaunch, and I had all the rest of your typical touch nooter install there without problems, android market, etc.
I have run it with Home.apk renamed to Home.apk.bak and that works fine as well.
As for your other question, if it is installed it is installed, there are no configurations to modify, however you get it there it should be fine.
Cheers!
Click to expand...
Click to collapse
I'll try it again without the GO software, but it was making everything just keep flashing, like the lock screen.
@NFHimself, any plans for taking this to github? It is very close to what I always wanted but I was also looking for:
- some kind of usage of Calibre data
- library filtering for series, highly rated, etc.
- tracking of books that are clicked to maintain sort of recent read filter
- sorting options by rating, series, and other Calibre properties
- option to display 6 or 12 (smaller) book covers.
I hope it already does use intents for selecting a different epub reader for those who have no defaults and multiple ones installed.
I know its a long list, and I have some Android experience. I am sure there would be other developers here so a combined effort might help.
Screenshots looks good, but on the Nook - only flashing screen like Googie2149 said
tazzix said:
@NFHimself, any plans for taking this to github? It is very close to what I always wanted but I was also looking for:
- some kind of usage of Calibre data
- library filtering for series, highly rated, etc.
- tracking of books that are clicked to maintain sort of recent read filter
- sorting options by rating, series, and other Calibre properties
- option to display 6 or 12 (smaller) book covers.
I hope it already does use intents for selecting a different epub reader for those who have no defaults and multiple ones installed.
I know its a long list, and I have some Android experience. I am sure there would be other developers here so a combined effort might help.
Click to expand...
Click to collapse
Hi,
I use Calibre as well, I just connect via adb and calibre picks up the nook and I copy books over and it converts on the fly, cool program. Using Calibre data is an idea worth looking into, if I can fit it into the theme of no preferences, no extra buttons or config. There are plenty of those kind of home apps already. Relaunch for one is great, just missing a graphical front end, I was going to mod that, but decided that I didn't really need so much stuff and I wanted to learn more android API.
I did up the app using pretty straight forward epub standards (note the plural), it works with most epubs I have run across, not sure if looking for extra xml is a good functionality vs performance tradeoff. I haven't been using EPubBrowser for very long myself, so when I add more books and find something annoying I will probably make changes to fix it. I want to keep things simple, if I need a preferences menu, it is already going the wrong way.
I am not specifying any class, just a regular launch this epub file intent, so it should work with any reader. I like the stock reader myself, cool reader seems to dislike some epubs I have above a certain size, and I didn't want to deal with it.
I may github it, I am kinda time limited these days.
Cheers!
AgentSlash said:
Screenshots looks good, but on the Nook - only flashing screen like Googie2149 said
Click to expand...
Click to collapse
Hi,
More details are needed to figure that out. What device do you have? What do you have installed on it?
Cheers!
I just wiped then manually rooted my Nook, and this works now. Although I'm having some trouble with getting to the apps page after the first time I did it. Could you possible change how you get to the apps page? Maybe change it so you have to click the menu key to get to apps.
Edit: Now that I've added my books, it shows me two books, one empty, and another book. Now it just flashes and removes/re-adds the last book. :/
Edit 2: I found that there are a few books that just don't like this launcher and cause the entire Nook to start flashing. I've been adding my books one by one to see which work and which don't and I'll try and find similarities between those that don't.
Great launcher replacement.
Running right now, but after the second page, I get sent back to the first, regardless of left-to-right or right-to-left swiping. Ideas?
Also, any chance for a page up/down use for scrolling through books?
I took a quick vid. It looks like when I swipe again from R to L, it tries to redraw the next books, but gets confused?
http://youtu.be/K1ukWFK0syg
ace7196 said:
Great launcher replacement.
Running right now, but after the second page, I get sent back to the first, regardless of left-to-right or right-to-left swiping. Ideas?
Also, any chance for a page up/down use for scrolling through books?
I took a quick vid. It looks like when I swipe again from R to L, it tries to redraw the next books, but gets confused?
http://youtu.be/K1ukWFK0syg
Click to expand...
Click to collapse
Hi,
I'm busy painting the baby's room, but it looks like it is resetting, perhaps one of your books is crashing the app and it is being relaunched as the home screen. Or could be some other bug, how many books are involved, if you remove one or add one, does it go away?
If someone could open the e-pub (it's a zip file) that causes the error and paste the contents of the .odf file (it's an xml file) , that would help.
Cheers!
NFHimself said:
Hi,
I'm busy painting the baby's room, but it looks like it is resetting, perhaps one of your books is crashing the app and it is being relaunched as the home screen. Or could be some other bug, how many books are involved, if you remove one or add one, does it go away?
If someone could open the e-pub (it's a zip file) that causes the error and paste the contents of the .odf file (it's an xml file) , that would help.
Cheers!
Click to expand...
Click to collapse
I've gone through and removed / added ebooks, and still the same problem.
Sorry, been kinda busy.
I need to be able to see the bug on my end to work on it. Maybe I've been lucky with the book selections I have made or converting using Calibre has set them all to have the same kind of format, vs the variety you might see in the wild from multiple sources.
Does the error happen with no books?
What happens when you have just one book?
How many books do you have on your nook? (If it's something like 1000 then yeah, maybe you'd have issues, no checks in the code for being out of memory.)
What firmware are you using?
Are there any hardware differences? (Can't imagine that being a problem, but I am using a NST, not the original Nook.)
What can I do to reproduce this error on my end? What are the steps?
Cheers!
NFHimself said:
Sorry, been kinda busy.
I need to be able to see the bug on my end to work on it. Maybe I've been lucky with the book selections I have made or converting using Calibre has set them all to have the same kind of format, vs the variety you might see in the wild from multiple sources.
Does the error happen with no books?
What happens when you have just one book?
How many books do you have on your nook? (If it's something like 1000 then yeah, maybe you'd have issues, no checks in the code for being out of memory.)
What firmware are you using?
Are there any hardware differences? (Can't imagine that being a problem, but I am using a NST, not the original Nook.)
What can I do to reproduce this error on my end? What are the steps?
Cheers!
Click to expand...
Click to collapse
For me, it doesn't matter how many books I have, it's just a few specific books that crash, independent of the other books in my library, and some books are more severe than others (one makes the entire Nook start flashing (all software), others make only this app flash).
I have the same problem as the people above but I can't get past the first page. I can't seem to narrow it down to a certain book making it crash. It's a shame I love this home screen, but hopefully we can get this fixed and running great.

[Q] Is this possible using nfc?

First off I'm new to NFC tags and programming them. I was wandering if it would be possible to program a nfc tag in a manner that when I swipe it it would record the following things:
First swipe=current time, date and the address of the location the tag is at.(I would like to have the actual address of the location, not the geolocation)
Second swipe= current time date.
Basicly it would be a time in and time out, if I understand right I would basicly have to create a switch.
I would like it to send the information to either a calander of perferably a spread sheet.
Is something like this possible, and any idea what size nfc tag I may need.
Thank you in advance for any help,
Sean
That's not REALLY an NFC question, because basically like you said the NFC part is just - "Can you make an NFC Switch/Toggle tag?" The answer to that is yes, with the right NFC App. I recommend NFC Smart Q.
The stuff you want to do is about having an app do all that - probably Tasker would be best. Date, Time, and Geolocation I'm sure it can do. But specific address... not so sure about that.
Anyway, with the Tasker URL Launcher plugin app from the play store you can use a URL to launch a task. So you'd create two task - one to do the date, time, location and a second to do date/time. Then using NFC Smart Q you create a switch tag - have the first command be the URL to launch the first Tasker Task and the second to launch the second.
You'd have to ask in a Tasker forum about being able to get exact address, but my guess is it can provide geolocation only...
there is more than enough SPACE in the tags themselves to store the address just write it into the tag. the trick would be recording the time/date and linking it to the stored address.

Distinctive calendars in a single widget?

What I'd like to achieve is something like this
Code:
Me: something (day, time, location)
Wife: something (day, time, location)
Garbage: what (when)
Dinner: something
Birthday: who (when)
The data comes from my G-calendar, which has the respective sub-calendars.
The problem is, I always want to have it sorted like this, but I can't find a way to do it, since I only seem to be able to select appointment X, but I can't tell from which calendar. A workaround is to create multiple single line widgets and only selecting a single calendar source for it. But that's messy and problematic when moving around.
I guess I could built a dozen if-conditions around it, but that gets even messier, so can someone think of a good solution and be nice enough to share it with me? Thanks.
S.D.Richards said:
What I'd like to achieve is something like this
Code:
Me: something (day, time, location)
Wife: something (day, time, location)
Garbage: what (when)
Dinner: something
Birthday: who (when)
The data comes from my G-calendar, which has the respective sub-calendars.
The problem is, I always want to have it sorted like this, but I can't find a way to do it, since I only seem to be able to select appointment X, but I can't tell from which calendar. A workaround is to create multiple single line widgets and only selecting a single calendar source for it. But that's messy and problematic when moving around.
I guess I could built a dozen if-conditions around it, but that gets even messier, so can someone think of a good solution and be nice enough to share it with me? Thanks.
Click to expand...
Click to collapse
I don't think there is any good way to do it based on the way Zooper handles calendars/events. To me the variant with multiple widgets and only one calendar each probably is the only viable way at the moment.
kwerdenker said:
I don't think there is any good way to do it based on the way Zooper handles calendars/events. To me the variant with multiple widgets and only one calendar each probably is the only viable way at the moment.
Click to expand...
Click to collapse
It's an "ok" way for my phone, since I'm running Lightning Launcher and thus have no grid and can resize them, on my SO's phone it's problematic, since she uses a launcher with a fixed 5x5 layout and that calendar widget would use a whole page :/
Related question, is there a way to query the phone calendar store without fiddling with sqlite? There is python and googlecl, which I could use to script the required output, but as far as I see from Zooper's documentation, there's a 500ms timeout for shell commands and that would be problematic to query Google's servers in that time, espacially while on mobile data.
A simple solution like #C{X}A{Y}[Rest]# would be perfect, X being the calendar to use, Y the required number for an appointment and Rest the usual like title, time, etc.

[Q] Possible to count events between now and x?

I'm trying to design a homescreen that's fairly compact and functional. Rather than displaying the actual events that will be occuring, I want to try and get my widget to tell me how many events are occuring today and tomorrow ie:
x events today, y events tomorrow.
However, I can't seem to find any method of possibly achieving this. Is it possible to get Zooper to count events between now and say, midnight?
I've searched around and i couldn't find anything (or I'm just bad at searching). Any help would be much appreciated!
brownenvelope said:
I'm trying to design a homescreen that's fairly compact and functional. Rather than displaying the actual events that will be occuring, I want to try and get my widget to tell me how many events are occuring today and tomorrow ie:
x events today, y events tomorrow.
However, I can't seem to find any method of possibly achieving this. Is it possible to get Zooper to count events between now and say, midnight?
I've searched around and i couldn't find anything (or I'm just bad at searching). Any help would be much appreciated!
Click to expand...
Click to collapse
As far as the exact syntax, I'd have to think on/test it, but logic-wise I might have a solution and from it you can hack through the syntax to make it work.
Firstly, Zooper can't count or support arrays or loops, etc. So, you'd have to find a way to get each event to equal a "(1)" and then add them all together.
The easiest way to do this would be with Tasker and then send over a single variable to Zooper, but Tasker's native Calendar app integration is somewhat hit or miss depending on device and Android version, etc.
So, how can we do this in Zooper? Well as I was typing this I tried testing a few different way and realized each time you perform a mathematical operation in Zooper the result is a display result and not a new number you can then add or subtract from something else.
Maybe someone has a solution though. Would be interested to see how it can be done without Tasker.
It seems the following would work for counting today's remaining events. All-day events may mess it up. The basic idea is to test if event n is today and event n+1 is not today. It would look like this
...
$#CnSyyyyMMdd#<=#DyyyyMMdd#&&#Cn+1SyyyyMMdd#>#DyyyyMMdd#?n+1$
...
Or,
$#C0SyyyyMMdd#>#DyyyyMMdd#?0$
$#C0SyyyyMMdd#<=#DyyyyMMdd#&&#C1SyyyyMMdd#>#DyyyyMMdd#?1$
$#C1SyyyyMMdd#<=#DyyyyMMdd#&&#C2SyyyyMMdd#>#DyyyyMMdd#?2$
$#C2SyyyyMMdd#<=#DyyyyMMdd#&&#C3SyyyyMMdd#>#DyyyyMMdd#?3$
$#C3SyyyyMMdd#<=#DyyyyMMdd#&&#C4SyyyyMMdd#>#DyyyyMMdd#?4$
$#C4SyyyyMMdd#<=#DyyyyMMdd#?5+$
You can expand it up if you want, but all this has to be on one line. You can probably shorten it with yy instead of yyyy. Now as far as tomorrow's events, good luck.
Wrong thread
Mokum020 said:
I came up with a similar solution for todays events as ewcrider (also should be one line in Zooper):
$#C0SddMMyy#=#DddMMyy#&&#C1SddMMyy#!=#DddMMyy#?1$ $#C1SddMMyy#=#DddMMyy#&&#C2SddMMyy#!=#DddMMyy#?2$
$#C2SddMMyy#=#DddMMyy#&&#C3SddMMyy#!=#DddMMyy#?3$
$#C3SddMMyy#=#DddMMyy#&&#C4SddMMyy#!=#DddMMyy#?4$
$#C4SddMMyy#=#DddMMyy#&&#C5SddMMyy#!=#DddMMyy#?5$
The difficulty is that the event number order changes so that the first upcoming event will always be C0, second C1 etc.
So for instance if you create the first event tomorrow it will be C0 but if you then create a event for today this will become C0 and the event for tomorrow will become C1.
Click to expand...
Click to collapse
This solution worked for me, as a simple cut and paste. Very crafty!!
Wrong thread
Mokum020 said:
Wrong thread
Click to expand...
Click to collapse
Why does every thread you posted in say "wrong thread" now?

Change default photo names to something more meaningful

Hello,
Does anyone know if there is a way to change the standard name format Google gives images: IMG_20160101_121728.jpg to something else like N5X_01Jan16_12.45.11.jpg? I found one app that seems to do this after the fact here: https://play.google.com/store/apps/details?id=ro.ciubex.dscautorename
I was just wondering if there was another native way in-camera phone to do it? Or is there another app some recommend?
Lastly, does anyone know what the last set of digits represent in the name? I know the first represent the date.
Thanks,
Derek
dereksurfs said:
Lastly, does anyone know what the last set of digits represent in the name? I know the first represent the date.
Click to expand...
Click to collapse
The time, in 24-hour format.
I doubt there's any way to change the name format. You could whip up a shell command to change them.
the standard camera app does not have an option for that.
also, as crachel pointed out, the second set of digits is the time of recording in 24h format.
this way the values are all ordered from largest to smallest (Y/M/D_H:M:S) and therefor will always be in chronological order.
as you see the file names include already everything you want (apart from the N5X part), just in numerical form, and in an order that is at least for machines easier to work with.
if you still want another format i'd be curious of what you would expect from that.
Interesting, when I looked at the last set of numbers, they did not match the timestamp of the file system. So I thought they were just random unique numbers. But if I look at EXIF data on Google Photos, the time looks correct. So, at least they provide more meaningful information than I initially thought. I would still prefer a more reader friendly format like the one I posted above for my own archival purposes. IMG is too generic as I have many cameras along with their associated images. I could care less what Google or anyone thinks is machine friendly. I program for a living and know user experience trumps whatever someone assumes is easiest on a computer. Plus, a computer can read any format since its simply a date pattern. I just prefer another pattern.
I've looked into the last 6 numbers too. In my findings it's the second when the photo/video was taken/started recording. Same for exif. The filesystem contains the second when it was finished written to "disk".
Also sometimes you get _1, _2, ... after that if more photo was recorded in the same second.

Categories

Resources