Git Product home page Git Product logo

Comments (26)

FantasyFactory avatar FantasyFactory commented on August 17, 2024 1

Gadgetbridge works great with twatch !

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024 1

look here, this is what gadgetbridge sends via BLE as json

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

Hey,

thank you! First of all I want to counteract the impression that I develop professional software for the Watch. It surprises me that so many wishes are brought to me (please do not take it personally). It is a hobby project for me. I have programmed a framework, so that others can use it for their purposes. If others find it great they can join in. It is open source.

  1. I have programmed only the minimum what I wanted to have. Call signalling and message reading with Gadgetbridge.
  2. I think it is a little overkill to write an interpreter. The ESP32 is built for monolithic binary. But that's my opinion. But if someone wants to do it. I think the best way would be ESP8266basic. That's a lot of work.
  3. The watch USB is only UART and not programmable, there is no way.

A VNC client sounds crazy! When? :)
OBDII? Are you a race car enthusiast?

from my-ttgo-watch.

 avatar commented on August 17, 2024

thank you! First of all I want to counteract the impression that I develop professional software for the Watch. It surprises me that so many wishes are brought to me (please do not take it personally). It is a hobby project for me. I have programmed a framework, so that others can use it for their purposes. If others find it great they can join in. It is open source.

Your firmware is almost the only, and by far the best available firmware. AND it's factory installed on new TTGO 2020 watches, so no wonder people think you're the official developer ;)

OBDII? Are you a race car enthusiast?

I've got an old smelly car and I use ODB, it's nice to see what your engine is up to :) It's just a serial protocol, so might not be too hard (but different for each car), But I'm not sure I'd recommend it on watch, looking at your watch while driving is definatly a distraction one doesn't need (dash mounted phone is much better for it) :)

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

:-)

https://forum.micropython.org/viewtopic.php?f=18&t=8642

from my-ttgo-watch.

FantasyFactory avatar FantasyFactory commented on August 17, 2024

I've got an old smelly car and I use ODB, it's nice to see what your engine is up to :) It's just a serial protocol, so might not be too hard (but different for each car), But I'm not sure I'd recommend it on watch, looking at your watch while driving is definatly a distraction one doesn't need (dash mounted phone is much better for it) :)

the intention was to hook the clock to the steering wheel, however the clock could also act only as a "data logger" perhaps adding the accelerometer values, but more than anything else it was for the fun of developing the "app" for the ttwatch , on mobile phones there are already very good apps (such as Torque Pro)

from my-ttgo-watch.

FantasyFactory avatar FantasyFactory commented on August 17, 2024

I have some other ideas, but I think I would be the only one to use certain apps: D

I use a Sony mirrorless camera that exposes interesting APIs via wifi, in particular I often use "vintage" lenses and my problem then during the editing phase is to remember which lens I used for which photos, in order to apply the relative calibration profile.
I would be very comfortable having an app on the clock that synchronizes the time with the camera and has a simple menu in which I set which lens I am using, producing a "log" that tells me "11:23 Helios 44 lens; 11:31 Zeiss Planar 50 lens; 11:40 xxx lens etc "

