--set-time improvements and documentation

Aberta
#863 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
40/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
cli, documentation

Direção de pesquisa

Start with the --set-time option in the CLI and the error message that lists it, then compare that against the online documentation to confirm it is missing. The first doc fix is to document the flag and its TIMESTAMP format (seconds since the Unix epoch). The suggested --set preference syntax is a separate design change; it needs maintainer agreement before anyone implements it. Done means the flag is documented and the epoch format is stated.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

--set-time [TIMESTAMP] is included in the CLI error message, but not in the online documentation. If this is a supported feature, it should be documented.

The command would be more useful if it used the general Meshtastic syntax --set preference PREFERENCE and had the matching -- get avaible. That way it could be used as an admin command.

By POSIX definition, TIMESTAMP should be the integer number of seconds that have elapsed since January 1, 1970, at 00:00:00 Coordinated Universal Time (UTC)

This command sequence works for me in CLI:

MDATE=$(date +%s)
...
    --set device.tzdef 'EST5EDT,M3.2.0,M11.1.0' \
    --set position.time $MDATE \

I do notice that my Heltec v3.2 with firmware 2.6.11 displays New York time as requested.
My Heltec V4 with firmware 2.7.12 prefers to display Zulu time (UTC)

Linguagem predominante
Python
Estrelas
855
Forks
355
Merge médio
3d 3h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshtastic/python

Todas as issues de meshtastic/python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.