Jump to content


Photo

New Plugin: SmartMonitor 0.9.6.0 [Updated 15/11/2004]

- - - - -

  • Please log in to reply
272 replies to this topic

#41
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser
all I can see that you really changed is the font weight and the color. Let me try to make mine do what you're trying to do. You want it bold when selected only?

Mine is copied from the same source but I modified the second line so it looks cleaner and some other little stuff. Once enece posts his, I'm going to rip out his code anyway. I really like the pics and he did an awesome job.

-Mc

p.s. I think the Fahrenheit worked OK in the last version but not the latest. See enecee's homescreen and see that it works. See what mine says:

Attached Files

  • Attached File  home.jpg   11.47KB   576 downloads

  • 0

#42
nickcornaglia

nickcornaglia

    Blackjack'd

  • Members
  • PipPipPipPipPipPip
  • 4,251 posts
  • Gender:Male
  • Location:Mt Laurel, NJ USA
  • Devices:iPhone5
  • Twitter:@nickcornaglia
Here ya go. Here is the code. The BMP's are in the zip file along with the entire XML file and a photoshop file if you want to modify the rest yourself. Have fun. (PS. This is still a work in progress so it's constantly changing. Here is a screenshot of the latest as well.)
<!-- SmartMonitor -->

<plugin clsid="{05E393E9-1712-41ac-B9D3-533B52F10A36}" name="SmartMonitor" height="22">

<background state="unselected" bgcolor="transparent"/>

<background state="selected" bgcolor="transparent"/>

<format state="unselected" bgtext="transparent" bgcolor="transparent" padding-left="0" padding-right="0" padding-top="0" padding-bottom="0" font-face="Nina" font-size="10" font-weight="normal" font-quality="cleartype"/>

<format state="selected" bgtext="transparent" bgcolor="transparent" padding-left="0" padding-right="0" padding-top="0" padding-bottom="0" font-face="Nina" font-size="10" font-weight="normal" font-quality="cleartype"/>



<monitor state="selected">

<text x="5" y="1" color="#FFFFFF">Memory</text>

<memory x="4" y="11" color="#FFFFFF" units="Mb">{free}MB</memory>

<meterbar x="2" y="11" image-full="StorageApplication DataHomemonitorbar_full1.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="memory-free" details="physical" transparent-color="#FF00F0"/>



<text x="41" y="1" color="#FFFFFF">Battery</text>

<battery x="39" y="11" color="#FFFFFF">{flag-short}</battery>

<meterbar x="37" y="11" image-full="StorageApplication DataHomemonitorbar_full2.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="battery" transparent-color="#FF00F0"/>



<text x="74" y="1" color="#FFFFFF">Storage</text>

<storage x="74" y="11" color="#FFFFFF" path="Storage" units="Mb">{free}MB</storage>

<meterbar x="72" y="11" image-full="StorageApplication DataHomemonitorbar_full3.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="storage-free" details="Storage" transparent-color="#FF00F0"/>



<text x="109" y="1" color="#FFFFFF">SD Card</text>

<storage x="109" y="11" color="#FFFFFF" path="Storage Card" units="Mb">{free}MB</storage>

<meterbar x="107" y="11" image-full="StorageApplication DataHomemonitorbar_full4.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="storage-free" details="Storage Card" transparent-color="#FF00F0"/>



<text x="148" y="1" color="#FFFFFF">Temp</text>

<temperature x="144" y="11" color="#FFFFFF" units="F">{temp}F</temperature>

<icon file="StorageApplication DataHomemonitortemp.bmp" x="142" y="11" transparent-color="#FF00F0"/>

</monitor>



<monitor state="unselected">

<text x="5" y="1" color="#FFFFFF">Memory</text>

<memory x="4" y="11" color="#FFFFFF">{free-percentage}%</memory>

<meterbar x="2" y="11" image-full="StorageApplication DataHomemonitorbar_full1.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="memory-free" details="physical" transparent-color="#FF00F0"/>



<text x="41" y="1" color="#FFFFFF">Battery</text>