Another very stupid App would be the clock at 25 hours: D: D I set an hour of the day that must necessarily correspond with the real time, for example 8, and another "twenty-fifth" hour to have for example between 19 and 20: in this way at 8 the clock would mark 8, but it would go slightly ahead until 18:30 in which it would indicate 19, then the clock would remain STOPPED until 19:31 showing however 19:01 and so on until recovering and re-synchronizing at 8: D: D every hour would therefore last 57.5 minutes, a negligible difference, and I would have a "twenty-fifth hour" to dedicate to what I never have time to do :D (yes I'm totally mad)

from my-ttgo-watch.

d3th3n avatar d3th3n commented on August 17, 2024

For Gadgetbridge, what configuration (watch name) did you use to communicate with the T-Watch?

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

"Espruino (T-Watch2020)" is the name. so Gadgetbridge can find it.

from my-ttgo-watch.

d3th3n avatar d3th3n commented on August 17, 2024

thank you, not having Android but only Apple ... I am looking for a replacement "solution" (gadgetbridge not existing on Apple)

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

Nice. At the moment I still want to integrate OsmAnd.

from my-ttgo-watch.

d3th3n avatar d3th3n commented on August 17, 2024

After a lot of research, I found a way about BLE and IOS notifications: the ANCS also called "Apple Notification Service" (another Apple protocol?) ... one way to use Apple services directly on the watch without third-party software (Android too?)

from my-ttgo-watch.

alexkoppelman avatar alexkoppelman commented on August 17, 2024

look here, this is what gadgetbridge sends via BLE as json

Using this, I am trying to get data/commands from the watch back to GadgetBridge.

I've tried both (summarizing): sending a message from watch to phone (hopefully later some activity data)

       String msg1;
        DynamicJsonDocument doc(1024);
        doc["t"] = "music";
        doc["n"] = "Play";
        serializeJson(doc, msg1);
        //unsigned int lastStringLength = msg1.length();
        pTxCharacteristic->setValue(msg1.c_str()); // Set value.
        pTxCharacteristic->notify();                // Notify value.

and try to play/pause music player:

    String mydata = "{t:\"music\",n:\"play\"}";
    pTxCharacteristic->setValue(mydata.c_str()); // Set value.
    pTxCharacteristic->notify();                // Notify value.

And I can see my phone is receiving as I get the string through in the TX Characteristic of the UART Service when I look with the android nRFC Connect app. However, gadgetbridge does not seem to like it as it does no respond in any way.

I am wondering; Is this still a work in progress no the GadgetBRidge Side or am I doing something wrong?
Any ideas?

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

I am not sure, but setValue() expects a double and no string.It looks like you have to split your data.
I also have to read the documentation first.

from my-ttgo-watch.

helgetnt avatar helgetnt commented on August 17, 2024

Hi,
sorry for my english (i'm a german). I am very new to these bluetooth mechanisms. But I think it shouldn't be too difficult for the right people with the appropriate knowledge to build a Bluetooth media (/ music) remote control as an additional app to remotely control a music player on the smartphone. I hope I'm not too wrong. would be great if someone could be found who would take care of it.

thanks & greetings

HelgeTNT

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

@helgetnt Which music player do you use? My favourite music player (DSub) does not support this.

from my-ttgo-watch.

helgetnt avatar helgetnt commented on August 17, 2024

@sharandac
I was thinking of an app that works like the buttons on a headset regardless of the player used so it can be used on Android & iOS. ......... PS .: I've only just seen that I have to use the Gadgetbridge app on Android. However, I have not yet found the function for sending BT messages.
I just saw that you are from Germany too. :-)

MfG HelgeTNT

from my-ttgo-watch.

helgetnt avatar helgetnt commented on August 17, 2024

I've found out at bluetooth.cpp: from line 118
if ( doc["number"] ) {
if ( doc["name"] ) {
lv_label_set_text( bluetooth_call_number_label, doc["name"] );
}
else {
lv_label_set_text( bluetooth_call_number_label, doc["number"] );
}
}

else {
lv_label_set_text( bluetooth_call_number_label, "" );
}
...so it shows the name( if it's in the phonebook ), else it shows the number.

MfG HelgeTNT

from my-ttgo-watch.

helgetnt avatar helgetnt commented on August 17, 2024

.............sorry that's in bluetooth_call.cpp .......................
MfG

from my-ttgo-watch.

robouden avatar robouden commented on August 17, 2024

Silly question. But where is the nice grey background image stored in the code? I like to set up the main background like that. (maybe a bit darker).
screen

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

This is not a silly question. The grey is not a background image. If you comment out the lines 55-60 in the last version of gui.cpp you see what I mean. After that you can play with the opacity in the file mainbar.cpp in line 56.

lv_style_set_bg_opa(&mainbar_style, LV_OBJ_PART_MAIN, LV_OPA_0);

to

lv_style_set_bg_opa(&mainbar_style, LV_OBJ_PART_MAIN, LV_OPA_100);

from my-ttgo-watch.

robouden avatar robouden commented on August 17, 2024

Thanks for the quick reply.

Did commented out the lines as you suggested. Seems to work ok. Only one issue if I set the lv_style_set_bg_opa(&mainbar_style, LV_OBJ_PART_MAIN, LV_OPA_0); to lv_style_set_bg_opa(&mainbar_style, LV_OBJ_PART_MAIN, LV_OPA_20); A message remains on the screen. See picture.
screen (2)

from my-ttgo-watch.

robouden avatar robouden commented on August 17, 2024

Got the message issue easy fixed with adding:
splash_screen_stage_update( "", 80 );
after the:
splash_screen_stage_update( "init gui", 80 );
screen (3)

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

In the latest version it is fixed. the splash routine will not remove all labels after splash :)

from my-ttgo-watch.

robouden avatar robouden commented on August 17, 2024

from my-ttgo-watch.

sharandac avatar sharandac commented on August 17, 2024

i mean the old splash routine will not remove all labels ... now remove

from my-ttgo-watch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.