Quantcast
Channel: Pebble Watchapp Directory - Pebble Forums
Viewing all articles
Browse latest Browse all 5890

[Linux/Windows] The Pebble Simulator! Now with support for Windows!

$
0
0

Pebble Local Simulator

image


[Updates]

[2013-10-16 Second big update]

+ Added support for metadata (currently only used by windows)
+ Added ScrollLayer
+ Added graphics_text_layout_get_max_used_size/text_layer_get_max_used_size
+ @robhh added AppTimer - Huge thanks to him!

[2013-10-11 First big implementation update]

Hello again! This is the first big implementation update. Two days ago, I added Logging and now RotBitmapLayer, RotBmpPairLayer. Every sample watch can be tested with this simulator now which is a huge step towards the full compatibility with the pebble watch. 

[2013-10-9 Windows support]

Hi there, I have added support for Windows computer! You can now build and run your pebble apps on your windows computer without any emulation or internet connection. You can even control it like the original SDK and you don't have to change a single line of code between your operating systems. Unfortunately you can not write your apps for your pebble, but you can code and test them in your natural workspace. Furthermore @fugounashi found some bugs which are fixed now. Have fun!

[Overview]

This is an extension to the PebbleSDK1.2 which allows you to build and run your pebble apps on your computer. Currently it's for Linux and Windows and @robhh even compiled it for Mac.

The installation and the use of this simulator is very simple. Building and running your application needs two commands (one for building and one for running :) )

[Non-implemented features]

I tried to put as much from the original SDK into the first release, but there are some things that are not implemented yet:

 Dictionary  
 AppMessage
 AppSync  
MenuLayer
SimpleMenuLayer
NumberWindow
Except from these, all features should be implemented

[Compatibility]

The most important feature for this simulator is compatibility. You should be able to leave your source code like it is for your watch, but there are a few problems:

- Non-implemented features. Very simple. I try to implement all features left as soon as possible. At the moment this simulator is my only possibility to actual code for pebble, so it is in my own interest to work as quick and as best as I can.
- Bugs. This simulator has lots of code, lots of unverified or not enough verified code and there are probably lots of little bugs crawling inside of it. This is an important reason why I release it now. I can not find all bugs but with your help the search will be much easier.
- Documentation. Even though there is much more than I expected, I can not make sure that all functions behave like their original ones. If you find any differences, please tell them to me.
- Fonts. The fonts that are most common on the pebble are Bitham (renamed from Gotham) and Gothic. I presume that they are commercial fonts which could be extracted from the firmware, but I think this would be illegal. In the case that you have these fonts (as TrueTypeFont) you can replace them, as I filled the missing fonts up with Droid Serif and Roboto which have a free license (you can find the fonts and their license text in the directory local/simdata/systemFonts). The problem with these fonts are, that they are wider than the original ones, so some applications have graphical bugs because of this. In the most sample watches, where this was a problem, it could be solved with extending the layer frame with and reducing the margin.
I tested the sample watches from the SDK to detect these problems:
big_time [No problems]
 brains [No problems]
classio [Minor font problem]
drop_zone [No problems]
fuzzy_time [No problems]
just_a_bit [No problems]
ninety_one_dub [No problems]
onthebutton [Minor font and margin problems]
rumbletime [No problems] 
segment_six [No problems]
simple_analog [Minor graphic glitches with the analog part] [Text probably incorrect, no verification possibility for me]
simplicity [No problems]
tic_tock_toe [No problems]
Pretty good result, isn't it :)

[I want YOU!]

... to find:

- bugs
- suggestions
- feedback
- questions
and tell them to me. I will try to answer them all

[License]

The fonts are copyright by Google Inc. under "Apache License, Version 2.0"
The pebble pictures are copyright by Chaotic
The actual simulator and the custom resource compiler are licensed by Helco (me) under GNU GPL v3

[Credits]

Many many thanks to:

@robhh - for his AppTimer implementation
Otto Greenslade (Chaotic) - for his pebble pictures
https://github.com/abl - for his empebble (which was original the basecode of this simulator, now nearly all code is rewritten)
The Pebble Team - for the amazing watch, the SDK and their long shipping procedure, which was the motivation to build this
Libraries that I used:
SDL 1.2 (www.libsdl.org)

JSMN (https://bitbucket.org/zserge/jsmn)

Download


Viewing all articles
Browse latest Browse all 5890

Trending Articles