<battery x="39" y="11" color="#FFFFFF">{life-percentage}%</battery>

<meterbar x="37" y="11" image-full="StorageApplication DataHomemonitorbar_full2.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="battery" transparent-color="#FF00F0"/>



<text x="74" y="1" color="#FFFFFF">Storage</text>

<storage x="74" y="11" color="#FFFFFF" path="Storage">{free-percentage}%</storage>

<meterbar x="72" y="11" image-full="StorageApplication DataHomemonitorbar_full3.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="storage-free" details="Storage" transparent-color="#FF00F0"/>



<text x="109" y="1" color="#FFFFFF">SD Card</text>

<storage x="109" y="11" color="#FFFFFF" path="Storage Card">{free-percentage}%</storage>

<meterbar x="107" y="11" image-full="StorageApplication DataHomemonitorbar_full4.bmp" image-empty="StorageApplication DataHomemonitorbar_empty.bmp" bar-direction="left-right" type="storage-free" details="Storage Card" transparent-color="#FF00F0"/>



<text x="148" y="1" color="#FFFFFF">Temp</text>

<temperature x="144" y="11" color="#FFFFFF" units="F">{temp}F</temperature>

<icon file="StorageApplication DataHomemonitortemp.bmp" x="142" y="11" transparent-color="#FF00F0"/>



</monitor>

</plugin>

Attached Files


  • 0
-Nick

#43
mfioble

mfioble

    Regular

  • Members
  • PipPip
  • 50 posts
You have it right McHale, I just wanted to make it go bold when selected. But for some reason it goes blank when selected even though everything is the same in the selected/unselected sections, except for the bold flag.

  • 0

#44
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser
Thanks! Here's my new home screen. Notice, using the latest plugin, the temp is wrong on this one as well. I don't have the older version anymore so I can compare...

-Mc

Attached Files


  • 0

#45
nickcornaglia

nickcornaglia

    Blackjack'd

  • Members
  • PipPipPipPipPipPip
  • 4,251 posts
  • Gender:Male
  • Location:Mt Laurel, NJ USA
  • Devices:iPhone5
  • Twitter:@nickcornaglia
you can change the color of the BLANK bitmap to black instead of green to match your background. I have not loaded the latest version and am still running the previous version....where my Farenheit is working fine. Guess I wont be upgrading to the latest yet! ^_^

  • 0
-Nick

#46
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser
cool... thanks for the tip.

By the way, the graphs don't show when it's not selected. I have no idea why this is the case. It works fine at first, but once you move your bar to it then off of it once or twice, it stops working. ^_^


Thanks again. This is great work!

-Mc

  • 0

#47
nickcornaglia

nickcornaglia

    Blackjack'd

  • Members
  • PipPipPipPipPipPip
  • 4,251 posts
  • Gender:Male
  • Location:Mt Laurel, NJ USA
  • Devices:iPhone5
  • Twitter:@nickcornaglia
Did you just change your post???

By the way, your code that you cut and pasted into this thread is not the same as the code in your zip file. When I used the code posted here, the graphs didn't show when it wasn't selected. In your zip file, it worked fine.  

I went to look at the code. I cut and paste right from the XML. The only thing I can think of is the text in the CODE block above is reformatted in some way with line breaks that "break" the XML....

ANYONE ELSE...USE THE CODE IN THE ZIP FILE!!!! ^_^

As far as selected and unselected...I can switch on and off 100 times and it always works for me. Try loading my entire homescreen and see if that works. The only differences between what you have and what I have is you are using the newest version of the plugin...I am still one back.

  • 0
-Nick

#48
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser
yah, sorry for the confusion. I used the thread code and it gave me that problem. So I copied and pasted it out of the zip file and it didn't. So I posted. Then I selected it a couple times and BOOM... started doing it again. Had to change my post. DOH! Don't be surprised if this issue is my fault. I'm editing the default home screen to include everything I want. Oh yah, I also don't know XML so am learning as I go.

