PebbleKit JavaScript send image to Pebble

Is it possible to send images to Pebble watches using PebbleKit Javascript sendAppMessage.

My idea is to download an image from the Internet and send it to your watch and display it there. If the image is not directly possible, I thought about drawing the image on the canvas and try to get the raster data from the canvas to send it to the clock.

Is this possible now, or am I thinking of things that have not yet been completed. If possible, how? If not done, how can you do it?

Look for brainstorming and share possible code ideas.

I should also mention that I do not want to use the iOS or Android application, only PebbleKit JS.

+4
source share
2 answers

There is a complete example of an application that uses JavaScript to upload images to the pebble-hacks Github repository. In this github project, various unofficial pebbles written by the team are hosted.

The one you are looking for is pebble-faces . The image loading part is built in a separate source file that will be easily reused in your own project.

+3
source

I also added PHP port for Python script here https://github.com/logbon72/pebblebitmap

This can come in handy if you are running PHP applications that need to do the conversion on the fly.

0
source

Source: https://habr.com/ru/post/1529134/


All Articles