bundlewrap/bundles/tasmota-charge/metadata.py
2022-02-12 17:01:06 +01:00

34 lines
867 B
Python

defaults = {
'users': {
'tasmota-charge': {
'home': '/home/tasmota-charge',
},
},
'systemd-timers': {
'tasmota-charge': {
'command': f'/usr/bin/sudo -u tasmota-charge /opt/tasmota-charge',
'when': 'minutely',
},
},
}
@metadata_reactor.provides(
'telegraf/config/inputs/exec',
)
def telegraf(metadata):
return {
'telegraf': {
'config': {
'inputs': {
'exec': {
repo.libs.hashable.hashable({
'commands': ["/usr/local/share/telegraf/tasmota_charge"],
'name_override': "tasmota_charge",
'data_format': "influx",
}),
},
},
},
},
}