Skip to content

Openmeteo doesn't work with Shinylive ? #9

@weberam2

Description

@weberam2

Sorry if I am out of my depths here.

I built a ShinyR app that populates a map with Lon/Lat values. And I had it such that if you click on one of the icons, it would call openmeteo, download the forecast, then plot it using ggplot

The app works as expect; but when I convert it to an HTML using shinylive shinylive::export(appdir = "../../ShinyRMap", destdir = "docs") the HTML version doesn't work httpuv::runStaticServer("docs")

I get two warning messages when I run shinylive:

Warning messages:
1: In find.package(pkgs, lib.loc = NULL, quiet = FALSE, !is_quiet()) :
package ‘scales’ found more than once, using the first from
“/home/weberam2/R/x86_64-pc-linux-gnu-library/4.4/scales”,
“/usr/lib/R/site-library/scales”
2: Can't find curl in webR binary repository.

I'm guessing it's the curl issue?

I'm happy to share the full code if that helps.

This is how I'm calling openmeteo:

weatherdata <- openmeteo::weather_forecast(
      c(click$lat, click$lng),
      daily = c(
        "temperature_2m_max",
        "precipitation_sum",
        "windspeed_10m_max"
      )
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions