Android weather app for weeWx users

1,336 views
Skip to first unread message

John Smith

unread,
Apr 10, 2018, 5:01:46 AM4/10/18
to weewx-user
Just to give some background I made an android app similar to Pocket PWS. I liked the app, but it was closed source so I couldn't do anything to add new features.

With Tom's blessing I named the app weeWx Weather App and I have published it to google play https://play.google.com/store/apps/details?id=com.odiousapps.weewxweather

To use the app there needs to be some small changes made to weeWx, to automate some of the steps needed I created a pair of weeWx extensions, one for metric and one for imperial units.


All comments and requests about the app should go to github https://github.com/evilbunny2008/weeWxWeatherApp/issues

Doug Bo

unread,
Apr 10, 2018, 9:32:57 AM4/10/18
to weewx-user
Look forward to trying it out.

Thank you for your time and efforts! 

Doug B.

Bill M

unread,
Apr 10, 2018, 5:18:02 PM4/10/18
to weewx-user
I have been fighting with this most of the day, I've followed the instructions and added the bits to weewx, it is generating the data.txt file just fine but when I enter the URL into the app itself it doesn't seem to be able to connect???

When I copy what I entered into my browser the data appears just fine!

URL entered into the app is: http://www.sanfordweather.com/weewx/settings.txt
and the data file is  http://www.sanfordweather.com/weewx/data.txt

Confused!
Bill

John Smith

unread,
Apr 10, 2018, 6:01:05 PM4/10/18
to weewx-user


On Wednesday, 11 April 2018 07:18:02 UTC+10, Bill M wrote:
I have been fighting with this most of the day, I've followed the instructions and added the bits to weewx, it is generating the data.txt file just fine but when I enter the URL into the app itself it doesn't seem to be able to connect???

When I copy what I entered into my browser the data appears just fine!

URL entered into the app is: http://www.sanfordweather.com/weewx/settings.txt
and the data file is  http://www.sanfordweather.com/weewx/data.txt

It took me a while to figure it out, but there seems to be some characters before data=

0xFE 0xFF 

John Smith

unread,
Apr 10, 2018, 7:00:27 PM4/10/18
to weewx-user
On Wednesday, 11 April 2018 08:01:05 UTC+10, John Smith wrote:
It took me a while to figure it out, but there seems to be some characters before data=

0xFE 0xFF 

After waking up properly, it seems they are utf-8 chars and for what ever reason the method I used to download and parse them isn't working, I'll try to work out a proper fix, but for the time being I just pushed out an update that strips non-ascii chars which then works with your settings file. 

Bill M

unread,
Apr 10, 2018, 8:36:58 PM4/10/18
to weewx-user
Thanks, I'll update and report back if any further problems!

Bill M

unread,
Apr 10, 2018, 9:23:02 PM4/10/18
to weewx-user
For some reason I can't update the app, Android quits and tells me Error 495!
I'll try to un-install and then reinstall and see if that works

Bill M

unread,
Apr 10, 2018, 9:27:31 PM4/10/18
to weewx-user
Nope won't install now?

John Smith

unread,
Apr 10, 2018, 10:09:28 PM4/10/18
to weewx-user
On Wednesday, 11 April 2018 11:27:31 UTC+10, Bill M wrote:
Nope won't install now?

I had the install hang too, I ended up rebooting and it reported that it was installed correctly, no idea what's wrong there.

As for you settings.txt you have a ] at the end of the webcam url

webcam=http://www.sanfordweather.com/camera/camera3.jpg]
 

Bill M

unread,
Apr 11, 2018, 8:12:33 AM4/11/18
to weewx-user
Tried again this morning and it installed just fine, everything seems to be working now that I've fixed my typos!
Thanks for the hard work
Bill

John Burricelli

unread,
Apr 17, 2018, 8:20:12 AM4/17/18
to weewx-user
This is working great for me.  Thank you for creating this.

John Smith

unread,
Apr 17, 2018, 6:04:52 PM4/17/18
to weewx-user


On Tuesday, 17 April 2018 22:20:12 UTC+10, John Burricelli wrote:
This is working great for me.  Thank you for creating this.


Thanks for posting your settings URL, I ended up spotting a minor bug and tweaked the max/min times to be 24 hour time so that the lines on the stats page don't wrap 

Greg from Oz

unread,
Apr 27, 2018, 5:41:34 AM4/27/18
to weewx-user
Looks good.
I entered in my URL and set the updates to manual and it told me my URL was wrong.
I changed the updates to every 5 minutes and then it worked!
I have put it back to manual but how do you manually refresh?

Thanks

John Smith

unread,
Apr 27, 2018, 7:43:49 AM4/27/18
to weewx-user


On Friday, 27 April 2018 19:41:34 UTC+10, Greg from Oz wrote:
Looks good.
I entered in my URL and set the updates to manual and it told me my URL was wrong.
I changed the updates to every 5 minutes and then it worked!

