all good! thanks, I missed the dependencies installation section.
Best posts made by lkthomas
-
RE: how to adjust brightness based on time on RPi3?
Latest posts made by lkthomas
-
From JSON to display on MM
I am very new to building my own module, I have a special bus ETA data which, I want to display it on MM; Here are the specs,
- JSON is downloaded from a fixed URL
- refresh data every 30 seconds
- display module on specific period (e.g in the morning)
- data_timestamp need to filter and get the closest time in relative to current time (You will see what I mean from the JSON sample below)
Question:
- which module should I use as an example for JSON iteration?
- How could I filter the closest timestamp with current time then display it in minute on MM?
Remark: Sample code doesn’t always come back with 3 sub-section
Sample code:
{
“type”: “ETA”,
“version”: “1.1”,
“generated_timestamp”: “2023-01-12T10:44:01+08:00”,
“data”: [
{
“co”: “NWFB”,
“route”: “26”,
“dir”: “O”,
“seq”: 20,
“stop”: “002759”,
“dest_tc”: “勵德邨”,
“dest_en”: “Lai Tak Tsuen”,
“eta”: “2023-01-12T10:53:43+08:00”,
“rmk_tc”: “”,
“eta_seq”: 1,
“dest_sc”: “励德邨”,
“rmk_en”: “”,
“rmk_sc”: “”,
“data_timestamp”: “2023-01-12T10:43:03+08:00”
},
{
“co”: “NWFB”,
“route”: “26”,
“dir”: “O”,
“seq”: 20,
“stop”: “002759”,
“dest_tc”: “勵德邨”,
“dest_en”: “Lai Tak Tsuen”,
“eta”: “2023-01-12T11:08:56+08:00”,
“rmk_tc”: “”,
“eta_seq”: 2,
“dest_sc”: “励德邨”,
“rmk_en”: “”,
“rmk_sc”: “”,
“data_timestamp”: “2023-01-12T10:43:03+08:00”
},
{
“co”: “NWFB”,
“route”: “26”,
“dir”: “O”,
“seq”: 20,
“stop”: “002759”,
“dest_tc”: “勵德邨”,
“dest_en”: “Lai Tak Tsuen”,
“eta”: “2023-01-12T11:29:05+08:00”,
“rmk_tc”: “”,
“eta_seq”: 3,
“dest_sc”: “励德邨”,
“rmk_en”: “”,
“rmk_sc”: “”,
“data_timestamp”: “2023-01-12T10:43:03+08:00”
}
]
} -
RE: remove a module forever after a specific date and time
@fozi I have a countdown to some event that is a one-off in my life, so after that date in a specific year (which cron can’t do a specific year), then that module will need to remove forever.
-
remove a module forever after a specific date and time
How could I remove a module forever after a specific date, month, year, time?
For example: 01-09-2021 01:00:00
MMM-ModuleScheduler seems unable to deal with “use once” scenario
-
RE: Sweeping second hand on the clock?
I didn’t ask for second hand to change color, I am actually asking if the second hand could “Sweep” and not tick in 1 second interval
-
Sweeping second hand on the clock?
Is that possible to have a sweeping second hand like a mechanical watch on the built-in clock dial?
-
MMM-cryptocurrency ETHBTC price?
is that possible to display ETHBTC with MMM-cryptocurrency?
Link: https://github.com/matteodanelli/MMM-cryptocurrency -
RE: shade don't align with clock
.clock .bright {
font-size: 120px;
padding-bottom: 20px;
}fixed!
-
shade don't align with clock
body { margin: 0px; position: absolute; height: 100%; width: 100%; background-color: #cccccc; } .clock .bright { font-size: 120px; } .clock .date { font-size: 55px; padding-bottom: 30px; padding-top: 5px; } .wi.dimmed.wi-sunset { color: orange; } .wi.dimmed.wi-sunrise { color: yellow; } .module { background-color:rgba(0,0,0,0.6); zoom: 185%; }
As you could see “11:13” leg seems not covered by shade; Only top bar module having this issue, everything else is fine, how could I fix it?
-
RE: how to adjust brightness based on time on RPi3?
all good! thanks, I missed the dependencies installation section.
-
RE: how to adjust brightness based on time on RPi3?
@ianperrin just tested, dimlevel at 20 and 80 also show black screen