We'll see pretty soon if people creating screens have the problem. It's at least documented here in case someone else sees it. Maybe you're right, it's another thing with the latest version. I'll try your entire screen and see what gives...

Since I'm learning XML by doing this, hopefully, I'll have actually retained some of it and can figure it out. ^_^

Thanks again. Your home screen and those graphs look awesome.

-Mc

p.s. what's the highest number you can use for a refresh rate? 60? 120? 600? Anyone know? I certainly don't need to monitor it that close and an approximate is fine with me (especially if my precious battery is at stake).

  • 0

#49
nickcornaglia

nickcornaglia

    Blackjack'd

  • Members
  • PipPipPipPipPipPip
  • 4,251 posts
  • Gender:Male
  • Location:Mt Laurel, NJ USA
  • Devices:iPhone5
  • Twitter:@nickcornaglia

Oh yah, I also don't know XML so am learning as I go.


Join the club! ^_^


EDIT:
I edited the gif image to reflect the latest XML...ZIP file updated too.

  • 0
-Nick

#50
nickcornaglia

nickcornaglia

    Blackjack'd

  • Members
  • PipPipPipPipPipPip
  • 4,251 posts
  • Gender:Male
  • Location:Mt Laurel, NJ USA
  • Devices:iPhone5
  • Twitter:@nickcornaglia
DrFonz...
Would it be possible to add a temperature offset to bring the temperature a bit closer to actual ambient room temperature???

Example:
offset = -10

Bringing the temp from 87F to 77F, for example.

  • 0
-Nick

#51
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser
enece,

I can't imagine the phone's temperature is relative to the room temperature. It's the same as how some PC's monitor processor temperature. If you were to subtract a number from that temperature to bring it to current room temperature, it would nearly always read about that temperature. Though the surrounding temperature could affect it one way or another, you could never get anywhere close to a real reading.

So I guess what I'm saying is, if the phone read 80 degrees while it sat in your coat pocket, once you starter to talk on the phone, the hotter the phone would get. The temperature reading wouldn't be anywhere close to actual room temperature after a little while. The phone will be close sometimes, but not always. So the -10 or +10 differential wouldn't change at the same rate.

-Mc

  • 0

#52
nickcornaglia

nickcornaglia

    Blackjack'd

  • Members
  • PipPipPipPipPipPip
  • 4,251 posts
  • Gender:Male
  • Location:Mt Laurel, NJ USA
  • Devices:iPhone5
  • Twitter:@nickcornaglia
but I could get a real reading when not talking on the phone right? I understand it get's hotter when in use...but when sitting on a desk, it could give me the real temp. Otherwise, why would I care what my battery temperature is?

  • 0
-Nick

#53
drfonz

drfonz

    SmartPhinger Extraordinaire

  • Members
  • PipPip
  • 95 posts
  • Gender:Male
  • Location:London, UK
  • Interests:Technology, Mobile and Otherwise
  • Devices:Nexus 4 / iPhone 4
  • Twitter:@drfonz
Hi guys,

it was bound to happen! Someone finds a bug and the whole thing turns out to develop on US time, so I don't hear about it until the next day :D

I shall have a look at the code and see what could be the problem with the temperature. I will also think about encece's suggestion about offsetting the temperature, but I do agree with McHale that trying to measure room temperature with the phone's thermic sensor is a bit idealistic ^_^

Anyway, I shall report back when I've identified the problem with Fahrenheit. By the way, the issue about the whole thing disappearing, are you reporting that as a bug, or is it an XML issue? Also remember that if you use the code from the sample Homescreen, the height of the plugin is set to 80 in the latest version (to fit the thermometer), so that if you add it as the last plugin and scroll off it, this might make the whole screen shift "out of scope" and the whole thing will appear blank until you scroll back up. Did that make any sense?

Cheers!
Dr Fonz

  • 0

#54
lutzh

lutzh

    here, there, anywhere

  • Members
  • PipPipPipPipPip
  • 693 posts
  • Location:Munich/Germany
thanks for the nice plug in and the code to both of you drfonz & encence!

cheers, lutz

  • 0

#55
drfonz

