cloudy

Author Topic: Android widget to display clientraw.txt  (Read 1499 times)

0 Members and 1 Guest are viewing this topic.

Offline ludg

  • Posts: 8
  • Québec, Canada
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 7.0.1
    • www.ludg.ca
Android widget to display clientraw.txt
« on: February 02, 2012, 10:17:25 PM »
I have created a widget that display the content of the file clientraw.txt.

http://market.android.com/details?id=ca.ludg.android.weatherwidget


Click the temperature to configure, click anywhere else to update the data.

Configurable:
-Temperature units (Celsius or Fahrenheit)
-Wind speed units (kts, m/s, km/h, mph)
-Barometer (hPa, in/hg)
-Rain (mm, in)
-Background color and transparency

The URL must me a full internet address like http://www.server.com/clientraw.txt

You can activate a periodic update. It will download only when the screen is ON.
You can configure alternate URL and period to use when the phone is connected to a WIFI network.

The small graphic behind the temperature is the temperature in the last hour. The limits of the graphic are the hi/lo temperature of the day.


Version 1.1 - 2012/2/3:
added configurations: speed(kts, m/s, km/h, mph), barometer(hPa, inHg), rain(mm, in)
added configurations: background color and transparency
added daily rain

Version 1.2 - 2012/2/8:
fixed wind speed conversion
changed the background color configuration


enjoy, while it's free  :D
« Last Edit: February 09, 2012, 10:32:48 PM by ludg »

Offline JaxWeather

  • Bob
  • Global Moderator
  • Posts: 11,376
  • VP 2 w/FARS - WML Station: WD00007
  • Jacksonville, Fl. USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • JaxWeather.net
Re: Android widget to display clientraw.txt
« Reply #1 on: February 02, 2012, 11:25:39 PM »
Looks ok, I wanted to try it as I am currently using this one:

https://market.android.com/details?id=com.gpap.myweath

Yours has more options when setting up but missing some important ones IMHO...

Should add the ability to choose Barometer values and possibly colors for background...  Also rain is always a biggie...

Just my two cents ;)

-Bob

Offline Weather Display

  • Posts: 65,579
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
Re: Android widget to display clientraw.txt
« Reply #2 on: February 03, 2012, 05:09:59 AM »
looks good, like the idea of the graph
and yes see if you can squeeze in rain :)

Offline ludg

  • Posts: 8
  • Québec, Canada
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 7.0.1
    • www.ludg.ca
Re: Android widget to display clientraw.txt
« Reply #3 on: February 04, 2012, 12:54:46 AM »
I have added a configuration for the barometer units (hPa / inHg) and will add the rain.

I am testing a color picker for the background; it works well.
I will also add a transparency value (I like to see the background image on my phone).
Now, I am trying to control the background color of the widget...not an easy task it seems  :?
I am new to the Android development and learning as I go with this project...

Luc.

Offline ludg

  • Posts: 8
  • Québec, Canada
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 7.0.1
    • www.ludg.ca
Re: Android widget to display clientraw.txt
« Reply #4 on: February 05, 2012, 04:15:35 PM »
Version 1.1 now available

Configurable:
 -Temperature units (Celsius or Fahrenheit)
 -Wind speed units (kts, m/s, km/h, mph)
 -Barometer (hPa, in/hg)
 -Rain (mm, in)
 -Background color and transparency
Added daily rain.

Luc.

Offline JaxWeather

  • Bob
  • Global Moderator
  • Posts: 11,376
  • VP 2 w/FARS - WML Station: WD00007
  • Jacksonville, Fl. USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • JaxWeather.net
Re: Android widget to display clientraw.txt
« Reply #5 on: February 05, 2012, 05:22:18 PM »
Updated and appreciate the additions.

One note I have my widget set at 2X3 and all the data is in upper left corner leaving a bunch of free space...

If I reduce to 1 X 3 then temp is to the left of background box and if I change to 2 X 2 then the Temp is 1/2 above box...

It looks like, to me that all the data would fit nicely into 2 X 2 if setup properly :)

-Bob

Offline praadlun

  • Posts: 3
  • OS/Browser:
  • Win XP
  • Chrome 16.0.912.77
