Page 1 of 1
Pocket PWS - Android
Posted: Sun 05 Apr 2020 8:15 pm
by Doncaster
After a bit of a break due to moving house, the weather station is back in action.
I've tried to get it working with Pocket PWS on Android but it's unable to read the cumulus.xml file that's created (pasted below) - I've a funny feeling it's due to the 'Cᅵ' at the end.
Any thoughts?
-------------------
cumulus.xml
Old Hexthorpe 2020.04.05. 20:35:09 06:27 19:48 15:58 06:00 16.7 21.2 4.3 16.7 21.2 40 93 29 WSW 0.0 2.4 16.7 4.3 3.0 5.8 2.1 1004.0 -0.2 1014.9 1003.8 0.0 0.0 0.0 0.0 m/s mm mm mb Cᅵ %
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 5:44 am
by rich27gc
I'm sorry but I don't know about pocket PWS but there is a great Android app available called PWS Watcher.
It has been updated regularly and uses the realtime.txt file.
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 7:17 am
by beteljuice
Well it looks like some corruption toward the end of the file - is it been handled as UTF ?
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 7:28 am
by laulau
Hi here's my xml source file :
Code: Select all
<?xml version="1.0" encoding="ISO-8859-15" ?>
<maintag>
<!--MISC-->
<misc><misc data="station_location"><#location></misc></misc>
<!--STATION DATA-->
<realtime><data realtime="station_date"><#year>.<#month>.<#day>.</data></realtime>
<realtime><data realtime="station_time"><#timehhmmss></data></realtime>
<realtime><data realtime="sunrise"><#sunrise></data></realtime>
<realtime><data realtime="sunset"><#sunset></data></realtime>
<realtime><data realtime="moonrise"><#moonrise></data></realtime>
<realtime><data realtime="moonset"><#moonset></data></realtime>
<!--TEMPERATURE-->
<realtime><data realtime="temp"><#temp></data></realtime>
<realtime><data realtime="high_temp"><#tempTH></data></realtime>
<realtime><data realtime="low_temp"><#tempTL></data></realtime>
<realtime><data realtime="heatindex"><#heatindex></data></realtime>
<realtime><data realtime="high_heatindex"><#heatindexTH></data></realtime>
<!--HUMIDITY-->
<realtime><data realtime="hum"><#hum></data></realtime>
<realtime><data realtime="high_hum"><#humTH></data></realtime>
<realtime><data realtime="low_hum"><#humTL></data></realtime>
<!--WIND-->
<realtime><data realtime="winddir" misc="imgwinddir"><#wdir></data></realtime>
<realtime><data realtime="windspeed"><#wspeed></data></realtime>
<realtime><data realtime="high_windspeed"><#windTM></data></realtime>
<realtime><data realtime="windchill"><#wchill></data></realtime>
<realtime><data realtime="low_windchill"><#wchillTL></data></realtime>
<!--DEWPOINT-->
<realtime><data realtime="dew"><#dew></data></realtime>
<realtime><data realtime="high_dew"><#dewpointTH></data></realtime>
<realtime><data realtime="low_dew"><#dewpointTL></data></realtime>
<!--BAROMETER-->
<realtime><data realtime="barometer"><#press></data></realtime>
<realtime><data realtime="changebarometer"><#presstrendval></data></realtime>
<realtime><data realtime="high_barometer"><#pressTH></data></realtime>
<realtime><data realtime="low_barometer"><#pressTL></data></realtime>
<!--RAIN-->
<realtime><data realtime="todaysrain"><#rfall></data></realtime>
<realtime><data realtime="rain_rate"><#rrate></data></realtime>
<realtime><data realtime="high_rain_rate"><#rrateTM></data></realtime>
<realtime><data realtime="storm_rate"><#hourlyrainTH></data></realtime>
<!--UNITS-->
<realtime><data units="windunit"><#windunit></data></realtime>
<realtime><data units="rainunit"><#rainunit></data></realtime>
<realtime><data units="rateunit"><#rainunit></data></realtime>
<realtime><data units="barunit"><#pressunit></data></realtime>
<realtime><data units="tempunit"><#tempunitnodeg>°</data></realtime>
<realtime><data units="humunit">%</data></realtime>
</maintag>
I think it's the '°" degre symbol that cause the problem !
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 7:40 am
by HansR
No it correctly says 'C' and the tag is tempunitnodeg (no degree symbol) so I assume it is the percent symbol for the humidity.
Must be the encoding?
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 1:25 pm
by mcrossley
Agree encoding issue. The file has a degree symbol in it and it has probably been saved as ANSI or similar.
You need to go back to the original file, and if you need to edit it use a decent editor like Notepad++ or similar.
OR
Where you are using the file is interpreting the file as ANSI when it is actually UTF-8.
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 3:06 pm
by HansR

