Open trevorsweigart opened 2 years ago
What if you run this in a terminal:
busctl --user -j get-property io.ntfd /weather openweathermap.strings RenderedTemplate | jq -r .data
while polybar doesn't show anything, do you get an error message or do you see the data you expect ?
When running ntfd from my bspwmrc, then I run that command, there is no output. Neither an error message or data. However, when I manually type ntfd in the terminal to start it, then run the command the correct data is output.
What do you mean by "no output" ? Is it hanging forever ? Or is there just nothing ?
It's possible the first query fails because the network isn't quite ready or something.
If that's the issue, the next query should succeed and you'll see data in polybar.
You can try to add a sleep 15
in your bspwmrc before ntfd &
to confirm.
You can also play with sync_frequency
in your ntfd config file.
I have followed the installation guide correctly, I believe. I put the polybar module in my polybar config, enabled the weather module in the config, and started ntfd in my bspwmrc. However, the weather icons on the bar don't actually show unless ntfd is started manually. Even if ntfd is running, there is just nothing in polybar. I have confirmed it with
$ ps -aux | grep ntfd name 521 0.0 0.0 1073750228 7048 ? Sl 17:11 0:00 ntfd
Also, if ntfd isn't started, it shows an error message in polybar, which is expected. If I then immediatly kill ntfd and start it again manually, everything works as expected.
Polybar config:
bspwmrc:
I've also tried replacing exec part of of the polybar module with the ntfd binary, which also causes the weather icons to not show up, however ntfd still runs. Maybe I'm overlooking something, but can't find what it is. Thanks!