jeffmer / ttgo-t-watch-2020-micropython-os Goto Github PK
View Code? Open in Web Editor NEWAll micropython watch software for TTGO T-watch 2020 V1, V2 & V3
License: The Unlicense
All micropython watch software for TTGO T-watch 2020 V1, V2 & V3
License: The Unlicense
Hi, just wanted to talk about a project I love :
simply open a terminal and do curl v2.wttr.in
and you get a nice weather report :
Customization exist to parse the weather finely and to adapt to any device.
Link to the full project: https://github.com/chubin/wttr.in
I just thought it would be better than the current weather app which is slow to install (needs pictures) and does not contain that many information whil also needing an API key.
Hello,
I followed all of your instructions explicitly - both on Windows (WSL) then on a native Ubuntu box. Both times I just got to the initial 'Loading' screen but nothing is happening beyond that. I have a Version 2 T-watch and I'm sure the configuration file is set up correctly. When I go to the Repl in Thonny I can also see all of the .mpy files there in the correct structure (I think) too.
I willy try running TempOS from the Repl rather than boot.py. But before I do could you please tell me if I may be missing something or where to start to look beyond the Repl/execute TempOS steps please?
With thanks.
The screen goes blank and refreshes every 20 seconds. I suspect it is supposed to be going dark to conserve power?
This is a great project and I really like how easy it is to add custom watch faces, apps and utils.
However, I appear to be unable to play audio on the Lilygo T-Watch 2020 V3 via the MAX98357.
I have tried various options, without succes.
Also when I run misc/play_tone.py, no sound is being produced.
Is this a known issue?
Or is my unit perhaps defective?
The install script checks for version 3 before installing GPS-related code.
It should be version 2.
This project looks exciting, but I'm failing to get it to work on my T-watch.
Installed the firmware successfully, using Thonny as suggested (nb I'm on a Mac). Incidentally, this ends up with a boot.py
file visible on the device, with all of the lines commented out.
Edited config.py
to add network and OpenWeatherMap keys.
Went to compile the code, realised that the compile.sh
points to a local copy of mpy-cross
, so edited it:
#CROSS="/home/jeff/pico/micropython/mpy-cross/build/mpy-cross -march=xtensawin"
CROSS="/opt/homebrew/bin/mpy-cross -march=xtensawin"
This then compiles the .mpy
files. I have the latest MicroPython 1.19.1 from homebrew installed, but that may not be the same version as the "dirty" / newer build from the firmware binary now on the watch?
Went to install the files, realised I needed to adapt the script to use the correct USB device on my machine, did that, installed - nothing happened. Connected Thonny and noticed that boot.py
did not contain the launcher call mentioned in the README; tried to import launcher
in the REPL, but got an error about the mpy version being incorrect.
Then, realised that it had not copied over the boot.py
file (the line in install.sh
is edited out, and anyway, the file already existed); so, cleared the LittleFS, uncommented the line in install.sh
, and ran it again. Still no response after a reset.
Now, import launcher
in the REPL returns without any obvious change (I'm guessing because boot.py
is failing to load it, so at that point, MicroPython already decided that's done).
Any thoughts? I'd love to try this out! How can I help to improve things for anyone else who wants to try it?
Hello,
Unfortunately OSM tiles aren't displaying at all in the app. I have a version 2 T-watch. The app displays that it connects (to a server?) then appears to count something but no data is displayed. Could you please tell me how I can begin to debug this?
With thanks and best wishes.
mpy-cross reports a syntax error in wifi.py, line 26:
mpy-cross -march=xtensawin ./wifi.py
Traceback (most recent call last):
File "./wifi.py", line 26
SyntaxError: invalid syntax
wifi.py contains an 'else' statement following an 'else' statement.
Looking at the code, lines 26 and 27 need to be removed.
Hi,
On waspos I'm able to get a repl without having to interrupt the run and without restarting it.
Here's the relevant part of the repo : https://github.com/wasp-os/pynus/tree/5572b01b26e04c7f8c79e8407f4d202e7258bf6b
Is there a way to get this kind of behavior on the twatch? It's a bit annoying in terms of workflow.
Thanks!
Hi,
I uploaded everything like readme says, but:
`MicroPython v1.22.0-preview.21.g4074f828d.dirty on 2023-10-16; Generic ESP32 module with SPIRAM with ESP32
Type "help()" for more information.
import loader
Traceback (most recent call last):
File "", line 1, in
File "./loader.py", line 2, in
File "./tempos.py", line 3, in
File "./drivers/st7789.py", line 16, in
ValueError: incompatible .mpy file
`
Hi,
On my setup running mpremote a0 setrtc
seems to only make the watch instantly reboot so I'm looking for straightforward ways to set the actual time automatically after a flash.
Do you have any scripts to share?
Thanks
Hi!
As I said earlier, I'm quite familiar with wasp-os on the Pinetime from Pine64. It's arguably the most successful micropython os on a hackable watch (albeit not that successful, it's quite niche :) ) so I think harmonizing some parts of the code to reduce the cost to port apps between them is not a bad idea.
Wasp-OS has some great features like :
You can give it a go right away on your computer by cloning their repo then running make sim
in the root. This will launch the simulator.
Before porting my own apps here's what I explored so far:
Here's where I'm at now. I think harmonizing the "API" is what yields the most without hurting the authenticity of this repo and allowing to port apps more easily. By that I mean for example renaming the "g" module to "display", renaming the "setInterval" to waspos's alternative etc.
Here would be the tentative roadmap:
What do you think @jeffmer ? I think it would bring more apps to your OS, increase the visibility to your OS as well as to the twatch (which is incredible but not enough loved!) and be a good thing overall : 2 projects with a common API increase chances of more future watches aligning with this instead of having 3 standards :).
The goal is not to do a major overhaul of the code of course, but just to make it share the same language as waspos.
Can't wait to have your take on this :)
ps : wasp-os is also available on a few other watches, see their great doc
Produces "invalid arch" error. Commented those out and now it works.
Hi,
I was wondering what was the name of the project. "TTGO-T-watch-2020-Micropython-OS" is more of a description than a name IMHO :)
Is it tempos? Or does that just mean "temporary os"?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.