Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.
/ WeeWX-mobile-app Public archive

WeeWX Weather App is a mobile application for WeeWX built with Flutter

License

Notifications You must be signed in to change notification settings

NikoFresh/WeeWX-mobile-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeeWX weather app

WeeWX Weather App is a mobile application for WeeWX built with Flutter

Installation

WeeWX installation

Copy the file weewx/app.json.tmpl to your WeeWX server in the skin you're currently using, then edit the skin.conf file:

[CheetahGenerator]
   ...
   [[ToDate]]
   ...
      [[[mobileapp]]]
            template = app.json.tmpl

Be sure to set UTF-8 as encoding:

[CheetahGenerator]
   # Possible encodings are 'html_entities', 'utf8', or 'strict_ascii'
    encoding = utf8

App installation

Note: these instruction are for Android. To buld the app for iOS, follow this.

Install Flutter in your computer if you don't have it already: Install - Flutter;

Clone the repository.
Run 'flutter packages get'
Add your links in the app:

In the /lib/config.dart:

final weatherDataUrl = ''; // Required
final radarUrl = ''; // Optional
final webcamUrl = ''; // Optional
Optional: Modify the name of the app:

In pubspec.yaml edit the app name and the icon:

name: weewx_mobile_app

flutter_icons:
  image_path: 'assets/icon.png'

In /android/app/src/main/AndroidManifest.xml update the package name and the app name:

<application
        ...
        android:label="MeteoCentroCadore"
        ...>

In /android/app/build.gradle edit the application id:

defaultConfig {
        applicationId "com.nikofresh.weewx"
        ...
    }
Run the build:
flutter build apk

You'll have the apk file in weewx-mobile-app/build/app/outputs/apk/release/app-relase.apk

Internationalization

The app is currently translated in English and Italian

Changelog

  • 1.2:
Added 'Summary' page with week, month, year info
Added a bottomnavbar
Fixed some padding
  • 1.1.2:
Added 'yesterday' card
  • 1.1.1:
Added english translation
Added the adaptive icon for Android
Webcam and radar are now optional
Added README.md and license

TODO

  • Add support for multiple images/radars;
  • Add week/month/year data;
  • Add a notification with current weather;

License

MIT

About

WeeWX Weather App is a mobile application for WeeWX built with Flutter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published