Thursday, December 26, 2019

[PROJECT] Battery Monitor v1.2

DESCRIPTION
Here you have a small project to be aware of the status of your battery at the time of charging.

This is the info you will know in real time:
• Temperature (ÂșC)
• Watts (W)
• Voltage (V)
• Charge current (mA)
• Accumulated capacity (mAh)
• Connection type (AC, USB, Wireless)
• Estimated total charging time

Notes:
- Thanks to @Valdorg for helping on building the project, and @cruzer_blaze2, @MeloProfessional for helping on testing/debugging.
- There's another very similar version of the project from our well known buddy (@MeloProfessional) that you can check on his TSB channel: Go!
- At the time of connection, will be normal that some of the values, during the first seconds or perhaps minutes, may not appear. That's because Tasker must wait for the intent to collect all the corresponding data.
- If you don't know the battery design capacity of your device you can get it using this profile.
- Except for 'Watts (W)', the rest of the values will be gotten without root. But, if non-root fails for whatever reason, root will be used instead.
- A debug task (Debug Task) is included in case the user has problems with erroneous values or not shown. Follow the instructions inside it to know how to use it.

SCREENSHOTS

CREDITS
@SmartPhoneLover
@Valdorg
@cruzer_blaze2
@MeloProfessional

CHANGELOG
- New: Temperature mode selection (°C/°F). (configure it from 'Setup' task)
- New: Debug task (separated from the project) to send logs to me (dev of the project), if it fails reading some of the values. (read notes about it)
- Fix: Unset values due to non-existent files/sources now won't prevent the rest of values not to be updated.

DOWNLOAD
Battery Monitor
Project (XML)
Project (TaskerNet)
Debug Task
Task (XML)

DOWNLOAD (Ads Supported)
Battery Monitor
Project (XML)
Project (TaskerNet)

11 comments:

  1. Hi
    I imported the taskernet profile
    I cant disable nor delete the profile, i can't find it! how do i do it? I even restored a backup and the profile's still on

    ReplyDelete
    Replies
    1. Hello,
      I do not include any malicious content on my projects, please, take that into account. Just to clarify it.

      By the other hand, it's a project not a profile, but has some profiles. The rare thing here is that all the profiles the project includes are visible. (Tasker does not allow to export projects with unnamed profiles. So I'm not really sure why you still having some "related" profiles to that project after deleting it.

      Did you try importing it again, but using the XML way this time? How did you tried to delete the project in your case?

      Delete
    2. I imported the xml and the tasker et again, it appears but if I delete it, I still get the notification monitor. And nothing related to it is shown on tasker. Like I said, restored an old backup and still get the monitor on the not bar..

      Delete
    3. I now deleted everything from tasker, disabled tasker, and still get the notification...

      Delete
    4. I tried to reproduced your situation by importing in another device the latest available version, running it for first time. Then, closing (unplug device). Finally deleting the project.

      During and after the test, I did not have any rare behaviour like yours. The notification, if locked (already tested), got disappear when the device was restarted.

      Delete
  2. Love this task, awesome job on it. But the main reason I'm using it is to see how much longer it will take to charge my battery. And for some reason the calculation on this goes wrong on my phone.

    It shows it will take a couple of billion days till full charge. And that cannot be true. Do you have any idea what to change to show the correct charging time?

    ReplyDelete
    Replies
    1. Hello, I'm already aware about that bug. I think I have fixed the calculations for the formula, but I have also added a java method that returns the remaining time if API (>=28).

      This is the current project I'm working on right now during these days, but as I'm working (job) I don't have enought time to focus on, and also I'm looking how to merge something a user developed for the project too.

      Please, do not expect v1.3 during this month. Maybe September. Sorry.

      Delete
  3. No problem, just reply to this post when it's done. Thanks for all the effort :)

    ReplyDelete
  4. Thanks! Going to test it out later this week when I have some time

    ReplyDelete