drfonz

    SmartPhinger Extraordinaire

  • Members
  • PipPip
  • 95 posts
  • Gender:Male
  • Location:London, UK
  • Interests:Technology, Mobile and Otherwise
  • Devices:Nexus 4 / iPhone 4
  • Twitter:@drfonz
Right, I had a look and I think I've done the following things:

:arrow: Fixed the temperature units issue
:arrow: Fixed "off by 10" thermometer temperature issue (will require you to change your temperature-min/temperature-max attributes to be set as the correct ones now)
:arrow: Added the "offset" attribute for both and
:arrow: If you use [b]refresh="0" this disables the Auto Refresh feature

So we're now up to version 0.9.2.1 and I'll update the first post to reflect this. I'd really appreciate it if the people who found the problems could install this new version and let me know if the bugs they reported are now fixed.

All new features are reflected in the updated documentation, so check there before getting confused with what I write here ^_^

That's all for now. Enjoy!
Dr Fonz

  • 0

#56
mfioble

mfioble

    Regular

  • Members
  • PipPip
  • 50 posts
I don't think the disappearing stuff is the plug-in, as it works fine on the modified orange theme. The issue I am having though is it goes blank when selected not unselected. I am pretty sure it is an XML thing (which I am learning as well) so that is why I posted that section. The code looked right to me but I am still getting a hang of this XML stuff. If the code is the same except for bold in the selected section that should just go bold when selected correct?

  • 0

#57
Powerfull

Powerfull

    Newbie

  • Members
  • Pip
  • 37 posts
  • Location:France
  • Devices:SPV E200
Hello Everybody,
I have test the new version, but the temperature in celsius is still divided by 10 (same in older versions), you have correct the temperature for Fahrenheit but not for celsius I think. The temperature is displayed 2.4C instead of 24C.

  • 0

#58
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser
it's always us Americans that have to do things differently, eh?

^_^

What's the highest numer you can use for REFRESH rate? Is there a limit?

I'll install enece's entire home screen to see if it still happens, but what I was seeing is, the actual pics used for the graphs were disappearing when selected. I've gone through enece's code and it's obviously fine and I don't see how code in other plugins would affect that. So it may be a bug. I won't know for sure until I install enece's and the latest plugin though.

Anyone else using enece's code and pics?

Thanks for the update!

-Mc

  • 0

#59
McHale

McHale

    Addict

  • Members
  • PipPipPipPipPip
  • 518 posts
  • Location:BFE Illinois
  • Devices:MPx220, Wizard, s620, Kaiser

but I could get a real reading when not talking on the phone right? I understand it get's hotter when in use...but when sitting on a desk, it could give me the real temp. Otherwise, why would I care what my battery temperature is?


I agree on both. But if the phone is just sitting there, it should be just about room temperature (and reading accordingly), right?

I can't honestly say I ever sat and thought, "Hmmm... I wonder what the temperature on the battery is right now." But, on my Nokia's I sure have! Those things can sometimes get hon enough to make EZ Bake Omelets on!

-Mc

  • 0

#60
drfonz

drfonz

    SmartPhinger Extraordinaire

  • Members
  • PipPip
  • 95 posts
  • Gender:Male
  • Location:London, UK
  • Interests:Technology, Mobile and Otherwise
  • Devices:Nexus 4 / iPhone 4
  • Twitter:@drfonz
@Mc

The highest number you can use for the refresh rate would defeat the purpose of it, since we're talking a few millenia ^_^

So I'd recommend using "0", since the plugin is refreshed anytime you go from selected to unselected or viceversa, so the Auto Refesh is really there for people who don't touch their phone in a week and just stare at the screen to check the battery :D

I myself have it set to "0" so that there is no impact on battery life whatsoever...

@Powerfull

I'm not quite sure whether it's possible for he temperature to be right in F and not in C, since the data comes fromthe phone in C and then is converted to F with a standard conversion equation which does not multiply times 10... I'll have another look at it, and make sure I'm not talking rubbish though :P

Thanks for testing!

Dr Fonz

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users