Open cr0ybot opened 1 month ago
@cr0ybot I did add support for the v3 API in a different watchface if you want to take a look as a reference - see https://github.com/clach04/pebble-forecaswatch2-fcsw2-fcw2/blob/clach04_main/src/pkjs/weather/openweathermap.js
diff https://github.com/clach04/pebble-forecaswatch2-fcsw2-fcw2/commit/a7ae4a2b562d15ff344182c425740065290dff12 which matches your expectations :-)
https://pirateweather.net/en/latest/ supposedly has a compatible API (i.e. change URL and acquire token) - which looks like another viable option.
You might also be interested in the GitHub action that builds PBWs on GitHub servers https://github.com/clach04/pebble-forecaswatch2-fcsw2-fcw2/blob/clach04_main/.github/workflows/main.yml based on https://github.com/daktak - the original creator of Pebble GitHub Actions
@clach04 Thanks for confirming. I tried out your watchface but looks like this commit hasn't made it into a release yet. I continue to be forcast-less!
I'd be happy to help, but unfortunately I no longer have access to a system that can build binaries using the Pebble SDK, and I no longer use a Pebble so I couldn't test it either. If you can get it to build and produce a new version, I'd be happy to accept a PR and upload a new version of the watch face.
@clach04 Thanks for confirming. I tried out your watchface but looks like this commit hasn't made it into a release yet. I continue to be forcast-less!
I've been crazy busy and the original author is busy too 😿 . If you want to play with the new build download and side load (forecaswatch2) from the github actions page https://github.com/clach04/pebble-forecaswatch2-fcsw2-fcw2/actions/runs/9311852341
Again, GH Actions are worth setting up if you are OK with running on real hardware for testing rather than an emulator. It's perfect for this sort of small change (but useless for new development projects). I once was able to build a new watch face for https://github.com/clach04/pebble_watchface_opensauce using just my phone 🤣 but it's not a great idea.
So GH actions will need more work as the expected pebble project json file package.json
is not named as expected https://github.com/clach04/pebble-graphite/actions/runs/11510213424/job/32041623212#step:16:6 - so this needs a little more work to work on this project
sdk/bin/pebble build
Couldn't open project info.
Error: Process completed with exit code 1.
100% untested https://github.com/clach04/pebble-graphite/tree/patch-1
@cr0ybot I figured out the build process for graphite, it's a little more complicated than most pebble watch faces. I have a (slightly hacky) GitHub action that builds. You can download a zip of the PBW built using https://github.com/clach04/pebble-graphite/tree/gh_actions_build from https://github.com/clach04/pebble-graphite/actions/runs/11993439723 (at the bottom of the page).
The biggest issue is that some of the npm dependencies are no longer installable and fail, so I ended up disabling them but I'm unclear on the impact.
The problem is that for some reason I can NOT get logs out of my phone/watch 😠So I can't debug this (and the emulator is not working with the current config website, phone/watch seems fine). If you can get a developer connection and get logs out and attach here that would help move things forward.
I'm currently using FCW2 with openweather at the moment.
First, this watchface is the reason I'm still wearing my Pebble Time in 2024. Thank you!
I noticed that in the last week or so, the weather info, including temp and hourly rain forecast, stopped showing up. Turns out that the API v2.5 was shut down in June (so I'm not sure why it seemed to still be working into October).
Luckily, it looks like the v3.0 response object is extremely backwards-compatible, and it's possible you might just need to change the URL: https://openweathermap.org/one-call-transfer
If you're too busy I might take a crack at a PR.