I'm not able to reproduce this, do you know specifically which URL it reported as bad?
 
I have put it back to manual but how do you manually refresh?

You long press on what you want to update, I'll add this to the wiki

John Smith

unread,
Apr 27, 2018, 7:58:42 PM4/27/18
to weewx-user
On Friday, 27 April 2018 21:43:49 UTC+10, John Smith wrote:
I have put it back to manual but how do you manually refresh?

You long press on what you want to update, I'll add this to the wiki

I just added a manual refresh button on the settings page, although long pressing the screen will be quickest as it only does small updates instead of refreshing everything

John Smith

unread,
May 7, 2018, 7:36:17 PM5/7/18
to weewx-user
Just to give everyone an update, I've been adding getting some really great feedback about the app and requests to implement new features.

However one of the changes requires adding an additional field of $day.windGust.max.formatted to be added to the data.txt.tmpl file. I've uploaded templates with the changes so anyone using the app just needs to download install it.


OR


Changelog

0.3.4 - Shifted about to the main settings drawer and added a zoom option to the stats page
0.3.2 - This release adds more caching so it doesn't try updating when manual updating is selected.
0.3.1 - Fixed bugs when authentication isn't used.
0.3.0 - Added a drawer layout for settings, added the ability to specify a username/password in the URL for settings.txt and data.txt
0.2.25 - Added an option to show forecast on first page
0.2.22 - Added code to wipe settings, fixed up forecast code to be a little better
0.2.21 - Added code for weatherzone forecasts
0.2.20 - Fixed crash when update in the background was unticked.
0.2.19 - Removed the refresh button and added SwipeRefreshLayout to most screens so manual updates work similar to other apps 
0.2.18 -- Added manual refresh button to the settings page for those that only want to update manually.
0.2.17 -- Bug fixes to prevent app from crashing if the data.txt file has unexpected characters.

Greg from Oz

unread,
May 7, 2018, 7:58:50 PM5/7/18
to weewx-user
I am using it and it is great! Very useful.
I like the forecast option on the first screen.

weerman

unread,
Nov 5, 2018, 5:49:26 PM11/5/18
to weewx-user
Hi all,

I discovered the WeeWx App just recently and thought i give it a try. Followed the instructions and the inigo-data file gets created and uploaded every five minutes to my weewx folder. 
However when i enter the url in the app to my inigo-settings.txt it doesn't connect at all and i get the "invalid url" message. I made sure that everything is correct regarding the url to inigo-data file, tried to correct the paths and even changed file permissions but it still won't connect.
Using the latest version 0.512 here. 

Regards

George



weerman

unread,
Nov 5, 2018, 5:57:13 PM11/5/18
to weewx-user

John Smith

unread,
Nov 5, 2018, 8:13:36 PM11/5/18
to weewx-user
On Tuesday, 6 November 2018 09:57:13 UTC+11, weerman wrote:
Using the latest version 0.512 here. 

I'm using the same version and used the url:


and there was no problem

weerman

unread,
Nov 6, 2018, 6:17:21 AM11/6/18
to weewx-user
Hi John,

Yes, it works now. After i wrote my last post, i tried another approach in removing the leading /www folder for the url of the data file and this works. 
My provider has a leading /www folder which is a non public folder, before the public folders so i had to remove the "www" to get it working.  

John Smith

unread,
Nov 7, 2018, 8:07:50 PM11/7/18
to weewx-user
I've just published a new version of the app (0.5.13) which now exposes the underlying exception strings.

The previous way was to show general descriptions and these weren't, in hindsight, as useful in solving problems with config settings.

weerman

unread,
Feb 7, 2019, 3:03:23 AM2/7/19
to weewx-user
Hi, just noticed since upgrading weewx to version 3.9.1 my weather data and statistics are shown in imperial numbers, even though i have set weewx to metric.

weewx itself is not affected by this.

Regards

Georg

John Smith

unread,
Feb 7, 2019, 3:18:11 AM2/7/19
to weewx-user


On Thursday, 7 February 2019 19:03:23 UTC+11, weerman wrote:
Hi, just noticed since upgrading weewx to version 3.9.1 my weather data and statistics are shown in imperial numbers, even though i have set weewx to metric.  

weewx itself is not affected by this.


I haven't upgraded yet. Did you try reinstalling the skin?

Thomas Keffer

unread,
Feb 7, 2019, 7:22:37 AM2/7/19
to weewx-user
See the Upgrading Guide section Do you need to change anything?

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

weerman

unread,
Feb 7, 2019, 3:18:26 PM2/7/19
to weewx-user
Thanks Tom, yes i had to change the group units to metric as well, that did it. 

Regards

Georg

 
Reply all
Reply to author
Forward
0 new messages