I have followed the tutorial for the pebble watch face but changed somethings but get the error in the logs:
Ignoring invalid key: KEY_TEMPERATURE Ignoring invalid key: KEY_CONDITIONS
which leads to no weather being displayed I thought that it maybe the js code but I have used it on the tutorial main.c and it works fine.
You aren't specifying any
appKeys
inappinfo.json
.Pebble messages are keyed with an integer, not a string. But there are facilities in place so you can use meaningful strings when coding:
Note that the keys defined here should match keys in your C code, likely through
#define
statements in your C source or a header file.Make sure to update your code so that you specify these values in C (which you appear to have done via
#define
) and also in JavaScript by means of theappinfo.json
file: