Compare commits

...

4 commits

Author SHA1 Message Date
c7d4895186 add download lcl
Some checks are pending
/ run ansible (push) Waiting to run
2024-12-06 19:05:41 +01:00
ac25dab87a move download scripts to bin 2024-12-06 18:19:09 +01:00
a355359c13 add eau du grand lyon downloader 2024-12-05 23:21:25 +01:00
9730cac1a6 add download free mobile 2024-12-05 22:56:01 +01:00
12 changed files with 165 additions and 21 deletions

View file

@ -67,3 +67,79 @@
3466633264626636620a613634653933333332386365393639343030616234376537373635343237
37373364303732343264623239353837613435363363393862383765376435376166343237333664
3330623266383462666564376166373032393361653234633863
downloader_freebox_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
33636161363132333137313536613165393466303436306130376264383834663439346366383765
6335636531666539376439383435363430613638383263370a613661386636366534626564393732
35666137373762323438376666303337363332653865316534383338616432326663303734376364
3361663038633835610a356536373832663661333234663564323863383032613035646262633065
3736
downloader_freebox_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36376537343534363661356264326638636364333737653239363433326139303731366131393662
6330303263383739393935623132643431623764316265300a636563303239343432633332643939
63373965316165353930343966333337393136633239396261353566633638386331646631393730
3266386637653732640a393538346532353332333530303338636439653432323131643864356337
66646165376330643132653333393730643337356639613862616430623635376238
downloader_free_mobile_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
63323964626435316365343261633534396439356636616366376565363338323337343263313661
3764336135633062613037656137343965366339353864630a356264336636663136613833663330
38656165336265636333373532656137396130346363383739616363636436333733373938336337
6331366663336266300a633536666364333931383837313030646638346561323435653933396363
6665
downloader_free_mobile_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
65656539386465616638613537633861623161633537643035333466326432323464376333646530
3637643931626537393864316639366636653431383433360a383532353239376636613033376233
34393732633031633738313638306637366234386337383166303830353838663237636131363435
3061303733373135310a353038316532396263653033303662313661333432333239626137353261
32346530373030393566613936373535396533366663393963636536323065343136
downloader_eau_lyon_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
65653063376334393438393561633533323463643230353061633730313033303533386362313230
6161626436326435616461656235653331663532353734300a643830366530613336313939363562
36336366643837326235633031643439306535323163646563393237616331303766333435656332
6566393738366534320a303062383930333231323832623935343230383135363961373861623861
3330
downloader_eau_lyon_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
39613235383233373765376133613439396239336434353566633365393265323831366661316439
3634323064383037343865323766363732623763623863360a613030633162663137376434373136
31353661393462663633373766353561613137626364646437613239313866383837626138663466
6630663164393032360a636234306466643064386436646435373930643165336265616165656537
39353663646664383936336162626430336164656135323063373034626332623563633731396462
64353036396137626439626239313530393163616336353232663133633034323830313031616366
396666303765396465636330343130303230
downloader_shiva_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
65316236323834306536646130373938623730373637393761323433316266383766396430636539
6166333938396230356238366665326232666238636135360a373831633562333831316532333833
36333835613434363937386538313161336538326132613637623462346539333964393536316435
6135376532396161620a313064333936326337343832646566623439636130393165616130306662
36373037393435363364303736316665623862613736323966643730343261376265
downloader_shiva_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
61353235626630643130663430623861376538326266633739653231363538326635383361363961
3931653939376237643234393337373664333734656466370a303332363930303664303139363536
61363136343930326233626435373632373265646131323531663635313837356636613861636238
6131306331313564610a383861353130643933633337643764346266373861366238613466356165
36623833376262313663633666393261636335653731303264643430613935386235333930363836
33323735346565643438636466383937646233343935396536356233323938383335323838313863
303064613333373261636564633533313965
downloader_lcl_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
66386336656362396461376535363234363062343065366366633164313439333035663436306530
3462656334383236303864333462336439653533343366630a353032616262383333393535363430
30623736313366333264653037633864343138626266356334316465653164306465396561343535
3037373936343761330a663132326465336461343661356365396538323864633339616163326565
3465
downloader_lcl_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
64326561383732393063363239303338353237313232666238393035343133656534623633653032
3664663732643466386232663662353737303462396564380a366538653364353964376365623030
34396239666462346132663964356139363762343063666433383863313264386635356639643363
3066373833386564630a653765313666363138646533376134666330656237366236376361353261
3539

View file

@ -0,0 +1,11 @@
---
- name: Esphome
hosts: servers
gather_facts: false
tasks:
- name: Docker
ansible.builtin.include_role:
name: docker
vars:
docker_app_name: esphome

View file

@ -0,0 +1,13 @@
services:
esphome:
image: ghcr.io/esphome/esphome
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
tty: true
init: true
# privileged: true
network_mode: host # exposes :6052
env_file:
- esphome.env

View file

@ -0,0 +1,10 @@
$ANSIBLE_VAULT;1.1;AES256
34353430393662613463396264323139363435383738623961663062363764326465326239623931
3936303664643938353934636337636134653334646561330a373362323961316238383166633339
30663730386234396564666161643637376661613530323435366662656334616135643438313066
3331363462653161380a306165323961326239353865323532623963666165353334653565333563
33343865333562373863363765643735373637636132326333356261353363326562623132393261
65383762633935393934383264326336623566616363373139666430623463313031343938376632
64356562383431373964303139323432373835313832616439356162393461616535356131613965
65343733636637666464666565376232633063373537383238343765393630643531613935363065
6138

View file

@ -25,18 +25,3 @@
30333564313630346661333931623266313465333665343930383438353961376437343637646364
6532666134663636660a656537363262646437366135353661656264356337643039363439353731
3930
downloader_freebox_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
33636161363132333137313536613165393466303436306130376264383834663439346366383765
6335636531666539376439383435363430613638383263370a613661386636366534626564393732
35666137373762323438376666303337363332653865316534383338616432326663303734376364
3361663038633835610a356536373832663661333234663564323863383032613035646262633065
3736
downloader_freebox_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36376537343534363661356264326638636364333737653239363433326139303731366131393662
6330303263383739393935623132643431623764316265300a636563303239343432633332643939
63373965316165353930343966333337393136633239396261353566633638386331646631393730
3266386637653732640a393538346532353332333530303338636439653432323131643864356337
66646165376330643132653333393730643337356639613862616430623635376238

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
pushd /mnt/data/paperless-ngx
./downloader eau-du-grand-lyon -o consume -u '{{downloader_eau_lyon_username}}' -p '{{downloader_eau_lyon_password}}' --headless

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
pushd /mnt/data/paperless-ngx
./downloader free-mobile -o consume -u '{{downloader_free_mobile_username}}' -p '{{downloader_free_mobile_password}}' --headless --no-interaction

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
pushd /mnt/data/paperless-ngx
./downloader freebox -o consume -u '{{downloader_freebox_username}}' -p '{{downloader_freebox_password}}' --headless

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
pushd /mnt/data/paperless-ngx
./downloader lcl-checking -o consume -u '{{downloader_lcl_username}}' -p '{{downloader_lcl_password}}' --headless

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
pushd /mnt/data/paperless-ngx
./downloader shiva -o consume -u '{{downloader_shiva_username}}' -p '{{downloader_shiva_password}}' --headless

View file

@ -1,5 +0,0 @@
#!/bin/bash
set -euo pipefail
pushd /mnt/data/paperless-ngx
./downloader freebox -o consume -u {{downloader_freebox_username}} -p {{downloader_freebox_password}} --headless

View file

@ -83,4 +83,33 @@
minute: 0
hour: 13
day: 5
job: /mnt/data/bin/healthcheck download-freebox /mnt/data/paperless-ngx/download-freebox
job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-freebox
- name: Cron - Download Free Mobile invoice
ansible.builtin.cron:
name: Download Free Mobile invoice
minute: 0
hour: 13
day: 30
job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-free-mobile
- name: Cron - Download Eau du Grand Lyon invoice
ansible.builtin.cron:
name: Download Eau du Grand Lyon invoice
minute: 0
hour: 13
day: 10
month: "6,12"
job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-eau-du-grand-lyon
- name: Cron - Download Shiva payslip
ansible.builtin.cron:
name: Download Shiva payslip
minute: 0
hour: 13
day: 10
job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-shiva
- name: Cron - Download LCL bank statement
ansible.builtin.cron:
name: Download LCL bank statement
minute: 0
hour: 13
day: 10
job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-lcl-checking