Re: Android widget to display clientraw.txt
« Reply #6 on: February 06, 2012, 10:22:01 AM »
Hello,

Thanks for a great app!!
The wind seems to be calculated wrong, i have chosen m/s, but the values are almost twice as much as i should, any idea?
Also, i would love having a 4x1 widget with "Current Condition" icon added....:)

Offline ludg

  • Posts: 8
  • Québec, Canada
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 8.0
    • www.ludg.ca
Re: Android widget to display clientraw.txt
« Reply #7 on: February 06, 2012, 01:53:42 PM »
The wind seems to be calculated wrong, i have chosen m/s, but the values are almost twice as much as i should, any idea?
I was assuming that the speed unit used in the file was in m/s  #-o
I checked and it is in kts. I will rewrite my conversion fonction.

I also do not like the color picker and will work on a new one this week...expect an update soon...

I have my widget set at 2X3 and all the data is in upper left corner leaving a bunch of free space...
How do you change the size of my widget ?

Offline JaxWeather

  • Bob
  • Global Moderator
  • Posts: 11,376
  • VP 2 w/FARS - WML Station: WD00007
  • Jacksonville, Fl. USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • JaxWeather.net
Re: Android widget to display clientraw.txt
« Reply #8 on: February 06, 2012, 05:08:32 PM »

How do you change the size of my widget ?

When you add it to a screen you can choose different columns and rows  also you can press and hold on widget and select edit and then stretch...

-Bob

Offline KeithW

  • Posts: 673
  • Angels Camp, California, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Angels Camp, CA, USA Weather
Re: Android widget to display clientraw.txt
« Reply #9 on: February 06, 2012, 08:31:00 PM »
I have this running on my ASUS Transformer. It looks great!  :thumbleft: Thanks for adding rain and the
ability to set the baro values.   =D>

-Keith
« Last Edit: February 06, 2012, 08:33:40 PM by KeithW »
-Keith


Offline praadlun

  • Posts: 3
  • OS/Browser:
  • Win XP
  • Chrome 16.0.912.77
Re: Android widget to display clientraw.txt
« Reply #10 on: February 08, 2012, 02:15:38 PM »
Hello,

Thanks for a great app!!
The wind seems to be calculated wrong, i have chosen m/s, but the values are almost twice as much as i should, any idea?
Also, i would love having a 4x1 widget with "Current Condition" icon added....:)

The  Forecast Icon is field 15 in clientraw.txt.... :D

Offline Elderberry

  • Mike
  • Posts: 166
  • USA - Louisiana
  • OS/Browser:
  • (Linux Mint)
  • Firefox 10.0
    • SoHiWeather
Re: Android widget to display clientraw.txt
« Reply #11 on: February 08, 2012, 11:22:00 PM »
Nicely done! Have it running on my phone.


Offline praadlun

  • Posts: 3
  • OS/Browser:
  • Win XP
  • Chrome 16.0.912.77
Re: Android widget to display clientraw.txt
« Reply #12 on: February 09, 2012, 06:57:19 AM »
When i get ex "-11,0" degrees, the "feels like" and "humidity" is pushed outside of the widget, there is not enauge space for the units.
Is it possible to make it 4x1 instead of 3x1, so it fits?

-Peter

Offline KeithW

  • Posts: 673
  • Angels Camp, California, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Angels Camp, CA, USA Weather
Re: Android widget to display clientraw.txt
« Reply #13 on: February 09, 2012, 06:56:55 PM »
When you add it to a screen you can choose different columns and rows  also you can press and hold on widget and select edit and then stretch...

-Bob
Bob,

What version of Android are you running? I am running 3.2.1 Honeycomb and I cannot find any way
to edit the widget once it is on the screen. Pressing and holding only pops up the "Uninstall" icon, it
does not offer and "Edit" function.

Thanks.

-Keith
-Keith


Offline JaxWeather

  • Bob
  • Global Moderator
  • Posts: 11,376
  • VP 2 w/FARS - WML Station: WD00007
  • Jacksonville, Fl. USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • JaxWeather.net
Re: Android widget to display clientraw.txt
« Reply #14 on: February 09, 2012, 07:10:46 PM »
2.2.2 on a Dell Streak..

-Bob

 

cumulus