Giter VIP home page Giter VIP logo

weatherapp-scala's Introduction

WeatherApp

A simple weather app written in Scala.

This project is my experiments with the Scala 3 programming language. Developed within the subject of Scala Programming Language at the AGH University of Science and Technology.

Stack

  1. Scala 3.2.2
  2. Gradle Kotlin DSL
  3. JavaFX

The project also uses:

  1. lihaoyi:requests - for HTTP requests
  2. lihaoyi:upickle - for serialization/deserialization & JSON

Hints

  • Forecast chart is scrollable
  • Additional information (humidity, apparent temp, etc.) will be shown on mouse hover

IDE support

As of June 2023, Scala 3 support in IntelliJ is very poor (Scala plugin version 2023.1.18). There are many false positive error detection cases, which makes the whole experience quite bad (read: IntelliJ with Scala plugin is unusable).

A much better Scala 3 support is in VSCode + Metals (version 1.23.0), hovewer, it is less intelligent.

Thanks

  • Scala community
  • JavaFx community
  • Lee Haoyi for easy to use Scala libraries
  • JetBrains for icons
  • Hotpot for AI generated icon
  • Img.Upscaler for AI upscaled icon
  • OpenMeteo for free & easy to use weather API
  • OpenStreetMap for free reverse geocoding API
  • VSCode developers
  • Metals developers
  • And everyone else thanks to whom this project was created

Screenshots

Screenshot

Known issues

java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "<local9>" is null

According to chunky-dev.github.io, this problem is often caused by the render canvas size being increased beyond the maximum texture size supported by JavaFX, the GPU, or the GPU driver. A potential solution to the problem is to add -Dprism.order=sw to the Java options.

Severity: low (rare issue, cannot be reproduced by me on both Linux & Windows)

Possible solution: split WeatherChart's canvas into several
Available workaround: add -Dprism.order=sw to the Java options

weatherapp-scala's People

Contributors

congard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.