Android App Brainstorming

Would you be interested in an Android application ?

Yes, why not...
11
13%
Yes, and I would participate to the testing phase.
50
61%
No, I don't see the point.
3
4%
I'm an Apple fan, I would prefer an iOS application.
18
22%
 
Total votes: 82

User avatar
iatros
Language Admin
Language Admin
Posts: 145
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by iatros » Wed Jan 17, 2018 2:06 pm

Hi Luc
So far, you can select one of the preset MT sites in the app menu on the top right
(see also this post: viewtopic.php?f=50&t=575#p3778).
Cheers, Martin
Image

Language Admin für Deutsch

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Wed Jan 17, 2018 2:18 pm

iatros wrote: Wed Jan 17, 2018 2:06 pm Hi Luc
So far, you can select one of the preset MT sites in the app menu on the top right
(see also this post: viewtopic.php?f=50&t=575#p3778).
Cheers, Martin
Martin is right, list of available is managed centrally (currently by me during the development/testing phase).
So if you want your website included in the app, let me know.
If you are already registered on Meteotemplate user list, I just need to know who you are (your url).
If you are not registered yet, first you should, second I would need the following info :
  • "lat": your station latitude
  • "lon": your station longitude
  • "url": your station url (including http/https prefix)
  • "alt": your station altitude in meters
  • "name": your name
  • "pageName": your site name
  • "country": your country
  • "countryCode": your country code
  • "type": your station model
  • "place": your town/place/state
Take my site as an example :
  • "lat": "41.37890000",
  • "lon": "1.94330000",
  • "alt": 250,
  • "name": "Pol-Brieuc",
  • "pageName": "Meteo els Pinars",
  • "country": "Spain",
  • "countryCode": "es",
  • "type": "WH-1080",
  • "place": "Vallirana",
Cheers,

Pol-Brieuc
Image

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Wed Jan 17, 2018 2:40 pm

thanks all for fast reply !
You my add me to the list will try to make as much time free as possible for testing
I'm a registered user so details should be there somewhere, the web url is in the signature below.
I can always send you the details in pm if needed

Luc

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Wed Jan 17, 2018 3:33 pm

ON1GL wrote: Wed Jan 17, 2018 2:40 pm thanks all for fast reply !
You my add me to the list will try to make as much time free as possible for testing
I'm a registered user so details should be there somewhere, the web url is in the signature below.
I can always send you the details in pm if needed

Luc
Your site has been added to the list.
Do not forget to download and install the plugin and report me any bug/issue you may find.
Enjoy !

Pol-Brieuc
PS : I could not find you in the Meteotemplate user list. You may want to contact Jachym and provide him with the same data you gave me in PM to be registered.
Image

User avatar
Pavel
Observer
Observer
Posts: 24
Joined: Sun Aug 20, 2017 6:24 pm
Location: Šenov, Czech Republic
Station model: TFA 35.1075 NEXUS
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by Pavel » Wed Jan 17, 2018 4:23 pm

Hello, installed app on mobile 0.4, installed plug-in, settings saved, mobile is showing OK page, but the left gray panel is only Site, About

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Wed Jan 17, 2018 4:36 pm

When refreshing the page (in desktop view) it reverts to mobile view, would be nice if it stays in desktop view.

Thanks for adding

Luc

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Wed Jan 17, 2018 5:27 pm

ON1GL wrote: Wed Jan 17, 2018 4:36 pm When refreshing the page (in desktop view) it reverts to mobile view, would be nice if it stays in desktop view.

Thanks for adding

Luc
Yep, that's definitely a bug. It should refresh the page you are viewing.
I will correct it for the next version.
I will also add the possibility in the plugin to set a specific page as default (ie either the indexMobile, indexDesktop, lite or default index)
Image

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Android App Brainstorming

Post by jay_hoehn » Wed Jan 17, 2018 6:56 pm

Pol-Brieuc,

When I use the left menu and choose Current Conditions I'm not getting the correct data. It is in celcius and seems to be off. Where is this data coming from?

Jay

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Wed Jan 17, 2018 9:15 pm

jay_hoehn wrote: Wed Jan 17, 2018 6:56 pm Pol-Brieuc,

When I use the left menu and choose Current Conditions I'm not getting the correct data. It is in celcius and seems to be off. Where is this data coming from?

Jay
Hi Jay,

The data is pulled from meteotemplateLive.txt and converted to the units defined by the user in the app settings (default unit for temp being Celsius)
It seems that there is a bug on conversion and potentially a different issue regarding the weatherTemplate cookie used to reflect the units chosen by the user directly on the site.
In addition, I would need to give the user the option to stick to the units defined by the site and not apply his own ones.
Still work to do then... I'll let you know when I have a fix.
Image

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Android App Brainstorming

Post by jay_hoehn » Wed Jan 17, 2018 10:02 pm

Pol-Brieuc,
The data is pulled from meteotemplateLive.txt and converted to the units defined by the user in the app settings (default unit for temp being Celsius)
It seems that there is a bug on conversion and potentially a different issue regarding the weatherTemplate cookie used to reflect the units chosen by the user directly on the site.
In addition, I would need to give the user the option to stick to the units defined by the site and not apply his own ones.
Still work to do then... I'll let you know when I have a fix.
Thanks for the explanation.

Jay

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Wed Jan 17, 2018 10:04 pm

defined in de plugin(V0.4) the "current conditions" and 3 other blocks, but noting is showing up in the app ?
only Site and About is highlighted, the rest is greyed out, and the 3 block don't show up.
Did I forgot something in the plugin setup ?

Luc

User avatar
iatros
Language Admin
Language Admin
Posts: 145
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by iatros » Thu Jan 18, 2018 6:49 am

Try:
in your device, go to settings -> apps -> Meteotemplate -> storage. Empty Cache (NOT DATA), then STOP (accept the warning) .
Restart Meteotemplate, and your changes from the plugin should appear.

cheers

Martin
Image

Language Admin für Deutsch

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Thu Jan 18, 2018 8:41 am

no joy Martin :-(
Can see the left info bar from most other stations, not mine

Luc

User avatar
iatros
Language Admin
Language Admin
Posts: 145
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by iatros » Thu Jan 18, 2018 9:02 am

Is your station in the drop-down list of all sites? I can't find it!
Image

Language Admin für Deutsch

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Thu Jan 18, 2018 9:05 am

iatros wrote: Thu Jan 18, 2018 9:02 am Is your station in the drop-down list of all sites? I can't find it!
look for : Weatherstation Antwerp

User avatar
iatros
Language Admin
Language Admin
Posts: 145
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by iatros » Thu Jan 18, 2018 9:19 am

hmm, strange, I don't see your blocks either.

On your plugin setup page on the PC, are your blocks visible in the preview window to the right?

As in:
plugin0.4-02.JPG
plugin0.4-02.JPG (133.85 KiB) Viewed 10282 times
Image

Language Admin für Deutsch

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Thu Jan 18, 2018 9:32 am

yes they are visible in the setup page

User avatar
iatros
Language Admin
Language Admin
Posts: 145
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by iatros » Thu Jan 18, 2018 9:41 am

I guess we'll have to wait for Pol-Brieucs advice, sorry :(
Image

Language Admin für Deutsch

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Thu Jan 18, 2018 10:22 am

ON1GL wrote: Thu Jan 18, 2018 8:41 am no joy Martin :-(
Can see the left info bar from most other stations, not mine

Luc
I will have a look but it is most probably related to the way the app connects to your site (a 301 redirection or that kind of stuff).
I'll check later today or tomorrow.
Bear with me...
Image

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Thu Jan 18, 2018 10:34 am

if it can help the ip adress of the site is 44.144.11.222:7378

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Thu Jan 18, 2018 11:24 am

ON1GL wrote: Thu Jan 18, 2018 10:34 am if it can help the ip adress of the site is 44.144.11.222:7378
It seems that your site has unsual settings.
Connecting to your url using the domain is answering with an embedded iframe :

Code: Select all

<!DOCTYPE html>
<html>
<head>
<title>weer.on1gl.be</title>
<style type="text/css">
body {
margin:0;
padding:0;
}
iframe {
display: block;
border: none;
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<iframe src="http://44.144.11.222:7378/plugins/app/settings.txt"><p>Your user agent does not support iframes. However you may visit <a href="http://44.144.11.222:7378/plugins/app/settings.txt">the page that was supposed to be here</a></p></iframe>
</body>
</html>
This cannot be used for the purpose of the app which needs a direct answer from the site.
So I tried to connect directly through the IP address 44.144.11.222:7378
Although I can access the file correctly through a browser, I get an http 405 error (Method not allowed) from the app :

Code: Select all

Intent to connect to http://44.144.11.222:7378/plugins/app/settings.txt result in code 405
So it seems that your site only accept strict GET method while the app was trying to use an hybrid GET method (GET in the header but still trying to use some of the POST functionnality).
I corrected the app and it now work correctly (with the IP, not using your domain):
Image
The fix will be included in the next version of the app (as I have also other bugs to fix before releasing it) but you can download an intermediate version (made just for you) here.
You may wanto to check if your iframe-embedded stuff is absolutely needed and if not, get rid of it.
Same for your security settings that prevent POST calls
And please confirm that the IP 44.144.11.222:7378 is a static one (it not, your site will stop working in the app the next time the IP address changes).

Cheers,

Pol-Brieuc

[EDIT] : The fact that your page is embedded in an iframe is also what caused the default index page to be pulled when refreshing the site (the same would happen on a browser) :
ON1GL wrote: Wed Jan 17, 2018 4:36 pm When refreshing the page (in desktop view) it reverts to mobile view, would be nice if it stays in desktop view.
Accessing through the IP gets rid of the issue.
Image

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Thu Jan 18, 2018 4:04 pm

hello Pol-Brieuc,

the redirect i-frame was something new, but it has gone away (I hope). Something to do with a dns entry at the web provider (one.com) where the domain on1gl.be is hosted.
weer.on1gl.be now redirect to the home server at 44.144.11.222 (fixed ip).
wget gets a 302 redirect - 200 OK and reads the settings.txt file.
Also found a problem in the ip firewall, the server did not always reply with the correct ip adress (44.144.11.222) that could confuse some systems.
Hope this solves the problems.

Luc

ON1GL
Observer
Observer
Posts: 32
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: Android App Brainstorming

Post by ON1GL » Fri Jan 19, 2018 9:58 am

installed the 0.4.1 app last night and when accessing the left panel and chosing "ssGauges" a window pops up. all ok !
But when I open then "trends", the size of the pop up remains the same as before it does not reset to the size of the new item.

Luc

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Android App Brainstorming

Post by polbrieuc » Fri Jan 19, 2018 12:22 pm

ON1GL wrote: Fri Jan 19, 2018 9:58 am installed the 0.4.1 app last night and when accessing the left panel and chosing "ssGauges" a window pops up. all ok !
But when I open then "trends", the size of the pop up remains the same as before it does not reset to the size of the new item.

Luc
Good catch. Thanks Luc. I fixed it and it will be available in the next release.
Image

User avatar
Pavel
Observer
Observer
Posts: 24
Joined: Sun Aug 20, 2017 6:24 pm
Location: Šenov, Czech Republic
Station model: TFA 35.1075 NEXUS
Software: Meteobridge
Contact:

Re: Android App Brainstorming

Post by Pavel » Fri Jan 19, 2018 4:53 pm

Hi, a problem with a mobile application Samsung S4 - no application can run version 0.4 or 0.4.1 version 0.3 worked, but the left menu was not displayed correctly, only site and about, otherwise all gray

Post Reply