I missed that degree symbol completely.
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 5:59 pm
by Doncaster
beteljuice wrote: ↑Mon 06 Apr 2020 7:17 am
Well it looks like some corruption toward the end of the file - is it been handled as UTF ?
The UTF box on the Extra Web Files page isn't ticked.
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 6:18 pm
by Doncaster
mcrossley wrote: ↑Mon 06 Apr 2020 1:25 pm
Agree encoding issue. The file has a degree symbol in it and it has probably been saved as ANSI or similar.
You need to go back to the original file, and if you need to edit it use a decent editor like Notepad++ or similar.
OR
Where you are using the file is interpreting the file as ANSI when it is actually UTF-8.
I've taken the degree symbol out of the original file and the resulting xml is as below. It's still not working though!
------------------
Old Hexthorpe 2020.04.06. 19:13:15 06:25 19:50 17:28 06:22 13.6 16.1 11.6 13.6 16.1 53 91 40 SW 0.0 6.5 13.6 11.6 4.2 11.9 2.3 1018.4 1.2 1018.4 1002.1 0.0 0.0 0.0 0.0 m/s mm mm mb C %
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 8:44 pm
by Doncaster
rich27gc wrote: ↑Mon 06 Apr 2020 5:44 am
I'm sorry but I don't know about pocket PWS but there is a great Android app available called PWS Watcher.
It has been updated regularly and uses the realtime.txt file.
Tried the other suggestions folk and made and this was last in the list and this didn't work either - all the fields were filled with bits of message that when I tried to put them together gave some sort of error message.
As well as a resited weather station, I have a new web host and for some reason, neither app seems to like the forward from my own domain so when I use
http://sxxxxxxxxx.websitehome.co.uk/cumulus.xml instead, both worked!
Thanks for the other ideas though

Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 8:49 pm
by GiorgioZem
Doncaster wrote: ↑Mon 06 Apr 2020 6:18 pm
mcrossley wrote: ↑Mon 06 Apr 2020 1:25 pm
Agree encoding issue. The file has a degree symbol in it and it has probably been saved as ANSI or similar.
You need to go back to the original file, and if you need to edit it use a decent editor like Notepad++ or similar.
OR
Where you are using the file is interpreting the file as ANSI when it is actually UTF-8.
I've taken the degree symbol out of the original file and the resulting xml is as below. It's still not working though!
------------------
Old Hexthorpe 2020.04.06. 19:13:15 06:25 19:50 17:28 06:22 13.6 16.1 11.6 13.6 16.1 53 91 40 SW 0.0 6.5 13.6 11.6 4.2 11.9 2.3 1018.4 1.2 1018.4 1002.1 0.0 0.0 0.0 0.0 m/s mm mm mb C %
Hello Doncaster!
I'm Giorgio, the developer of PWS Watcher, and I'd like to help you solve your problem...
The first thing I'd like to point out is that in your answer what you're posting looks more like a txt than an XML, can I ask you to send me the URL of the file you're pointing to? (if you prefer not doing it here you could send it to me via email at
giorgiobertol@gmail.com).
The second thing to point out is that PWS Watcher only parses default formatted files, like the one in the example given in the wiki page (
https://cumuluswiki.org/a/Realtime.txt).
Hope it helps to solve your issues, let me know!

Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 9:00 pm
by Phil23
Don't recall whether I ever played with this one or not, but did scour many Android offerings.
What I did end up with was just called "Weather Station" by Ales Veluscek.
Not sure if it's still in the Play Store, but there's APK's about.
Primary requirement I had was wanting a Widget on my front screen.
Just tried Pocket PWS now & don't get inspired.
Screenshot_20200407-065705_One UI Home.jpg
Re: Pocket PWS - Android
Posted: Mon 06 Apr 2020 9:03 pm
by Phil23
Apologies for the huge image above, should have resized it.
I do notice the bottom widget lags the top one.
It can be configured to refresh on tap is not updated rather than opening the app.